cli

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	Tekton     versioned.Interface
	Kube       k8s.Interface
	Triggers   versionedTriggers.Interface
	HTTPClient http.Client
	Dynamic    dynamic.Interface
}

type Params

type Params interface {
	// SetKubeConfigPath uses the kubeconfig path to instantiate tekton
	// returned by Clientset function
	SetKubeConfigPath(string)
	// SetKubeContext extends the specificity of the above SetKubeConfigPath
	// by using a context other than the default context in the given kubeconfig
	SetKubeContext(string)
	Clients(...*rest.Config) (*Clients, error)
	KubeClient() (k8s.Interface, error)

	// SetNamespace can be used to store the namespace parameter that is needed
	// by most commands
	SetNamespace(string)
	Namespace() string

	// SetNoColour set colouring or not
	SetNoColour(bool)

	Time() clockwork.Clock
}

Params interface provides

type Stream

type Stream struct {
	In  io.Reader
	Out io.Writer
	Err io.Writer
}

type TektonParams

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

func (*TektonParams) Clients

func (p *TektonParams) Clients(cfg ...*rest.Config) (*Clients, error)

func (*TektonParams) KubeClient added in v0.5.0

func (p *TektonParams) KubeClient() (k8s.Interface, error)

Only returns kube client, not tekton client

func (*TektonParams) Namespace

func (p *TektonParams) Namespace() string

func (*TektonParams) SetKubeConfigPath

func (p *TektonParams) SetKubeConfigPath(path string)

func (*TektonParams) SetKubeContext added in v0.6.0

func (p *TektonParams) SetKubeContext(context string)

func (*TektonParams) SetNamespace

func (p *TektonParams) SetNamespace(ns string)

func (*TektonParams) SetNoColour added in v0.4.0

func (p *TektonParams) SetNoColour(b bool)

func (*TektonParams) Time

func (p *TektonParams) Time() clockwork.Clock

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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