workload

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkloadCmd added in v1.1.0

func NewWorkloadCmd(f client.NewClientFunc) *cobra.Command

Types

type CreateParams added in v0.17.0

type CreateParams struct {
	FilePath      string
	NamespaceName string
	ProjectName   string
	ComponentName string
	ImageURL      string
	OutputPath    string
	DryRun        bool
	Mode          string // Operational mode: "api-server" or "file-system"
	RootDir       string // Root directory path for file-system mode
}

CreateParams defines parameters for creating a workload from a descriptor

func (CreateParams) GetNamespace added in v0.17.0

func (p CreateParams) GetNamespace() string

type DeleteParams added in v0.17.0

type DeleteParams struct {
	Namespace    string
	WorkloadName string
}

DeleteParams defines parameters for deleting a single workload

func (DeleteParams) GetNamespace added in v0.17.0

func (p DeleteParams) GetNamespace() string

func (DeleteParams) GetWorkloadName added in v0.17.0

func (p DeleteParams) GetWorkloadName() string

type GetParams added in v0.17.0

type GetParams struct {
	Namespace    string
	WorkloadName string
}

GetParams defines parameters for getting a single workload

func (GetParams) GetNamespace added in v0.17.0

func (p GetParams) GetNamespace() string

type ListParams added in v0.17.0

type ListParams struct {
	Namespace string
}

ListParams defines parameters for listing workloads

func (ListParams) GetNamespace added in v0.17.0

func (p ListParams) GetNamespace() string

type Workload added in v0.17.0

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

Workload implements workload operations.

func New added in v0.17.0

func New(c client.Interface) *Workload

New creates a new Workload with the default config.

func (*Workload) Create added in v0.17.0

func (w *Workload) Create(params CreateParams) error

Create creates a workload from a descriptor or basic parameters.

func (*Workload) Delete added in v0.17.0

func (w *Workload) Delete(params DeleteParams) error

Delete deletes a single workload.

func (*Workload) Get added in v0.17.0

func (w *Workload) Get(params GetParams) error

Get retrieves a single workload and outputs it as YAML.

func (*Workload) List added in v0.17.0

func (w *Workload) List(params ListParams) error

List lists all workloads in a namespace.

Jump to

Keyboard shortcuts

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