command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentCommand

type DeploymentCommand struct {
	Name          string
	Entrypoint    []string
	Copy          string
	ContainerPort int64
	Port          int64
	Service       bool
	Ingress       bool
	IngressHost   string
	IngressClass  string
	Namespace     string
	Image         string
	Replicas      int32
	Timeout       time.Duration
}

DeploymentCommand represents a command to deploy an application and its related resources in a Kubernetes cluster.

func NewDeploymentCommand

func NewDeploymentCommand(params NewDeploymentCommandParams) *DeploymentCommand

NewDeploymentCommand creates a new deployment command.

func (*DeploymentCommand) Run

func (c *DeploymentCommand) Run(ctx context.Context) error

Run runs the deployment command.

func (*DeploymentCommand) Validate

func (c *DeploymentCommand) Validate() error

Validate validates the parameters of the deployment command.

type DestroyCommand added in v0.0.11

type DestroyCommand struct {
	Name      string
	Namespace string
	Timeout   time.Duration
}

DestroyCommand represents a command to destroy an application and its related resources in a Kubernetes cluster.

func NewDestroyCommand added in v0.0.11

func NewDestroyCommand(params NewDestroyCommandParams) *DestroyCommand

NewDestroyCommand creates a new destroy command.

func (*DestroyCommand) Run added in v0.0.11

func (c *DestroyCommand) Run(ctx context.Context) error

Run runs the destroy command.

func (*DestroyCommand) Validate added in v0.0.11

func (c *DestroyCommand) Validate() error

Validate validates the parameters of the destroy command.

type NewDeploymentCommandParams

type NewDeploymentCommandParams struct {
	Name          string
	Entrypoint    []string
	Copy          string
	ContainerPort int64
	Port          int64
	Service       bool
	Ingress       bool
	IngressHost   string
	IngressClass  string
	Namespace     string
	Image         string
	Replicas      int32
	Timeout       time.Duration
}

NewDeploymentCommandParams represents the parameters to create a new deployment command.

type NewDestroyCommandParams added in v0.0.11

type NewDestroyCommandParams struct {
	Name      string
	Namespace string
	Timeout   time.Duration
}

NewDestroyCommandParams represents the parameters to create a new destroy command.

Jump to

Keyboard shortcuts

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