mocks

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

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 CliConnection added in v0.9.0

type CliConnection interface {
	plugin.CliConnection
}

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
}

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 {
	Err      error
	Out      *gbytes.Buffer
	Reply    map[string]string
	Progress chan ui.Progress
}

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 ui.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