nodeservice

package
v0.0.0-...-b89aff2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(
	db *gorm.DB,
	apiClient apiv1pbconnect.NodeControllerServiceClient,
	volumeProvider types.VolumeProvider,
	networkProvider types.NetworkProvider,
	runtimeProvider types.RuntimeProvider,
	config *types.NodeServerConfig,
) *Service

func (*Service) AuthorityCertificate

func (s *Service) AuthorityCertificate() *x509.Certificate

func (*Service) CreateMachine

func (s *Service) CreateMachine(ctx context.Context, opts types.NodeCreateMachineOptions) (*types.Machine, error)

func (*Service) FindMachine

func (s *Service) FindMachine(ctx context.Context, machineID string) (*types.Machine, error)

func (*Service) ListMachines

func (s *Service) ListMachines(ctx context.Context) ([]*types.Machine, error)

func (*Service) Start

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

func (*Service) Stop

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

func (*Service) TLSCertificate

func (s *Service) TLSCertificate() *tls.Certificate

func (*Service) UpdateMachineDesiredState

func (s *Service) UpdateMachineDesiredState(ctx context.Context, opts types.NodeUpdateMachineDesiredStateOptions) (*types.Machine, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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