service

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeLockerService

type NodeLockerService struct {
	ServiceRouter  *mux.Router
	OperatorRouter *mux.Router
	// contains filtered or unexported fields
}

func NewLockerService

func NewLockerService(ctx context.Context) *NodeLockerService

func (*NodeLockerService) Close

func (bs *NodeLockerService) Close()

func (*NodeLockerService) FetchLocks

func (bs *NodeLockerService) FetchLocks(ctx context.Context) ([]nodelocker.NodeLock, error)

func (*NodeLockerService) IsReady

func (bs *NodeLockerService) IsReady() bool

func (*NodeLockerService) Lock

func (bs *NodeLockerService) Lock(ctx context.Context, peerID, secret string) (nodelocker.NodeLock, error)

func (*NodeLockerService) SetupOperator

func (bs *NodeLockerService) SetupOperator() error

func (*NodeLockerService) SetupService

func (bs *NodeLockerService) SetupService() error

func (*NodeLockerService) Shutdown

func (bs *NodeLockerService) Shutdown()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL