resource

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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 Manager

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

func NewManager

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

func (Manager) CleanupExampleNodes

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

CleanupExampleNodes @todo deal with it later

func (Manager) CreateClusterNodeSignal

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

func (Manager) DisclosePort

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

func (Manager) ExposePort

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

func (Manager) RegisterExampleNode

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

func (Manager) RegisterModule

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

func (Manager) Start

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

type ManagerInterface

type ManagerInterface 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