api_gateway

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client texit.Invoker) gateway.Api

func SummaryToExecution

func SummaryToExecution(summary texit.ExecutionSummary) (*workflow.Execution, error)

func SummaryToNode

func SummaryToNode(summary texit.NodeSummary) (*node.Node, error)

func SummaryToNotifiers added in v0.0.11

func SummaryToNotifiers(s texit.NotifierSummary) (*notification.Notifier, 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 (*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) ListNodes

func (g *ApiGateway) ListNodes(ctx context.Context) ([]*node.Node, error)

func (*ApiGateway) ListNotifiers added in v0.0.11

func (g *ApiGateway) ListNotifiers(ctx context.Context) ([]*notification.Notifier, error)

func (*ApiGateway) ListProviders

func (g *ApiGateway) ListProviders(ctx context.Context) ([]*provider.Provider, error)

func (*ApiGateway) ListTailnets

func (g *ApiGateway) ListTailnets(ctx context.Context) ([]*tailnet.Tailnet, error)

func (*ApiGateway) ProvisionNode

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

Jump to

Keyboard shortcuts

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