Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownTailnetId = errors.New("unknown tailnet") ErrUnknownPlatform = errors.New("unknown platform") ErrUnknownNode = errors.New("unknown node") )
View Source
var ( ErrUnknownProvider = errors.New("unknown provider") ErrNoProviders = errors.New("no providers") )
View Source
var ( ErrUnknownTailnet = errors.New("unknown provider") ErrNoTailnets = errors.New("no providers") )
View Source
var ( ErrExecutionNotFound = errors.New("execution not found") ErrInvalidLocation = errors.New("invalid location") )
View Source
var (
ErrUnknownTailnetDevice = errors.New("unknown tailnet device")
)
Functions ¶
This section is empty.
Types ¶
type Activity ¶ added in v0.0.6
type Activity interface { CreateNodeRecord(context.Context, node.Identifier, node.PlatformIdentifier, provider.Identifier, provider.Location, tailnet.PreauthKey, tailnet.Identifier, tailnet.DeviceIdentifier, tailnet.DeviceName, bool) error CreateNode(context.Context, provider.Identifier, tailnet.ControlServer, node.Identifier, tailnet.DeviceName, provider.Location, tailnet.PreauthKey) (node.PlatformIdentifier, error) CreatePreauthKey(context.Context, tailnet.Identifier, bool) (tailnet.PreauthKey, error) EnableExitNode(context.Context, tailnet.Identifier, tailnet.DeviceIdentifier) error GetDeviceId(context.Context, tailnet.Identifier, tailnet.DeviceName) (tailnet.DeviceIdentifier, error) DeleteNode(context.Context, node.Identifier) error RemoveTailnetDevice(context.Context, tailnet.Identifier, tailnet.DeviceIdentifier) error DeleteNodeRecord(context.Context, node.Identifier) error CloseExecution(context.Context, workflow.ExecutionIdentifier, workflow.Status, workflow.ExecutionResult) error }
type Node ¶
type Node interface { Start(ctx context.Context, id node.Identifier) error Stop(ctx context.Context, id node.Identifier) error Status(ctx context.Context, id node.Identifier) (node.Status, error) Describe(ctx context.Context, id node.Identifier) (*node.Node, error) List(ctx context.Context) ([]*node.Node, error) }
type Workflow ¶
type Workflow interface { LaunchProvisionNodeWorkflow(context.Context, *provider.Provider, provider.Location, *tailnet.Tailnet, bool) (workflow.ExecutionIdentifier, error) LaunchDeprovisionNodeWorkflow(context.Context, node.Identifier) (workflow.ExecutionIdentifier, error) GetExecution(context.Context, workflow.ExecutionIdentifier) (*workflow.Execution, error) }
Click to show internal directories.
Click to hide internal directories.