service

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

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 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 Provider

type Provider interface {
	Describe(context.Context, provider.Identifier) (*provider.Provider, error)
	List(context.Context) ([]*provider.Provider, error)
}

type Tailnet

type Tailnet interface {
	Describe(context.Context, tailnet.Identifier) (*tailnet.Tailnet, error)
	List(context.Context) ([]*tailnet.Tailnet, error)
}

Jump to

Keyboard shortcuts

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