services

package
v0.0.0-...-0790738 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeNotFoundErr = errors.New("node not found")
)
View Source
var (
	ProviderNotFoundErr = errors.New("provider not found")
)

Functions

This section is empty.

Types

type K8s

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

func NewK8s

func NewK8s() *K8s

func (*K8s) GetNodeByName

func (s *K8s) GetNodeByName(ctx context.Context, name string) (*t.Node, error)

func (*K8s) GetNotReadyNodes

func (s *K8s) GetNotReadyNodes(ctx context.Context) ([]t.Node, error)

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) AddProvider

func (s *Manager) AddProvider(n string, p Provider)

func (*Manager) LoadProviders

func (s *Manager) LoadProviders(c *cli.Context, cl *http.Client)

func (*Manager) Reboot

func (s *Manager) Reboot(ctx context.Context, n *t.Node) error

type Provider

type Provider interface {
	Reboot(ctx context.Context, n *t.Node) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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