Documentation ¶
Overview ¶
coreclients contains fakes for some of the types from k8s.io/client-go/kubernetes/typed/core/v1
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyFn ¶
type ApplyFn func(context.Context, *applyconfigurationscorev1.SecretApplyConfiguration, metav1.ApplyOptions) (*corev1.Secret, error)
type FakeSecretsGetter ¶
type FakeSecretsGetter struct {
// contains filtered or unexported fields
}
FakeSecretsGetter can be used to mock typedcorev1.SecretsGetter in tests.
func NewFakeSecretsGetter ¶
func NewFakeSecretsGetter(mods ...FakeSecretsGetterModifier) *FakeSecretsGetter
func NewFakeSecretsGetterFrom ¶
func NewFakeSecretsGetterFrom(f *FakeSecretsGetter, mods ...FakeSecretsGetterModifier) *FakeSecretsGetter
NewFakeSecretsGetterFrom can be used to create a mock typedcorev1.SecretsGetter for tests. Example: NewFakeSecretsGetterFrom(NewFakeSecretsGetter(), SetFakeSecretsGetterCreate(<secret>, <error>)).
func (*FakeSecretsGetter) Secrets ¶
func (f *FakeSecretsGetter) Secrets(string) typedcorev1.SecretInterface
type FakeSecretsGetterModifier ¶
type FakeSecretsGetterModifier func(*FakeSecretsGetter)
func SetFakeSecretsGetterApplyFn ¶
func SetFakeSecretsGetterApplyFn(fn ApplyFn) FakeSecretsGetterModifier
SetFakeSecretsGetterApplyFn is a function that can be used to inject code when the FakeSecretsGetter is Applied.
func SetFakeSecretsGetterCreate ¶
func SetFakeSecretsGetterCreate(s *corev1.Secret, err error) FakeSecretsGetterModifier
SetFakeSecretsGetterCreate is a modifier that can be used to set secret and error that will be returned when FakeSecretsGetter(<namespace>).Create(<secret>, <opts>) is called.
func SetFakeSecretsGetterGet ¶
func SetFakeSecretsGetterGet(s *corev1.Secret, err error) FakeSecretsGetterModifier
SetFakeSecretsGetterGet is a modifier that can be used to set secret and error that will be returned when FakeSecretsGetter(<namespace>).Get(<context>,<uid>,<opts>) is called.