environment

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvironmentCmd added in v1.1.0

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

Types

type DeleteParams

type DeleteParams struct {
	Namespace       string
	EnvironmentName string
}

DeleteParams defines parameters for deleting a single environment

func (DeleteParams) GetEnvironmentName

func (p DeleteParams) GetEnvironmentName() string

func (DeleteParams) GetNamespace

func (p DeleteParams) GetNamespace() string

type Environment

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

Environment implements environment operations

func New

New creates a new environment implementation

func (*Environment) Delete

func (e *Environment) Delete(params DeleteParams) error

Delete deletes a single environment

func (*Environment) Get

func (e *Environment) Get(params GetParams) error

Get retrieves a single environment and outputs it as YAML

func (*Environment) List

func (e *Environment) List(params ListParams) error

List lists all environments in a namespace

type GetParams

type GetParams struct {
	Namespace       string
	EnvironmentName string
}

GetParams defines parameters for getting a single environment

func (GetParams) GetNamespace

func (p GetParams) GetNamespace() string

type ListParams

type ListParams struct {
	Namespace string
}

ListParams defines parameters for listing environments

func (ListParams) GetNamespace

func (p ListParams) GetNamespace() string

Jump to

Keyboard shortcuts

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