Documentation ¶
Index ¶
- func NewDummyClient(k8sClient client.Client, opts map[string]string) client.Client
- func NewFakeCache(err error) cache.Cache
- func SASecretOption(t *testing.T, cl client.Client, ns string) func(sa *corev1.ServiceAccount)
- func Secret(name, namespace, token string, secretType corev1.SecretType) *corev1.Secret
- func SetEnv(environments ...Environment) func()
- type DummyClient
- type Environment
- type FakeCache
- func (c *FakeCache) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
- func (c *FakeCache) GetInformer(obj runtime.Object) (toolscache.SharedIndexInformer, error)
- func (c *FakeCache) GetInformerForKind(gvk schema.GroupVersionKind) (toolscache.SharedIndexInformer, error)
- func (c *FakeCache) IndexField(obj runtime.Object, field string, extractValue client.IndexerFunc) error
- func (c *FakeCache) List(ctx context.Context, opts *client.ListOptions, list runtime.Object) error
- func (c *FakeCache) Start(stopCh <-chan struct{}) error
- func (c *FakeCache) WaitForCacheSync(stop <-chan struct{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDummyClient ¶
func NewFakeCache ¶
func SASecretOption ¶
func Secret ¶
func Secret(name, namespace, token string, secretType corev1.SecretType) *corev1.Secret
func SetEnv ¶
func SetEnv(environments ...Environment) func()
Types ¶
type DummyClient ¶
func (*DummyClient) GetClusterRoleBinding ¶
func (d *DummyClient) GetClusterRoleBinding(name string) (*rbacv1.ClusterRoleBinding, error)
func (*DummyClient) GetOAuthClient ¶
func (d *DummyClient) GetOAuthClient(name string) (*oauthv1.OAuthClient, error)
func (*DummyClient) GetServiceAccount ¶
func (d *DummyClient) GetServiceAccount(namespace, name string) (*v1.ServiceAccount, error)
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func Env ¶
func Env(k, v string) Environment
type FakeCache ¶
type FakeCache struct {
Err error
}
func (*FakeCache) GetInformer ¶
func (c *FakeCache) GetInformer(obj runtime.Object) (toolscache.SharedIndexInformer, error)
func (*FakeCache) GetInformerForKind ¶
func (c *FakeCache) GetInformerForKind(gvk schema.GroupVersionKind) (toolscache.SharedIndexInformer, error)
func (*FakeCache) IndexField ¶
func (*FakeCache) WaitForCacheSync ¶
Click to show internal directories.
Click to hide internal directories.