Documentation ¶
Index ¶
- type MockCpAPIProvider
- func (m *MockCpAPIProvider) CancelRunningTide(flowID string, remoteEnvironmentID string) error
- func (m *MockCpAPIProvider) CancelTide(tideID string) error
- func (m *MockCpAPIProvider) GetAPIEnvironments(flowID string) ([]cpapi.APIEnvironment, error)
- func (m *MockCpAPIProvider) GetAPIFlows(project string) ([]cpapi.APIFlow, error)
- func (m *MockCpAPIProvider) GetAPITeams() ([]cpapi.APITeam, error)
- func (m *MockCpAPIProvider) GetAPIUser(user string) (*cpapi.APIUser, error)
- func (m *MockCpAPIProvider) GetRemoteEnvironmentStatus(flowID string, environmentID string) (*cpapi.APIRemoteEnvironmentStatus, error)
- func (m *MockCpAPIProvider) RemoteDevelopmentEnvironmentDestroy(flowID string, remoteEnvironmentID string) error
- func (m *MockCpAPIProvider) RemoteEnvironmentBuild(remoteEnvironmentFlowID string, gitBranch string) error
- func (m *MockCpAPIProvider) RemoteEnvironmentDestroy(flowID string, environment string, cluster string) error
- func (m *MockCpAPIProvider) RemoteEnvironmentRunningAndExists(flowID string, environmentID string) (bool, error)
- func (m *MockCpAPIProvider) SetAPIKey(apiKey string)
- type MockInitState
- type MockPodsFilter
- type SpyConfig
- func (s *SpyConfig) ConfigFileUsed(configType config.ConfigType) (string, error)
- func (s *SpyConfig) GetBool(key string) (bool, error)
- func (s *SpyConfig) GetString(key string) (string, error)
- func (s *SpyConfig) GetStringQ(key string) string
- func (s *SpyConfig) ReadInConfig(configType config.ConfigType) error
- func (s *SpyConfig) Save(configType config.ConfigType) error
- func (s *SpyConfig) Set(key string, value interface{}) error
- func (s *SpyConfig) SetConfigFile(configType config.ConfigType, in string) error
- func (s *SpyConfig) SetConfigPath(configType config.ConfigType, in string) error
- type SpySyncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCpAPIProvider ¶
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 ¶
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 ¶
func (h *MockInitState) Next() initialization.InitState
Next records the arguments called and return the mocked arguments
type MockPodsFilter ¶
Mock for PodsFilter
func NewMockPodsFilter ¶
func NewMockPodsFilter() *MockPodsFilter
func (*MockPodsFilter) ByStatusReason ¶
func (m *MockPodsFilter) ByStatusReason(status string) pods.Filter
func (*MockPodsFilter) First ¶
func (m *MockPodsFilter) First() *api.Pod
type SpyConfig ¶
Spy for Config
func NewSpyConfig ¶
func NewSpyConfig() *SpyConfig
func (*SpyConfig) ConfigFileUsed ¶
func (s *SpyConfig) ConfigFileUsed(configType config.ConfigType) (string, error)
func (*SpyConfig) GetStringQ ¶
func (*SpyConfig) ReadInConfig ¶
func (s *SpyConfig) ReadInConfig(configType config.ConfigType) 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
Click to show internal directories.
Click to hide internal directories.