Documentation ¶
Index ¶
- func New(client texit.Invoker) gateway.Api
- func SummaryToExecution(summary texit.ExecutionSummary) (*workflow.Execution, error)
- func SummaryToNode(summary texit.NodeSummary) (*node.Node, error)
- func SummaryToProvider(summary texit.ProviderSummary) (*provider.Provider, error)
- func SummaryToTailnet(summary texit.TailnetSummary) (*tailnet.Tailnet, error)
- type ApiGateway
- func (g *ApiGateway) DeprovisionNode(ctx context.Context, id node.Identifier) (workflow.ExecutionIdentifier, error)
- func (g *ApiGateway) DescribeNode(ctx context.Context, id node.Identifier) (*node.Node, error)
- func (g *ApiGateway) DescribeProvider(ctx context.Context, identifier provider.Identifier) (*provider.Provider, error)
- func (g *ApiGateway) DescribeTailnet(ctx context.Context, identifier tailnet.Identifier) (*tailnet.Tailnet, error)
- func (g *ApiGateway) GetExecution(ctx context.Context, id workflow.ExecutionIdentifier) (*workflow.Execution, error)
- func (g *ApiGateway) GetNodeStatus(ctx context.Context, id node.Identifier) (node.Status, error)
- func (g *ApiGateway) HealthCheck(ctx context.Context) error
- func (g *ApiGateway) ListNodes(ctx context.Context) ([]*node.Node, error)
- func (g *ApiGateway) ListProviders(ctx context.Context) ([]*provider.Provider, error)
- func (g *ApiGateway) ListTailnets(ctx context.Context) ([]*tailnet.Tailnet, error)
- func (g *ApiGateway) ProvisionNode(ctx context.Context, prov provider.Identifier, loc provider.Location, ...) (workflow.ExecutionIdentifier, error)
- func (g *ApiGateway) StartNode(ctx context.Context, id node.Identifier) error
- func (g *ApiGateway) StopNode(ctx context.Context, id node.Identifier) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SummaryToExecution ¶
func SummaryToExecution(summary texit.ExecutionSummary) (*workflow.Execution, error)
func SummaryToNode ¶
func SummaryToNode(summary texit.NodeSummary) (*node.Node, error)
func SummaryToProvider ¶
func SummaryToProvider(summary texit.ProviderSummary) (*provider.Provider, error)
func SummaryToTailnet ¶
func SummaryToTailnet(summary texit.TailnetSummary) (*tailnet.Tailnet, error)
Types ¶
type ApiGateway ¶
type ApiGateway struct {
// contains filtered or unexported fields
}
func (*ApiGateway) DeprovisionNode ¶
func (g *ApiGateway) DeprovisionNode(ctx context.Context, id node.Identifier) (workflow.ExecutionIdentifier, error)
func (*ApiGateway) DescribeNode ¶
func (g *ApiGateway) DescribeNode(ctx context.Context, id node.Identifier) (*node.Node, error)
func (*ApiGateway) DescribeProvider ¶
func (g *ApiGateway) DescribeProvider(ctx context.Context, identifier provider.Identifier) (*provider.Provider, error)
func (*ApiGateway) DescribeTailnet ¶
func (g *ApiGateway) DescribeTailnet(ctx context.Context, identifier tailnet.Identifier) (*tailnet.Tailnet, error)
func (*ApiGateway) GetExecution ¶
func (g *ApiGateway) GetExecution(ctx context.Context, id workflow.ExecutionIdentifier) (*workflow.Execution, error)
func (*ApiGateway) GetNodeStatus ¶
func (g *ApiGateway) GetNodeStatus(ctx context.Context, id node.Identifier) (node.Status, error)
func (*ApiGateway) HealthCheck ¶
func (g *ApiGateway) HealthCheck(ctx context.Context) error
func (*ApiGateway) ListProviders ¶
func (*ApiGateway) ListTailnets ¶
func (*ApiGateway) ProvisionNode ¶
func (g *ApiGateway) ProvisionNode(ctx context.Context, prov provider.Identifier, loc provider.Location, tn tailnet.Identifier, eph bool) (workflow.ExecutionIdentifier, error)
func (*ApiGateway) StartNode ¶
func (g *ApiGateway) StartNode(ctx context.Context, id node.Identifier) error
func (*ApiGateway) StopNode ¶
func (g *ApiGateway) StopNode(ctx context.Context, id node.Identifier) error
Click to show internal directories.
Click to hide internal directories.