namespace

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInCluster

func IsInCluster() bool

IsInCluster tells if we are running incluster

Types

type Options

type Options struct {
	KubeClient kubernetes.Interface
	Input      input.Interface
	JXClient   jxc.Interface
	Args       []string
	Env        string
	PickEnv    bool
	Create     bool
	QuiteMode  bool
	BatchMode  bool
}

func NewCmdNamespace

func NewCmdNamespace() (*cobra.Command, *Options)

func (*Options) GetEnvironmentNames

func (o *Options) GetEnvironmentNames(ns string) ([]string, error)

GetEnvironmentNames returns the environment names in te given namespace

func (*Options) Run

func (o *Options) Run() error

Jump to

Keyboard shortcuts

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