Documentation ¶
Index ¶
- func WithEnabled(isEnabled bool) enabled
- func WithVCSAuthSecretFor(projectName string) *vcsAuthSecret
- type Environment
- type FakeDynamicClient
- func (client *FakeDynamicClient) Apply(ctx context.Context, obj *unstructured.Unstructured, fieldManager string, ...) (*unstructured.Unstructured, error)
- func (client *FakeDynamicClient) Delete(ctx context.Context, obj *unstructured.Unstructured) error
- func (client *FakeDynamicClient) Get(ctx context.Context, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (client *FakeDynamicClient) Patch(ctx context.Context, obj *unstructured.Unstructured, fieldManager string, ...) (*unstructured.Unstructured, error)
- func (client *FakeDynamicClient) RESTMapper() meta.RESTMapper
- func (client *FakeDynamicClient) Update(ctx context.Context, obj *unstructured.Unstructured, fieldManager string, ...) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEnabled ¶
func WithEnabled(isEnabled bool) enabled
func WithVCSAuthSecretFor ¶
func WithVCSAuthSecretFor(projectName string) *vcsAuthSecret
Types ¶
type Environment ¶
type Environment struct { ControlPlane *envtest.Environment TestKubeClient client.Client DynamicTestKubeClient *kube.ExtendedDynamicClient RepositoryManager vcs.RepositoryManager Ctx context.Context // contains filtered or unexported fields }
func StartKubetestEnv ¶
func (Environment) Stop ¶
func (env Environment) Stop() error
type FakeDynamicClient ¶
type FakeDynamicClient struct {
Err error
}
func (*FakeDynamicClient) Apply ¶
func (client *FakeDynamicClient) Apply( ctx context.Context, obj *unstructured.Unstructured, fieldManager string, opts ...kube.ApplyOption, ) (*unstructured.Unstructured, error)
func (*FakeDynamicClient) Delete ¶
func (client *FakeDynamicClient) Delete(ctx context.Context, obj *unstructured.Unstructured) error
func (*FakeDynamicClient) Get ¶
func (client *FakeDynamicClient) Get( ctx context.Context, obj *unstructured.Unstructured, ) (*unstructured.Unstructured, error)
func (*FakeDynamicClient) Patch ¶
func (client *FakeDynamicClient) Patch( ctx context.Context, obj *unstructured.Unstructured, fieldManager string, opts ...kube.PatchOption, ) (*unstructured.Unstructured, error)
func (*FakeDynamicClient) RESTMapper ¶
func (client *FakeDynamicClient) RESTMapper() meta.RESTMapper
func (*FakeDynamicClient) Update ¶
func (client *FakeDynamicClient) Update( ctx context.Context, obj *unstructured.Unstructured, fieldManager string, opts ...kube.ApplyOption, ) error
Click to show internal directories.
Click to hide internal directories.