Documentation ¶
Index ¶
- func AddToInformer(t *testing.T, store cache.Store) func(ktesting.Action) (bool, runtime.Object, error)
- func ExecuteCommand(root *cobra.Command, args ...string) (string, error)
- func ExecuteCommandC(c *cobra.Command, args ...string) (*cobra.Command, string, error)
- func SeedTestData(t *testing.T, d Data) (Clients, Informers)
- type Clients
- type Data
- type Informers
- type Params
- func (p *Params) Clients(_ ...*rest.Config) (*cli.Clients, error)
- func (p *Params) GetUserInfo() (string, error)
- func (p *Params) KubeClient() (k8s.Interface, error)
- func (p *Params) KubeConfigPath() string
- func (p *Params) Namespace() string
- func (p *Params) SetKubeConfigPath(path string)
- func (p *Params) SetKubeContext(context string)
- func (p *Params) SetNamespace(ns string)
- func (p *Params) SetNoColour(_ bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToInformer ¶
func AddToInformer(t *testing.T, store cache.Store) func(ktesting.Action) (bool, runtime.Object, error)
AddToInformer returns a function to add ktesting.Actions to the cache store
func ExecuteCommandC ¶
ExecuteCommandC executes the root command passing the args and returns the root command, output as a string and error if any
Types ¶
type Clients ¶
type Clients struct { ApprovalTask *fakeapprovaltaskclientset.Clientset Kube *fakekubeclientset.Clientset }
type Data ¶
type Data struct { Approvaltasks []*v1alpha1.ApprovalTask Kube *fakekubeclientset.Clientset Namespaces []*corev1.Namespace }
type Informers ¶
type Informers struct {
ApprovalTask informersv1alpha1.ApprovalTaskInformer
}
type Params ¶
type Params struct { ApprovalTask versioned.Interface Kube k8s.Interface Cls *cli.Clients Dynamic dynamic.Interface Username string // contains filtered or unexported fields }
func (*Params) GetUserInfo ¶
func (*Params) KubeConfigPath ¶
func (*Params) SetKubeConfigPath ¶
func (*Params) SetKubeContext ¶
func (*Params) SetNamespace ¶
func (*Params) SetNoColour ¶
Click to show internal directories.
Click to hide internal directories.