remote

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteManager

func NewRemoteManager(listenAddr string) subnet.Manager

func RunServer

func RunServer(ctx context.Context, sm subnet.Manager, listenAddr string)

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 (m *RemoteManager) GetNetworkConfig(ctx context.Context, network string) (*subnet.Config, error)

func (*RemoteManager) RenewLease

func (m *RemoteManager) RenewLease(ctx context.Context, network string, lease *subnet.Lease) error

func (*RemoteManager) WatchLeases

func (m *RemoteManager) WatchLeases(ctx context.Context, network string, cursor interface{}) (subnet.WatchResult, error)

Jump to

Keyboard shortcuts

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