mocks

package
v0.0.0-...-0f323ce Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCpAPIProvider

type MockCpAPIProvider struct {
	mock.Mock
}

Mock for CpAPIProvider

func NewMockCpAPIProvider

func NewMockCpAPIProvider() *MockCpAPIProvider

func (*MockCpAPIProvider) CancelRunningTide

func (m *MockCpAPIProvider) CancelRunningTide(flowID string, remoteEnvironmentID string) error

func (*MockCpAPIProvider) CancelTide

func (m *MockCpAPIProvider) CancelTide(tideID string) error

func (*MockCpAPIProvider) GetAPIEnvironments

func (m *MockCpAPIProvider) GetAPIEnvironments(flowID string) ([]cpapi.APIEnvironment, error)

func (*MockCpAPIProvider) GetAPIFlows

func (m *MockCpAPIProvider) GetAPIFlows(project string) ([]cpapi.APIFlow, error)

func (*MockCpAPIProvider) GetAPITeams

func (m *MockCpAPIProvider) GetAPITeams() ([]cpapi.APITeam, error)

func (*MockCpAPIProvider) GetAPIUser

func (m *MockCpAPIProvider) GetAPIUser(user string) (*cpapi.APIUser, error)

func (*MockCpAPIProvider) GetRemoteEnvironmentStatus

func (m *MockCpAPIProvider) GetRemoteEnvironmentStatus(flowID string, environmentID string) (*cpapi.APIRemoteEnvironmentStatus, error)

func (*MockCpAPIProvider) RemoteDevelopmentEnvironmentDestroy

func (m *MockCpAPIProvider) RemoteDevelopmentEnvironmentDestroy(flowID string, remoteEnvironmentID string) error

func (*MockCpAPIProvider) RemoteEnvironmentBuild

func (m *MockCpAPIProvider) RemoteEnvironmentBuild(remoteEnvironmentFlowID string, gitBranch string) error

func (*MockCpAPIProvider) RemoteEnvironmentDestroy

func (m *MockCpAPIProvider) RemoteEnvironmentDestroy(flowID string, environment string, cluster string) error

func (*MockCpAPIProvider) RemoteEnvironmentRunningAndExists

func (m *MockCpAPIProvider) RemoteEnvironmentRunningAndExists(flowID string, environmentID string) (bool, error)

func (*MockCpAPIProvider) SetAPIKey

func (m *MockCpAPIProvider) SetAPIKey(apiKey string)

type MockInitState

type MockInitState struct {
	mock.Mock
}

MockInitState is a Mock for InitState

func NewMockInitState

func NewMockInitState() *MockInitState

NewMockInitState Return an instance of MockInitState

func (*MockInitState) Handle

func (h *MockInitState) Handle() (suggestion string, err error)

Handle records the arguments called and return the mocked arguments

func (*MockInitState) Name

func (h *MockInitState) Name() string

Name records the arguments called and return the mocked arguments

func (*MockInitState) Next

Next records the arguments called and return the mocked arguments

type MockPodsFilter

type MockPodsFilter struct {
	mock.Mock
}

Mock for PodsFilter

func NewMockPodsFilter

func NewMockPodsFilter() *MockPodsFilter

func (*MockPodsFilter) ByService

func (m *MockPodsFilter) ByService(service string) pods.Filter

func (*MockPodsFilter) ByStatus

func (m *MockPodsFilter) ByStatus(status string) pods.Filter

func (*MockPodsFilter) ByStatusReason

func (m *MockPodsFilter) ByStatusReason(status string) pods.Filter

func (*MockPodsFilter) First

func (m *MockPodsFilter) First() *api.Pod

func (*MockPodsFilter) List

func (m *MockPodsFilter) List(pods api.PodList) pods.Filter

type SpyConfig

type SpyConfig struct {
	mock.Mock
}

Spy for Config

func NewSpyConfig

func NewSpyConfig() *SpyConfig

func (*SpyConfig) ConfigFileUsed

func (s *SpyConfig) ConfigFileUsed(configType config.ConfigType) (string, error)

func (*SpyConfig) GetBool

func (s *SpyConfig) GetBool(key string) (bool, error)

func (*SpyConfig) GetString

func (s *SpyConfig) GetString(key string) (string, error)

func (*SpyConfig) GetStringQ

func (s *SpyConfig) GetStringQ(key string) string

func (*SpyConfig) ReadInConfig

func (s *SpyConfig) ReadInConfig(configType config.ConfigType) error

func (*SpyConfig) Save

func (s *SpyConfig) Save(configType config.ConfigType) error

func (*SpyConfig) Set

func (s *SpyConfig) Set(key string, value interface{}) error

func (*SpyConfig) SetConfigFile

func (s *SpyConfig) SetConfigFile(configType config.ConfigType, in string) error

func (*SpyConfig) SetConfigPath

func (s *SpyConfig) SetConfigPath(configType config.ConfigType, in string) error

type SpySyncer

type SpySyncer struct {
	mock.Mock
}

Spy for Syncer interface

func NewSpySyncer

func NewSpySyncer() *SpySyncer

func (SpySyncer) SetOptions

func (s SpySyncer) SetOptions(syncOptions options.SyncOptions)

func (SpySyncer) Sync

func (s SpySyncer) Sync(filePaths []string) error

Jump to

Keyboard shortcuts

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