serviceCreator

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatorInterface

type CreatorInterface interface {
	CreateServices(manifest *serviceManifest.ServiceManifest, cf plugin.CliConnection) error
}

CreatorInterface shows the set of methods that describes the serviceCreator

type LogFunc

type LogFunc func(format string, a ...interface{}) (n int, err error)

LogFunc is logger function signature. We'll use this to set the function to output the progress output

type ProgressReporter

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

ProgressReporter describes the state and current message displayed

func NewProgressReporter

func NewProgressReporter() *ProgressReporter

NewProgressReporter initializes and creates a New Progress Reporter defaulting output to stdout

func NewProgressReporterWithLoggerOut

func NewProgressReporterWithLoggerOut(outputFunction LogFunc) *ProgressReporter

NewProgressReporterWithLoggerOut initializes and creates a New Progress Reporter with a specific log output function

func (*ProgressReporter) Step

func (ps *ProgressReporter) Step(loadingMessage string)

Step updates the Progress Reporter State and Display message on screen

type ServiceCreator

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

ServiceCreator describes the components required for service creation

func NewServiceCreator

func NewServiceCreator() *ServiceCreator

NewServiceCreator creates a service creator with the default progress reporter

func (*ServiceCreator) CreateServices

func (c *ServiceCreator) CreateServices(manifest *serviceManifest.ServiceManifest, cf plugin.CliConnection) error

CreateServices creates the services specified by manifest via a cliConnection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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