Documentation ¶
Index ¶
- type FakeSecrets
- func (f *FakeSecrets) Create(secret *api.Secret) (*api.Secret, error)
- func (f *FakeSecrets) Delete(name string) error
- func (f *FakeSecrets) Get(name string) (*api.Secret, error)
- func (f *FakeSecrets) List(opts api.ListOptions) (*api.SecretList, error)
- func (f *FakeSecrets) Update(secret *api.Secret) (*api.Secret, error)
- func (f *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeSecretsNamespacer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSecrets ¶
type FakeSecrets struct { FnCreate func(*api.Secret) (*api.Secret, error) FnUpdate func(*api.Secret) (*api.Secret, error) CreateCalls []*api.Secret UpdateCalls []*api.Secret }
FakeSecrets is a mock function that can be swapped in for an SecretGetter or (k8s.io/kubernetes/pkg/client/unversioned).SecretsInterface, so you can unit test your code.
func (*FakeSecrets) Delete ¶
func (f *FakeSecrets) Delete(name string) error
Delete is the interface definition.
func (*FakeSecrets) Get ¶
func (f *FakeSecrets) Get(name string) (*api.Secret, error)
Get is the interface definition.
func (*FakeSecrets) List ¶
func (f *FakeSecrets) List(opts api.ListOptions) (*api.SecretList, error)
List is the interface definition.
func (*FakeSecrets) Watch ¶
func (f *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error)
Watch is the interface definition.
type FakeSecretsNamespacer ¶
type FakeSecretsNamespacer struct {
Fn func(string) client.SecretsInterface
}
FakeSecretsNamespacer is a mock function that can be swapped in for an (k8s.io/kubernetes/pkg/client/unversioned).SecretsNamespacer, so you can unit test you code
func (*FakeSecretsNamespacer) Secrets ¶
func (f *FakeSecretsNamespacer) Secrets(namespace string) client.SecretsInterface
Secrets is the interface definition.
Click to show internal directories.
Click to hide internal directories.