Documentation ¶
Index ¶
- type ApprovalTaskParams
- func (p *ApprovalTaskParams) Clients(cfg ...*rest.Config) (*Clients, error)
- func (p *ApprovalTaskParams) GetUserInfo() (string, error)
- func (p *ApprovalTaskParams) KubeClient() (k8s.Interface, error)
- func (p *ApprovalTaskParams) Namespace() string
- func (p *ApprovalTaskParams) SetKubeConfigPath(path string)
- func (p *ApprovalTaskParams) SetKubeContext(context string)
- func (p *ApprovalTaskParams) SetNamespace(ns string)
- type Clients
- type Options
- type Params
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 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) }
Click to show internal directories.
Click to hide internal directories.