resource

package
v0.1.148 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 19 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) CreateFlow added in v0.1.148

func (m Manager) CreateFlow(ctx context.Context, ns string, projectName string, name string) (*string, error)

func (Manager) CreatePage added in v0.1.148

func (m Manager) CreatePage(ctx context.Context, page *v1alpha1.TinyWidgetPage) error

func (Manager) CreateProject added in v0.1.148

func (m Manager) CreateProject(ctx context.Context, ns string, name string) (*v1alpha1.TinyProject, error)

func (Manager) DeletePage added in v0.1.148

func (m Manager) DeletePage(ctx context.Context, page *v1alpha1.TinyWidgetPage) error

func (Manager) DeleteTracker added in v0.1.148

func (m Manager) DeleteTracker(ctx context.Context, tracker *v1alpha1.TinyTracker, c client.Client) 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) GetFLow added in v0.1.148

func (m Manager) GetFLow(ctx context.Context, name string, namespace string) (*v1alpha1.TinyFlow, error)

func (Manager) GetFlowList added in v0.1.148

func (m Manager) GetFlowList(ctx context.Context, projectName string) ([]v1alpha1.TinyFlow, error)

func (Manager) GetProjectList added in v0.1.148

func (m Manager) GetProjectList(ctx context.Context) ([]v1alpha1.TinyProject, error)

func (Manager) GetProjectNodes added in v0.1.148

func (m Manager) GetProjectNodes(ctx context.Context, projectName string) ([]v1alpha1.TinyNode, error)

func (Manager) GetProjectPageWidgets added in v0.1.148

func (m Manager) GetProjectPageWidgets(ctx context.Context, projectName string) ([]v1alpha1.TinyWidgetPage, error)

func (Manager) MoveWidgetPageToPos added in v0.1.148

func (m Manager) MoveWidgetPageToPos(ctx context.Context, namespace, pageResourceName, pos int) error

func (Manager) PatchNode

func (m Manager) PatchNode(ctx context.Context, node v1alpha1.TinyNode, updater func(node *v1alpha1.TinyNode) error) error

func (Manager) PutTracker added in v0.1.148

func (m Manager) PutTracker(ctx context.Context, namespace string, projectResourceName string, c client.Client) (*v1alpha1.TinyTracker, error)

func (Manager) RegisterModule

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

func (Manager) RenameFlow added in v0.1.148

func (m Manager) RenameFlow(ctx context.Context, name string, namespace string, newName string) error

func (Manager) Start

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

func (Manager) UpdatePage added in v0.1.148

func (m Manager) UpdatePage(ctx context.Context, page *v1alpha1.TinyWidgetPage) error

type ManagerInterface

type ManagerInterface interface {
	RegisterModule(ctx context.Context, mod module.Info) error
	PatchNode(ctx context.Context, node v1alpha1.TinyNode, update func(node *v1alpha1.TinyNode) error) error
}

Jump to

Keyboard shortcuts

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