mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCliConnection

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

Mock of CliConnection interface

func NewMockCliConnection

func NewMockCliConnection(ctrl *gomock.Controller) *MockCliConnection

func (*MockCliConnection) AccessToken

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

func (*MockCliConnection) ApiEndpoint

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

func (*MockCliConnection) ApiVersion

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

func (*MockCliConnection) CliCommand

func (_m *MockCliConnection) CliCommand(_param0 ...string) ([]string, error)

func (*MockCliConnection) CliCommandWithoutTerminalOutput

func (_m *MockCliConnection) CliCommandWithoutTerminalOutput(_param0 ...string) ([]string, error)

func (*MockCliConnection) DopplerEndpoint

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

func (*MockCliConnection) EXPECT

func (_m *MockCliConnection) EXPECT() *_MockCliConnectionRecorder

func (*MockCliConnection) GetApp

func (_m *MockCliConnection) GetApp(_param0 string) (models.GetAppModel, error)

func (*MockCliConnection) GetApps

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

func (*MockCliConnection) GetCurrentOrg

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

func (*MockCliConnection) GetCurrentSpace

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

func (*MockCliConnection) GetOrg

func (_m *MockCliConnection) GetOrg(_param0 string) (models.GetOrg_Model, error)

func (*MockCliConnection) GetOrgUsers

func (_m *MockCliConnection) GetOrgUsers(_param0 string, _param1 ...string) ([]models.GetOrgUsers_Model, error)

func (*MockCliConnection) GetOrgs

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

func (*MockCliConnection) GetService

func (_m *MockCliConnection) GetService(_param0 string) (models.GetService_Model, error)

func (*MockCliConnection) GetServices

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

func (*MockCliConnection) GetSpace

func (_m *MockCliConnection) GetSpace(_param0 string) (models.GetSpace_Model, error)

func (*MockCliConnection) GetSpaceUsers

func (_m *MockCliConnection) GetSpaceUsers(_param0 string, _param1 string) ([]models.GetSpaceUsers_Model, error)

func (*MockCliConnection) GetSpaces

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

func (*MockCliConnection) HasAPIEndpoint

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

func (*MockCliConnection) HasOrganization

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

func (*MockCliConnection) HasSpace

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

func (*MockCliConnection) IsLoggedIn

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

func (*MockCliConnection) IsSSLDisabled

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

func (*MockCliConnection) LoggregatorEndpoint

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

func (*MockCliConnection) UserEmail

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

func (*MockCliConnection) UserGuid

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

func (*MockCliConnection) Username

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

type MockUI

type MockUI struct {
	Out   *gbytes.Buffer
	Err   error
	Reply map[string]string
}

func NewMockUI

func NewMockUI() *MockUI

func (*MockUI) Error

func (m *MockUI) Error(err error)

func (*MockUI) Output

func (m *MockUI) Output(message string, args ...interface{})

func (*MockUI) Prompt

func (m *MockUI) Prompt(prompt string) string

func (*MockUI) Warn

func (m *MockUI) Warn(message string, args ...interface{})

Jump to

Keyboard shortcuts

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