mocks

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockFunc added in v0.14.0

func NewMockFunc() (func(), func() int)

Types

type Buffer added in v0.10.0

type Buffer interface {
	io.ReadWriter
	Len() int
}

type MockBuffer added in v0.10.0

type MockBuffer struct {
	Buffer
	CloseErr error
	ResetErr error
	// contains filtered or unexported fields
}

func NewMockBuffer added in v0.10.0

func NewMockBuffer(contents string) *MockBuffer

func (*MockBuffer) Close added in v0.10.0

func (m *MockBuffer) Close() error

func (*MockBuffer) Reset added in v0.10.0

func (m *MockBuffer) Reset() error

func (*MockBuffer) Result added in v0.10.0

func (m *MockBuffer) Result() string

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 (*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 added in v0.18.0

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

MockCliConnectionMockRecorder is the mock recorder for MockCliConnection

func (*MockCliConnectionMockRecorder) AccessToken added in v0.18.0

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

AccessToken indicates an expected call of AccessToken

func (*MockCliConnectionMockRecorder) ApiEndpoint added in v0.18.0

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

ApiEndpoint indicates an expected call of ApiEndpoint

func (*MockCliConnectionMockRecorder) ApiVersion added in v0.18.0

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

ApiVersion indicates an expected call of ApiVersion

func (*MockCliConnectionMockRecorder) CliCommand added in v0.18.0

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

CliCommand indicates an expected call of CliCommand

func (*MockCliConnectionMockRecorder) CliCommandWithoutTerminalOutput added in v0.18.0

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

CliCommandWithoutTerminalOutput indicates an expected call of CliCommandWithoutTerminalOutput

func (*MockCliConnectionMockRecorder) DopplerEndpoint added in v0.18.0

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

DopplerEndpoint indicates an expected call of DopplerEndpoint

func (*MockCliConnectionMockRecorder) GetApp added in v0.18.0

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

GetApp indicates an expected call of GetApp

func (*MockCliConnectionMockRecorder) GetApps added in v0.18.0

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

GetApps indicates an expected call of GetApps

func (*MockCliConnectionMockRecorder) GetCurrentOrg added in v0.18.0

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

GetCurrentOrg indicates an expected call of GetCurrentOrg

func (*MockCliConnectionMockRecorder) GetCurrentSpace added in v0.18.0

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

GetCurrentSpace indicates an expected call of GetCurrentSpace

func (*MockCliConnectionMockRecorder) GetOrg added in v0.18.0

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

GetOrg indicates an expected call of GetOrg

func (*MockCliConnectionMockRecorder) GetOrgUsers added in v0.18.0

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

GetOrgUsers indicates an expected call of GetOrgUsers

func (*MockCliConnectionMockRecorder) GetOrgs added in v0.18.0

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

GetOrgs indicates an expected call of GetOrgs

func (*MockCliConnectionMockRecorder) GetService added in v0.18.0

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

GetService indicates an expected call of GetService

func (*MockCliConnectionMockRecorder) GetServices added in v0.18.0

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

GetServices indicates an expected call of GetServices

func (*MockCliConnectionMockRecorder) GetSpace added in v0.18.0

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

GetSpace indicates an expected call of GetSpace

func (*MockCliConnectionMockRecorder) GetSpaceUsers added in v0.18.0

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

GetSpaceUsers indicates an expected call of GetSpaceUsers

func (*MockCliConnectionMockRecorder) GetSpaces added in v0.18.0

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

GetSpaces indicates an expected call of GetSpaces

func (*MockCliConnectionMockRecorder) HasAPIEndpoint added in v0.18.0

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

HasAPIEndpoint indicates an expected call of HasAPIEndpoint

func (*MockCliConnectionMockRecorder) HasOrganization added in v0.18.0

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

HasOrganization indicates an expected call of HasOrganization

func (*MockCliConnectionMockRecorder) HasSpace added in v0.18.0

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

HasSpace indicates an expected call of HasSpace

func (*MockCliConnectionMockRecorder) IsLoggedIn added in v0.18.0

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

IsLoggedIn indicates an expected call of IsLoggedIn

func (*MockCliConnectionMockRecorder) IsSSLDisabled added in v0.18.0

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

IsSSLDisabled indicates an expected call of IsSSLDisabled

func (*MockCliConnectionMockRecorder) LoggregatorEndpoint added in v0.18.0

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

LoggregatorEndpoint indicates an expected call of LoggregatorEndpoint

func (*MockCliConnectionMockRecorder) UserEmail added in v0.18.0

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

UserEmail indicates an expected call of UserEmail

func (*MockCliConnectionMockRecorder) UserGuid added in v0.18.0

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

UserGuid indicates an expected call of UserGuid

func (*MockCliConnectionMockRecorder) Username added in v0.18.0

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

Username indicates an expected call of Username

type MockUI

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

func NewMockUI

func NewMockUI() *MockUI

func (*MockUI) Error

func (m *MockUI) Error(err error)

func (*MockUI) Loading added in v0.7.0

func (m *MockUI) Loading(message string, progress <-chan engine.Progress) error

func (*MockUI) Output

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

func (*MockUI) Prompt

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

func (*MockUI) Warn

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

Jump to

Keyboard shortcuts

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