Documentation ¶
Index ¶
- func NewRemoteManager(listenAddr string) subnet.Manager
- func RunServer(ctx context.Context, sm subnet.Manager, listenAddr string)
- type RemoteManager
- func (m *RemoteManager) AcquireLease(ctx context.Context, network string, attrs *subnet.LeaseAttrs) (*subnet.Lease, error)
- func (m *RemoteManager) GetNetworkConfig(ctx context.Context, network string) (*subnet.Config, error)
- func (m *RemoteManager) RenewLease(ctx context.Context, network string, lease *subnet.Lease) error
- func (m *RemoteManager) WatchLeases(ctx context.Context, network string, cursor interface{}) (subnet.WatchResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteManager ¶
Types ¶
type RemoteManager ¶
type RemoteManager struct {
// contains filtered or unexported fields
}
implements subnet.Manager by sending requests to the server
func (*RemoteManager) AcquireLease ¶
func (m *RemoteManager) AcquireLease(ctx context.Context, network string, attrs *subnet.LeaseAttrs) (*subnet.Lease, error)
func (*RemoteManager) GetNetworkConfig ¶
func (*RemoteManager) RenewLease ¶
func (*RemoteManager) WatchLeases ¶
func (m *RemoteManager) WatchLeases(ctx context.Context, network string, cursor interface{}) (subnet.WatchResult, error)
Click to show internal directories.
Click to hide internal directories.