fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRDSClient

type MockRDSClient struct {
	MockGetInstance    func(string) (*rds.Instance, error)
	MockCreateInstance func(string, string, *v1alpha1.RDSInstanceSpec) (*rds.Instance, error)
	MockDeleteInstance func(name string) (*rds.Instance, error)
}

func (*MockRDSClient) CreateInstance

func (m *MockRDSClient) CreateInstance(name, password string, spec *v1alpha1.RDSInstanceSpec) (*rds.Instance, error)

CreateInstance creates RDS Instance with provided Specification

func (*MockRDSClient) DeleteInstance

func (m *MockRDSClient) DeleteInstance(name string) (*rds.Instance, error)

DeleteInstance deletes RDS Instance

func (*MockRDSClient) GetInstance

func (m *MockRDSClient) GetInstance(name string) (*rds.Instance, error)

GetInstance finds RDS Instance by name

Jump to

Keyboard shortcuts

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