controllers

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

View Source
const BackoffStart = 1

Variables

This section is empty.

Functions

func ConvergeDeployment

func ConvergeDeployment(context Context, depl *state.DeploymentState, refresh bool) error

func MarkDeploymentFailed

func MarkDeploymentFailed(context Context, err error, errorCode state.StatusCode) error

func SaveExtraInputsAndProvidersInDeploymentState

func SaveExtraInputsAndProvidersInDeploymentState(context Context, stage string, extraVars map[string]interface{}, extraProviders map[string]string) error

func SetExtraProviders

func SetExtraProviders(context Context, stage string, extraProviders map[string]string) error

Types

type BuildController

type BuildController struct{}

func (BuildController) Build

func (BuildController) Build(context Context, buildFatPackage bool, extraVars map[string]interface{}, extraProviders map[string]string) error

type ConfigController

type ConfigController struct{}

func (ConfigController) ActiveProfile

func (ConfigController) ActiveProfile(context Context) *ControllerResult

func (ConfigController) CreateProfile

func (ConfigController) CreateProfile(context Context, targetName string) *ControllerResult

func (ConfigController) ListProfiles

func (ConfigController) ListProfiles(context Context) *ControllerResult

func (ConfigController) SetProfile

func (ConfigController) SetProfile(context Context, profile string) *ControllerResult

func (ConfigController) ShowProfile

func (ConfigController) ShowProfile(context Context, json bool) *ControllerResult

func (ConfigController) ShowProfileField

func (ConfigController) ShowProfileField(context Context, field string) *ControllerResult

type ControllerResult

type ControllerResult struct {
	HumanOutput       *HumanOutput
	MarshalableOutput interface{}
	Error             error
}

func NewControllerResult

func NewControllerResult() *ControllerResult

func (ControllerResult) Print

func (r ControllerResult) Print(jsonFlag bool) error

type ConvergeController

type ConvergeController struct{}

func (ConvergeController) Converge

func (ConvergeController) Converge(context Context, refresh bool) error

type DeployController

type DeployController struct{}

func (DeployController) Deploy

func (d DeployController) Deploy(context Context, extraVars map[string]interface{}, extraProviders map[string]string) error

func (DeployController) FetchAndDeploy

func (d DeployController) FetchAndDeploy(context Context, releaseId string, extraVars map[string]interface{}, extraProviders map[string]string) error

type DepsController

type DepsController struct{}

func (DepsController) Fetch

func (DepsController) Fetch(context Context) error

type DestroyController

type DestroyController struct{}

func (DestroyController) Destroy

func (DestroyController) Destroy(context Context, destroyBuild, destroyDeployment bool) error

func (DestroyController) FetchAndDestroy

func (d DestroyController) FetchAndDestroy(context Context, releaseId string, destroyBuild, destroyDeployment bool) error

type ErrandsController

type ErrandsController struct{}

func (ErrandsController) List

func (ErrandsController) List(context Context) *ControllerResult

func (ErrandsController) Run

func (ErrandsController) Run(context Context, errandStr string, extraVars map[string]interface{}) error

func (ErrandsController) RunRemoteErrand

func (e ErrandsController) RunRemoteErrand(context Context, errandStr string, extraVars map[string]interface{}) error

type FetchController

type FetchController struct{}

func (FetchController) Fetch

func (FetchController) Fetch(context Context, releaseIds []string) error

func (FetchController) ResolveFetchAndLoad

func (f FetchController) ResolveFetchAndLoad(context Context, releaseId string) error

type HumanOutput

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

func NewHumanOutput

func NewHumanOutput(format string, a ...interface{}) *HumanOutput

func (*HumanOutput) AddLine

func (h *HumanOutput) AddLine(a string, a1 ...interface{})

func (*HumanOutput) AddList

func (h *HumanOutput) AddList(listToAdd []interface{})

func (*HumanOutput) AddMap

func (h *HumanOutput) AddMap(mapToAdd map[string]interface{})

func (*HumanOutput) AddStringList

func (h *HumanOutput) AddStringList(listToAdd []string)

type InventoryController

type InventoryController struct{}

func (InventoryController) Query

func (r InventoryController) Query(context Context, project, application, appVersion string) *ControllerResult

type LoginController

type LoginController struct{}

func (LoginController) Login

func (LoginController) Login(context Context, url, authMethodRequested, username, password string, insecureSkipVerify bool, targetProfile string) error

type PackageController

type PackageController struct{}

func (PackageController) Package

func (PackageController) Package(context Context, forceOverwrite bool) error

type PlanController

type PlanController struct{}

func (PlanController) Compile

func (p PlanController) Compile(context Context)

func (PlanController) Diff

func (p PlanController) Diff(context Context) error

func (PlanController) Format

func (p PlanController) Format(context Context, outputLocation string) error

func (PlanController) Get

func (p PlanController) Get(context Context, field string) error

func (PlanController) Init

func (p PlanController) Init(context Context, build_id, output_file string, force, minify bool) error

func (PlanController) Minify

func (p PlanController) Minify(context Context, outputLocation string) error

type PromoteController

type PromoteController struct{}

func (PromoteController) Promote

func (PromoteController) Promote(context Context, state, toEnv, toDeployment, fromEnv, fromDeployment string, extraVars map[string]interface{}, extraProviders map[string]string, useProfileState, force bool) error

type PullController

type PullController struct{}

func (PullController) PullReleases

func (PullController) PullReleases(context Context, packages []string) error

type PushController

type PushController struct{}

func (PushController) Push

func (p PushController) Push(context Context, buildFatPackage bool) error

type ReleaseController

type ReleaseController struct{}

func (ReleaseController) Release

func (r ReleaseController) Release(context Context, buildFatPackage, skipBuild, skipTests, skipCache, skipPush, skipDestroyBuild, skipDeploy, skipSmoke, skipDestroyDeploy, skipDestroy, skipIfExists, forceOverwrite bool, extraVars map[string]interface{}, extraProviders map[string]string) error

type SmokeController

type SmokeController struct{}

func (SmokeController) FetchAndSmoke

func (s SmokeController) FetchAndSmoke(context Context, releaseId string) error

func (SmokeController) Smoke

func (SmokeController) Smoke(context Context) error

type StateController

type StateController struct{}

func (StateController) CreateState

func (p StateController) CreateState(context Context, stage string, extraVars map[string]interface{}, extraProviders map[string]string) error

func (StateController) ListDeployments

func (p StateController) ListDeployments(context Context) *ControllerResult

func (StateController) ShowDeployment

func (p StateController) ShowDeployment(context Context, dep string) error

func (StateController) ShowProviders

func (p StateController) ShowProviders(context Context) *ControllerResult

type TestController

type TestController struct{}

func (TestController) Test

func (TestController) Test(context Context) error

Jump to

Keyboard shortcuts

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