manager

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 16 Imported by: 0

README

Manager

Kubernetes resources manager.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

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

func NewManager

func NewManager(c client.Client, log logr.Logger, ns string) *Resource

func (Resource) CleanupExampleNodes added in v0.1.25

func (m Resource) CleanupExampleNodes(ctx context.Context, mod module.Info) error

CleanupExampleNodes @todo deal with it later

func (Resource) CreateClusterNodeSignal added in v0.1.43

func (m Resource) CreateClusterNodeSignal(ctx context.Context, node v1alpha1.TinyNode, port string, data []byte) error

func (Resource) DisclosePort added in v0.1.25

func (m Resource) DisclosePort(ctx context.Context, port int) error

func (Resource) ExposePort added in v0.1.22

func (m Resource) ExposePort(ctx context.Context, autoHostName string, hostnames []string, port int) ([]string, error)

func (Resource) RegisterExampleNode added in v0.1.25

func (m Resource) RegisterExampleNode(ctx context.Context, c module.Component, mod module.Info) error

func (Resource) RegisterModule

func (m Resource) RegisterModule(ctx context.Context, mod module.Info) error

func (Resource) Start

func (m Resource) Start(ctx context.Context) error

type ResourceInterface added in v0.1.25

type ResourceInterface interface {
	CleanupExampleNodes(ctx context.Context, mod module.Info) error
	RegisterModule(ctx context.Context, mod module.Info) error
	ExposePort(ctx context.Context, autoHostName string, hostnames []string, port int) ([]string, error)
	DisclosePort(ctx context.Context, port int) error
	RegisterExampleNode(ctx context.Context, c module.Component, mod module.Info) error
	CreateClusterNodeSignal(ctx context.Context, node v1alpha1.TinyNode, port string, data []byte) error
}

Jump to

Keyboard shortcuts

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