activity

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 NewService

func NewService(tailnetGws map[string]gateway.Tailnet, providerGws map[string]gateway.Platform, nodeRepo repository.Node, execRepo repository.Execution) service.Activity

Types

type Service

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

func (*Service) CloseExecution

func (s *Service) CloseExecution(ctx context.Context, exId workflow.ExecutionIdentifier, status workflow.Status, results workflow.ExecutionResult) error

func (*Service) CreateNode

func (*Service) CreatePreauthKey

func (s *Service) CreatePreauthKey(ctx context.Context, tailnet tailnet.Identifier, ephemeral bool) (tailnet.PreauthKey, error)

func (*Service) DeleteNode

func (s *Service) DeleteNode(ctx context.Context, id node.Identifier) error

func (*Service) DeleteNodeRecord

func (s *Service) DeleteNodeRecord(ctx context.Context, id node.Identifier) error

func (*Service) EnableExitNode

func (s *Service) EnableExitNode(ctx context.Context, tailnet tailnet.Identifier, tailDeviceID tailnet.DeviceIdentifier) error

func (*Service) GetDeviceId

func (s *Service) GetDeviceId(ctx context.Context, tailnet tailnet.Identifier, tailnetName tailnet.DeviceName) (tailnet.DeviceIdentifier, error)

func (*Service) RemoveTailnetDevice

func (s *Service) RemoveTailnetDevice(ctx context.Context, tailnet tailnet.Identifier, tailDeviceId tailnet.DeviceIdentifier) error

Jump to

Keyboard shortcuts

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