manager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeManager

func InitializeManager(fs afero.Fs, connector string) error

InitializeManager creates a deployment manager object and saves it in the manager global variable

Types

type DeploymentAlreadyExistsError

type DeploymentAlreadyExistsError struct {
	DeploymentName string
}

func (DeploymentAlreadyExistsError) Error

type DeploymentDoNotExistsError

type DeploymentDoNotExistsError struct {
	DeploymentName string
}

func (DeploymentDoNotExistsError) Error

func (err DeploymentDoNotExistsError) Error() string

type Manager

type Manager interface {
	List() ([]string, error)
	Get(name string) (deployment.Deployment, error)
	Create(name string, storageRepoURI string, codeRepoURI string, codeRepoPath string,
		terraformVersion string, flavour string) error
	Clone(name string, storageRepoURI string, codeRepoURI string) error
	Delete(name string) error
}

Manager interface that provides methods to manage differents deployments.

func GetManager

func GetManager() Manager

GetManager returns the manager global variable, that was initialized by InitializeManager function

type ManagerUnsupportedConnectorError

type ManagerUnsupportedConnectorError struct {
	Connector string
}

func (ManagerUnsupportedConnectorError) Error

Jump to

Keyboard shortcuts

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