Documentation ¶
Index ¶
- type MockCreateService
- func (mcsp *MockCreateService) CreateParser(filename string) (*serviceManifest.ParseData, error)
- func (mcsp *MockCreateService) CreateServices(manifest *serviceManifest.ServiceManifest, cf plugin.CliConnection) error
- func (mcsp *MockCreateService) GetArgumentsDescription() map[string]string
- func (mcsp *MockCreateService) GetUsage() string
- func (mcsp *MockCreateService) Parse([]string, map[string]string) (*serviceManifest.ServiceManifest, error)
- func (mcsp *MockCreateService) Process(args []string) (*cspArguments.CSPArguments, error)
- type MockExitHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCreateService ¶
type MockCreateService struct { ArgumentHasError bool CreateParserHasError bool ParseHasError bool CreateServiceHasError bool ServicesCreated bool DoNotCreateServices bool DoNotPush bool PlugIsUninstalling bool }
func NewMockCreateService ¶
func NewMockCreateService() *MockCreateService
func (*MockCreateService) CreateParser ¶
func (mcsp *MockCreateService) CreateParser(filename string) (*serviceManifest.ParseData, error)
func (*MockCreateService) CreateServices ¶
func (mcsp *MockCreateService) CreateServices(manifest *serviceManifest.ServiceManifest, cf plugin.CliConnection) error
func (*MockCreateService) GetArgumentsDescription ¶
func (mcsp *MockCreateService) GetArgumentsDescription() map[string]string
func (*MockCreateService) GetUsage ¶
func (mcsp *MockCreateService) GetUsage() string
func (*MockCreateService) Parse ¶
func (mcsp *MockCreateService) Parse([]string, map[string]string) (*serviceManifest.ServiceManifest, error)
Parse parses a manifest from a reader
func (*MockCreateService) Process ¶
func (mcsp *MockCreateService) Process(args []string) (*cspArguments.CSPArguments, error)
type MockExitHandler ¶
MockExitHandler is the struct holding the exit hander
func NewMockExitHandler ¶
func NewMockExitHandler() *MockExitHandler
NewMockExitHandler creates a NewMockExitHandler struct
func (*MockExitHandler) HandleError ¶
func (eh *MockExitHandler) HandleError()
HandleError is the method to deal with errors on exit.
func (*MockExitHandler) HandleOK ¶
func (eh *MockExitHandler) HandleOK()
HandleOK is the method to deal with exiting the plugin while it was ok to
Click to show internal directories.
Click to hide internal directories.