Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownNode = errors.New("unknown node") ErrInvalidLocation = errors.New("invalid location") )
View Source
var (
ErrUnknownDevice = errors.New("unknown device")
)
Functions ¶
This section is empty.
Types ¶
type Notification ¶ added in v0.0.8
type Notification interface { Type() notification.TopicType Endpoint() notification.Endpoint SendMessage(ctx context.Context, msg string) error }
type Platform ¶
type Platform interface { GetStatus(context.Context, *node.Node) (node.Status, error) DeleteNode(context.Context, *node.Node) error StartNode(context.Context, *node.Node) error StopNode(context.Context, *node.Node) error CreateNode(context.Context, node.Identifier, tailnet.DeviceName, provider.Location, tailnet.ControlServer, tailnet.PreauthKey, node.Size) (node.PlatformIdentifier, error) }
type Tailnet ¶
type Tailnet interface { CreatePreauthKey(context.Context, bool) (tailnet.PreauthKey, error) DeletePreauthKey(context.Context, tailnet.PreauthKey) error EnableExitNode(context.Context, tailnet.DeviceIdentifier) error GetDeviceId(context.Context, tailnet.DeviceName) (tailnet.DeviceIdentifier, error) DeleteDevice(context.Context, tailnet.DeviceIdentifier) error }
Click to show internal directories.
Click to hide internal directories.