api

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(api gateway.Api) service.Api

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

A service that is just a proxy for the Api gateway

func (*Service) CheckServerHealth

func (s *Service) CheckServerHealth(ctx context.Context) error

func (*Service) DeprovisionNode

func (s *Service) DeprovisionNode(ctx context.Context, node node.Identifier) (workflow.ExecutionIdentifier, error)

func (*Service) GetExecution

func (*Service) GetNode

func (s *Service) GetNode(ctx context.Context, n node.Identifier) (*node.Node, error)

func (*Service) GetNodeStatus

func (s *Service) GetNodeStatus(ctx context.Context, n node.Identifier) (node.
	Status, error)

func (*Service) GetProvider

func (s *Service) GetProvider(ctx context.Context, identifier provider.Identifier) (*provider.Provider, error)

func (*Service) GetTailnet

func (s *Service) GetTailnet(ctx context.Context, identifier tailnet.Identifier) (*tailnet.Tailnet, error)

func (*Service) ListNodes

func (s *Service) ListNodes(ctx context.Context) ([]*node.Node, error)

func (*Service) ListNotifiers added in v0.0.11

func (s *Service) ListNotifiers(ctx context.Context) ([]*notification.Notifier, error)

func (*Service) ListProviders

func (s *Service) ListProviders(ctx context.Context) ([]*provider.Provider, error)

func (*Service) ListTailnets

func (s *Service) ListTailnets(ctx context.Context) ([]*tailnet.Tailnet, error)

func (*Service) ProvisionNode

func (*Service) StartNode

func (s *Service) StartNode(ctx context.Context, n node.Identifier) error

func (*Service) StopNode

func (s *Service) StopNode(ctx context.Context, n node.Identifier) error

Jump to

Keyboard shortcuts

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