cli

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalTaskParams

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

func (*ApprovalTaskParams) Clients

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

func (*ApprovalTaskParams) GetUserInfo

func (p *ApprovalTaskParams) GetUserInfo() (string, error)

func (*ApprovalTaskParams) KubeClient

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

Only returns kube client, not tekton client

func (*ApprovalTaskParams) Namespace

func (p *ApprovalTaskParams) Namespace() string

func (*ApprovalTaskParams) SetKubeConfigPath

func (p *ApprovalTaskParams) SetKubeConfigPath(path string)

func (*ApprovalTaskParams) SetKubeContext

func (p *ApprovalTaskParams) SetKubeContext(context string)

func (*ApprovalTaskParams) SetNamespace

func (p *ApprovalTaskParams) SetNamespace(ns string)

type Clients

type Clients struct {
	Config       *rest.Config
	Kube         k8s.Interface
	Dynamic      dynamic.Interface
	ApprovalTask versioned.Interface
}

type Options

type Options struct {
	Namespace     string
	Name          string
	Input         string
	Username      string
	Message       string
	AllNamespaces bool
}

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)
	SetNamespace(string)
	KubeClient() (k8s.Interface, error)
	Clients(...*rest.Config) (*Clients, error)
	Namespace() string
	GetUserInfo() (string, error)
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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