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, node.Size, bool) error CreateNode(context.Context, provider.Identifier, tailnet.ControlServer, node.Identifier, tailnet.DeviceName, provider.Location, tailnet.PreauthKey, node.Size) (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 Notification ¶ added in v0.0.8
type Notification interface { ListNotifiers(ctx context.Context) []*notification.Notifier NotifyExecutionCompletion(ctx context.Context, e workflow.ExecutionIdentifier, w workflow.WorkflowName, status workflow.Status, results workflow.ExecutionResult) error }
Service that handles notifying callers about completion of requests
type Workflow ¶
type Workflow interface { LaunchProvisionNodeWorkflow(context.Context, *provider.Provider, provider.Location, *tailnet.Tailnet, node.Size, 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.