fake

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL