nodes

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeOperator

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

NodeOperator defines a node operations interface.

func NewNodeOperator

func NewNodeOperator(memory tree.Manager, authenticator auth.Auth, broker brokers.Manager) (nop *NodeOperator, err error)

NewNodeOperator initializes a k8s based node operator with in cluster configuration

func (*NodeOperator) CreateNode

func (no *NodeOperator) CreateNode(ctx context.Context, app *meta.App) (*meta.Node, error)

CreateNode deploys a new node structure, if it's information is valid. Otherwise, returns an error

func (*NodeOperator) DeleteNode

func (no *NodeOperator) DeleteNode(ctx context.Context, nodeContext string, nodeName string) error

DeleteNode deletes node with given name, if it exists. Otherwise, returns an error

func (*NodeOperator) Deployments

func (no *NodeOperator) Deployments() v1.DeploymentInterface

Deployments returns the deployment interface for the k8s operator

func (*NodeOperator) Secrets

func (no *NodeOperator) Secrets() cv1.SecretInterface

Secrets returns the secret interface of the node operator

func (*NodeOperator) Services

func (no *NodeOperator) Services() cv1.ServiceInterface

Services returns the service interface for the node operator

func (*NodeOperator) UpdateNode

func (no *NodeOperator) UpdateNode(ctx context.Context, app *meta.App) (*meta.Node, error)

UpdateNode updates a node that already exists, if the new structure is valid. Otherwise, returns an error.

Jump to

Keyboard shortcuts

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