mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	StackAName = "stackA"
	StackBName = "stackB"
	StackAGuid = "stackAGuid"
	StackBGuid = "stackBGuid"
	StackEName = "stackE"
	StackEGuid = "stackEGuid"
	AppAName   = "appA"
	AppBName   = "appB"
	SpaceGuid  = "commonSpaceGuid"
	SpaceName  = "commonSpace"
)

Functions

func FileToString added in v0.0.3

func FileToString(fileName string) ([]string, error)

TODO move this somewhere more appropriate

func SetCurrentOrgAndSpace

func SetCurrentOrgAndSpace(mockConnection *MockCliConnection, org string, space string, spaceGuid string)

Types

type MockCliConnection

type MockCliConnection struct {
	// contains filtered or unexported fields
}

MockCliConnection is a mock of CliConnection interface

func NewMockCliConnection

func NewMockCliConnection(ctrl *gomock.Controller) *MockCliConnection

NewMockCliConnection creates a new mock instance

func SetupMockCliConnection

func SetupMockCliConnection(mockCtrl *gomock.Controller) *MockCliConnection

func (*MockCliConnection) AccessToken

func (m *MockCliConnection) AccessToken() (string, error)

AccessToken mocks base method

func (*MockCliConnection) ApiEndpoint

func (m *MockCliConnection) ApiEndpoint() (string, error)

ApiEndpoint mocks base method

func (*MockCliConnection) ApiVersion

func (m *MockCliConnection) ApiVersion() (string, error)

ApiVersion mocks base method

func (*MockCliConnection) CliCommand

func (m *MockCliConnection) CliCommand(arg0 ...string) ([]string, error)

CliCommand mocks base method

func (*MockCliConnection) CliCommandWithoutTerminalOutput

func (m *MockCliConnection) CliCommandWithoutTerminalOutput(arg0 ...string) ([]string, error)

CliCommandWithoutTerminalOutput mocks base method

func (*MockCliConnection) DopplerEndpoint

func (m *MockCliConnection) DopplerEndpoint() (string, error)

DopplerEndpoint mocks base method

func (*MockCliConnection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCliConnection) GetApp

func (m *MockCliConnection) GetApp(arg0 string) (models.GetAppModel, error)

GetApp mocks base method

func (*MockCliConnection) GetApps

func (m *MockCliConnection) GetApps() ([]models.GetAppsModel, error)

GetApps mocks base method

func (*MockCliConnection) GetCurrentOrg

func (m *MockCliConnection) GetCurrentOrg() (models.Organization, error)

GetCurrentOrg mocks base method

func (*MockCliConnection) GetCurrentSpace

func (m *MockCliConnection) GetCurrentSpace() (models.Space, error)

GetCurrentSpace mocks base method

func (*MockCliConnection) GetOrg

func (m *MockCliConnection) GetOrg(arg0 string) (models.GetOrg_Model, error)

GetOrg mocks base method

func (*MockCliConnection) GetOrgUsers

func (m *MockCliConnection) GetOrgUsers(arg0 string, arg1 ...string) ([]models.GetOrgUsers_Model, error)

GetOrgUsers mocks base method

func (*MockCliConnection) GetOrgs

func (m *MockCliConnection) GetOrgs() ([]models.GetOrgs_Model, error)

GetOrgs mocks base method

func (*MockCliConnection) GetService

func (m *MockCliConnection) GetService(arg0 string) (models.GetService_Model, error)

GetService mocks base method

func (*MockCliConnection) GetServices

func (m *MockCliConnection) GetServices() ([]models.GetServices_Model, error)

GetServices mocks base method

func (*MockCliConnection) GetSpace

func (m *MockCliConnection) GetSpace(arg0 string) (models.GetSpace_Model, error)

GetSpace mocks base method

func (*MockCliConnection) GetSpaceUsers

func (m *MockCliConnection) GetSpaceUsers(arg0, arg1 string) ([]models.GetSpaceUsers_Model, error)

GetSpaceUsers mocks base method

func (*MockCliConnection) GetSpaces

func (m *MockCliConnection) GetSpaces() ([]models.GetSpaces_Model, error)

GetSpaces mocks base method

func (*MockCliConnection) HasAPIEndpoint

func (m *MockCliConnection) HasAPIEndpoint() (bool, error)

HasAPIEndpoint mocks base method

func (*MockCliConnection) HasOrganization

func (m *MockCliConnection) HasOrganization() (bool, error)

HasOrganization mocks base method

func (*MockCliConnection) HasSpace

func (m *MockCliConnection) HasSpace() (bool, error)

HasSpace mocks base method

func (*MockCliConnection) IsLoggedIn

func (m *MockCliConnection) IsLoggedIn() (bool, error)

IsLoggedIn mocks base method

func (*MockCliConnection) IsSSLDisabled

func (m *MockCliConnection) IsSSLDisabled() (bool, error)

IsSSLDisabled mocks base method

func (*MockCliConnection) LoggregatorEndpoint

func (m *MockCliConnection) LoggregatorEndpoint() (string, error)

LoggregatorEndpoint mocks base method

func (*MockCliConnection) UserEmail

func (m *MockCliConnection) UserEmail() (string, error)

UserEmail mocks base method

func (*MockCliConnection) UserGuid

func (m *MockCliConnection) UserGuid() (string, error)

UserGuid mocks base method

func (*MockCliConnection) Username

func (m *MockCliConnection) Username() (string, error)

Username mocks base method

type MockCliConnectionMockRecorder

type MockCliConnectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockCliConnectionMockRecorder is the mock recorder for MockCliConnection

func (*MockCliConnectionMockRecorder) AccessToken

func (mr *MockCliConnectionMockRecorder) AccessToken() *gomock.Call

AccessToken indicates an expected call of AccessToken

func (*MockCliConnectionMockRecorder) ApiEndpoint

func (mr *MockCliConnectionMockRecorder) ApiEndpoint() *gomock.Call

ApiEndpoint indicates an expected call of ApiEndpoint

func (*MockCliConnectionMockRecorder) ApiVersion

func (mr *MockCliConnectionMockRecorder) ApiVersion() *gomock.Call

ApiVersion indicates an expected call of ApiVersion

func (*MockCliConnectionMockRecorder) CliCommand

func (mr *MockCliConnectionMockRecorder) CliCommand(arg0 ...interface{}) *gomock.Call

CliCommand indicates an expected call of CliCommand

func (*MockCliConnectionMockRecorder) CliCommandWithoutTerminalOutput

func (mr *MockCliConnectionMockRecorder) CliCommandWithoutTerminalOutput(arg0 ...interface{}) *gomock.Call

CliCommandWithoutTerminalOutput indicates an expected call of CliCommandWithoutTerminalOutput

func (*MockCliConnectionMockRecorder) DopplerEndpoint

func (mr *MockCliConnectionMockRecorder) DopplerEndpoint() *gomock.Call

DopplerEndpoint indicates an expected call of DopplerEndpoint

func (*MockCliConnectionMockRecorder) GetApp

func (mr *MockCliConnectionMockRecorder) GetApp(arg0 interface{}) *gomock.Call

GetApp indicates an expected call of GetApp

func (*MockCliConnectionMockRecorder) GetApps

func (mr *MockCliConnectionMockRecorder) GetApps() *gomock.Call

GetApps indicates an expected call of GetApps

func (*MockCliConnectionMockRecorder) GetCurrentOrg

func (mr *MockCliConnectionMockRecorder) GetCurrentOrg() *gomock.Call

GetCurrentOrg indicates an expected call of GetCurrentOrg

func (*MockCliConnectionMockRecorder) GetCurrentSpace

func (mr *MockCliConnectionMockRecorder) GetCurrentSpace() *gomock.Call

GetCurrentSpace indicates an expected call of GetCurrentSpace

func (*MockCliConnectionMockRecorder) GetOrg

func (mr *MockCliConnectionMockRecorder) GetOrg(arg0 interface{}) *gomock.Call

GetOrg indicates an expected call of GetOrg

func (*MockCliConnectionMockRecorder) GetOrgUsers

func (mr *MockCliConnectionMockRecorder) GetOrgUsers(arg0 interface{}, arg1 ...interface{}) *gomock.Call

GetOrgUsers indicates an expected call of GetOrgUsers

func (*MockCliConnectionMockRecorder) GetOrgs

func (mr *MockCliConnectionMockRecorder) GetOrgs() *gomock.Call

GetOrgs indicates an expected call of GetOrgs

func (*MockCliConnectionMockRecorder) GetService

func (mr *MockCliConnectionMockRecorder) GetService(arg0 interface{}) *gomock.Call

GetService indicates an expected call of GetService

func (*MockCliConnectionMockRecorder) GetServices

func (mr *MockCliConnectionMockRecorder) GetServices() *gomock.Call

GetServices indicates an expected call of GetServices

func (*MockCliConnectionMockRecorder) GetSpace

func (mr *MockCliConnectionMockRecorder) GetSpace(arg0 interface{}) *gomock.Call

GetSpace indicates an expected call of GetSpace

func (*MockCliConnectionMockRecorder) GetSpaceUsers

func (mr *MockCliConnectionMockRecorder) GetSpaceUsers(arg0, arg1 interface{}) *gomock.Call

GetSpaceUsers indicates an expected call of GetSpaceUsers

func (*MockCliConnectionMockRecorder) GetSpaces

func (mr *MockCliConnectionMockRecorder) GetSpaces() *gomock.Call

GetSpaces indicates an expected call of GetSpaces

func (*MockCliConnectionMockRecorder) HasAPIEndpoint

func (mr *MockCliConnectionMockRecorder) HasAPIEndpoint() *gomock.Call

HasAPIEndpoint indicates an expected call of HasAPIEndpoint

func (*MockCliConnectionMockRecorder) HasOrganization

func (mr *MockCliConnectionMockRecorder) HasOrganization() *gomock.Call

HasOrganization indicates an expected call of HasOrganization

func (*MockCliConnectionMockRecorder) HasSpace

func (mr *MockCliConnectionMockRecorder) HasSpace() *gomock.Call

HasSpace indicates an expected call of HasSpace

func (*MockCliConnectionMockRecorder) IsLoggedIn

func (mr *MockCliConnectionMockRecorder) IsLoggedIn() *gomock.Call

IsLoggedIn indicates an expected call of IsLoggedIn

func (*MockCliConnectionMockRecorder) IsSSLDisabled

func (mr *MockCliConnectionMockRecorder) IsSSLDisabled() *gomock.Call

IsSSLDisabled indicates an expected call of IsSSLDisabled

func (*MockCliConnectionMockRecorder) LoggregatorEndpoint

func (mr *MockCliConnectionMockRecorder) LoggregatorEndpoint() *gomock.Call

LoggregatorEndpoint indicates an expected call of LoggregatorEndpoint

func (*MockCliConnectionMockRecorder) UserEmail

func (mr *MockCliConnectionMockRecorder) UserEmail() *gomock.Call

UserEmail indicates an expected call of UserEmail

func (*MockCliConnectionMockRecorder) UserGuid

func (mr *MockCliConnectionMockRecorder) UserGuid() *gomock.Call

UserGuid indicates an expected call of UserGuid

func (*MockCliConnectionMockRecorder) Username

func (mr *MockCliConnectionMockRecorder) Username() *gomock.Call

Username indicates an expected call of Username

Jump to

Keyboard shortcuts

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