Documentation ¶
Index ¶
- type MockPostgresClient
- func (c MockPostgresClient) CreateOrUpdate(ctx context.Context, postgres runtime.Object) (controllerutil.OperationResult, error)
- func (c MockPostgresClient) DeletePostgresDeployment(ctx context.Context, postgres *v1alpha1.Postgres) error
- func (c MockPostgresClient) DeletePostgresPVC(ctx context.Context, postgres *v1alpha1.Postgres) error
- func (c MockPostgresClient) DeletePostgresService(ctx context.Context, postgres *v1alpha1.Postgres) error
- func (c MockPostgresClient) GeneratePassword() (string, error)
- func (c MockPostgresClient) ParseInputSecret(ctx context.Context, postgres v1alpha1.Postgres) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostgresClient ¶
type MockPostgresClient struct { MockCreateOrUpdate func(ctx context.Context, postgres runtime.Object) (controllerutil.OperationResult, error) MockParseInputSecret func(ctx context.Context, postgres v1alpha1.Postgres) (string, error) MockDeletePostgresPVC func(ctx context.Context, postgres *v1alpha1.Postgres) error MockDeletePostgresDeployment func(ctx context.Context, postgres *v1alpha1.Postgres) error MockDeletePostgresService func(ctx context.Context, postgres *v1alpha1.Postgres) error MockGeneratePassword func() (string, error) }
MockPostgresClient is the mock client for the postgres client
func (MockPostgresClient) CreateOrUpdate ¶
func (c MockPostgresClient) CreateOrUpdate(ctx context.Context, postgres runtime.Object) (controllerutil.OperationResult, error)
CreateOrUpdate calls the MockCreateOrUpdate fake function
func (MockPostgresClient) DeletePostgresDeployment ¶
func (c MockPostgresClient) DeletePostgresDeployment(ctx context.Context, postgres *v1alpha1.Postgres) error
DeletePostgresDeployment calls the MockDeletePostgresDeployment fake function
func (MockPostgresClient) DeletePostgresPVC ¶
func (c MockPostgresClient) DeletePostgresPVC(ctx context.Context, postgres *v1alpha1.Postgres) error
DeletePostgresPVC calls the MockDeletePostgresPVC fake function
func (MockPostgresClient) DeletePostgresService ¶
func (c MockPostgresClient) DeletePostgresService(ctx context.Context, postgres *v1alpha1.Postgres) error
DeletePostgresService calls the MockDeletePostgresService fake function
func (MockPostgresClient) GeneratePassword ¶
func (c MockPostgresClient) GeneratePassword() (string, error)
GeneratePassword calls the MockGeneratePassword fake function
func (MockPostgresClient) ParseInputSecret ¶
func (c MockPostgresClient) ParseInputSecret(ctx context.Context, postgres v1alpha1.Postgres) (string, error)
ParseInputSecret calls the MockParseInputSecret fake function
Click to show internal directories.
Click to hide internal directories.