env

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config_Filepath = "/.osdctl.yaml"

Functions

func NewCmdEnv

func NewCmdEnv() *cobra.Command

Types

type OcEnv

type OcEnv struct {
	Path    string
	Exists  bool
	Options *Options
	Config  config.Config
}

func (*OcEnv) Delete

func (e *OcEnv) Delete()

func (*OcEnv) PrintKubeConfigExport

func (e *OcEnv) PrintKubeConfigExport()

func (*OcEnv) RunCommand

func (e *OcEnv) RunCommand(cmd *cobra.Command, args []string)

func (*OcEnv) Setup

func (e *OcEnv) Setup()

func (*OcEnv) Start

func (e *OcEnv) Start()

type Options

type Options struct {
	DeleteEnv        bool
	TempEnv          bool
	ResetEnv         bool
	ExportKubeConfig bool

	Alias string

	// Options for OCM login
	ClusterId   string
	LoginScript string

	// Options for individual cluster login
	Username   string
	Password   string
	Url        string
	Kubeconfig string
}

Jump to

Keyboard shortcuts

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