shared

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWorker

func GetWorker(client client.Client, identifier string) (workerpools.IWorkerPool, error)

func GetWorkerPools

func GetWorkerPools(client client.Client) ([]*workerpools.WorkerPoolListResult, error)

func ViewRun

func ViewRun(opts *ViewOptions, contributeDetails ContributeDetailsCallback) error

Types

type ContributeDetailsCallback

type ContributeDetailsCallback func(opts *ViewOptions, workerPool workerpools.IWorkerPool) ([]*output.DataRow, error)

type GetWorkerPoolCallback

type GetWorkerPoolCallback func(identifer string) (workerpools.IWorkerPool, error)

type GetWorkerPoolsCallback

type GetWorkerPoolsCallback func() ([]*workerpools.WorkerPoolListResult, error)

type GetWorkerPoolsOptions

type GetWorkerPoolsOptions struct {
	GetWorkerPoolsCallback
	GetWorkerPoolCallback
}

func NewGetWorkerPoolsOptions

func NewGetWorkerPoolsOptions(dependencies *cmd.Dependencies) *GetWorkerPoolsOptions

type ViewFlags

type ViewFlags struct {
	*machinescommon.WebFlags
}

func NewViewFlags

func NewViewFlags() *ViewFlags

type ViewOptions

type ViewOptions struct {
	*cmd.Dependencies
	IdOrName string
	*ViewFlags
}

func NewViewOptions

func NewViewOptions(viewFlags *ViewFlags, dependencies *cmd.Dependencies, args []string) *ViewOptions

Jump to

Keyboard shortcuts

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