params

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

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

Params is a place for Shipwright CLI to store its runtime parameters including configured dynamic client and global flags.

func NewParams

func NewParams() *Params

NewParams creates a new instance of ShipwrightParams and returns it as an interface value

func NewParamsForTest

func NewParamsForTest(clientset kubernetes.Interface,
	shpClientset buildclientset.Interface,
	configFlags *genericclioptions.ConfigFlags,
	namespace string) *Params

func (*Params) AddFlags

func (p *Params) AddFlags(flags *pflag.FlagSet)

AddFlags accepts flags and adds program global flags to it

func (*Params) ClientSet

func (p *Params) ClientSet() (kubernetes.Interface, error)

ClientSet returns a kubernetes clientset.

func (*Params) Namespace

func (p *Params) Namespace() string

Namespace returns kubernetes namespace with alle the overrides from command line and kubernetes config

func (*Params) ShipwrightClientSet

func (p *Params) ShipwrightClientSet() (buildclientset.Interface, error)

ShipwrightClientSet returns a Shipwright Clientset

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳