types

package
v0.0.0-...-e614d88 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	Up(context.Context) bool
	Stop(context.Context) (context.Context, error)
	KubeConfig(context.Context) (string, error)
	CreateNamespace(context.Context) (context.Context, error)
	CreateNamedPolicy(context.Context, string, string) error
	CreatePolicy(context.Context, string) error
	RunTask(context.Context, string, string, string, map[string]string) error
	AwaitUntilTaskIsDone(context.Context) (bool, error)
	TaskInfo(context.Context) (*TaskInfo, error)
	CreateNamedSnapshot(context.Context, string, string) error
	Registry(context.Context) (string, error)
}

type Step

type Step struct {
	Name    string
	Status  string
	Logs    string
	EnvVars map[string]string
}

type TaskInfo

type TaskInfo struct {
	Name      string
	Namespace string
	Params    map[string]any
	Results   map[string]any
	Status    string
	Steps     []Step
}

Jump to

Keyboard shortcuts

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