Documentation ¶
Index ¶
- type Clients
- type Params
- type Stream
- type TektonParams
- func (p *TektonParams) Clients(cfg ...*rest.Config) (*Clients, error)
- func (p *TektonParams) KubeClient() (k8s.Interface, error)
- func (p *TektonParams) Namespace() string
- func (p *TektonParams) SetKubeConfigPath(path string)
- func (p *TektonParams) SetKubeContext(context string)
- func (p *TektonParams) SetNamespace(ns string)
- func (p *TektonParams) SetNoColour(b bool)
- func (p *TektonParams) Time() clockwork.Clock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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
Click to show internal directories.
Click to hide internal directories.