Documentation ¶
Index ¶
- func NewService(api gateway.Api) service.Api
- type Service
- func (s *Service) CheckServerHealth(ctx context.Context) error
- func (s *Service) DeprovisionNode(ctx context.Context, node node.Identifier) (workflow.ExecutionIdentifier, error)
- func (s *Service) GetExecution(ctx context.Context, id workflow.ExecutionIdentifier) (*workflow.Execution, error)
- func (s *Service) GetNode(ctx context.Context, n node.Identifier) (*node.Node, error)
- func (s *Service) GetNodeStatus(ctx context.Context, n node.Identifier) (..., error)
- func (s *Service) GetProvider(ctx context.Context, identifier provider.Identifier) (*provider.Provider, error)
- func (s *Service) GetTailnet(ctx context.Context, identifier tailnet.Identifier) (*tailnet.Tailnet, error)
- func (s *Service) ListNodes(ctx context.Context) ([]*node.Node, error)
- func (s *Service) ListProviders(ctx context.Context) ([]*provider.Provider, error)
- func (s *Service) ListTailnets(ctx context.Context) ([]*tailnet.Tailnet, error)
- func (s *Service) ProvisionNode(ctx context.Context, prov provider.Identifier, loc provider.Location, ...) (workflow.ExecutionIdentifier, error)
- func (s *Service) StartNode(ctx context.Context, n node.Identifier) error
- func (s *Service) StopNode(ctx context.Context, n node.Identifier) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
A service that is just a proxy for the Api gateway
func (*Service) DeprovisionNode ¶
func (s *Service) DeprovisionNode(ctx context.Context, node node.Identifier) (workflow.ExecutionIdentifier, error)
func (*Service) GetExecution ¶
func (*Service) GetNodeStatus ¶
func (*Service) GetProvider ¶
func (*Service) GetTailnet ¶
func (*Service) ListProviders ¶
func (*Service) ListTailnets ¶
func (*Service) ProvisionNode ¶
func (s *Service) ProvisionNode(ctx context.Context, prov provider.Identifier, loc provider.Location, tn tailnet.Identifier, e bool) (workflow.ExecutionIdentifier, error)
Click to show internal directories.
Click to hide internal directories.