action

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDebugCmpNotInitialized = errors.New("call Up.Run() successfully before calling other methods")
)
View Source
var ErrResourceKindNotSupported = errors.New("resource kind not supported")

Functions

This section is empty.

Types

type Action

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

func NewAction

func NewAction(
	environment sdk.EnvironmentItem,
) *Action

func (*Action) GetDebugCmp

func (action *Action) GetDebugCmp(resource sdk.ComponentResourceItem, overrideClusterServer string) (*debug.DebugComponent, error)

type Down

type Down struct {
	Action
}

func NewDown

func NewDown(
	environment sdk.EnvironmentItem,
) *Down

func (*Down) Run

func (down *Down) Run(parameters *DownParameters) error

type DownParameters

type DownParameters struct {
	Resource sdk.ComponentResourceItem

	OverrideClusterServer string
}

type Up

type Up struct {
	Action
	// contains filtered or unexported fields
}

func NewUp

func NewUp(
	environment sdk.EnvironmentItem,
) *Up

func (*Up) Close

func (up *Up) Close() error

func (*Up) GetSelectedContainerName

func (up *Up) GetSelectedContainerName() (string, error)

func (*Up) Run

func (up *Up) Run(parameters *UpParameters) error

func (*Up) Wait

func (up *Up) Wait() error

type UpOptions

type UpOptions struct {
	ContainerName string

	EnvironPairs []string

	Command []string

	LimitCPU    string
	LimitMemory string

	RequestCPU    string
	RequestMemory string

	WaitTimeout int64
}

type UpParameters

type UpParameters struct {
	Resource sdk.ComponentResourceItem

	ManualSelectSingleResource bool

	ForceRecreateResource bool

	OverrideClusterServer string

	Options *UpOptions
}

func (*UpParameters) FillFromOptions

func (params *UpParameters) FillFromOptions() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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