createService_mock

package
v0.0.0-...-60089aa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Parse parses a manifest from a reader

func (*MockCreateService) Process

func (mcsp *MockCreateService) Process(args []string) (*cspArguments.CSPArguments, error)

type MockExitHandler

type MockExitHandler struct {
	Exit1WasCalled bool
	Exit0WasCalled bool
}

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

Jump to

Keyboard shortcuts

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