storage

package
v0.0.0-...-8a8b58e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 30

Documentation

Index

Constants

View Source
const (
	StateMode  = 0740
	ScriptMode = 0750
)
View Source
const (
	STATE_SCHEMA = 1
	STATE_FILE   = "kl-state.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Azure

type Azure struct {
	Region         string `json:"region,omitempty"`
	Environment    string `json:"environment,omitempty"`
	SubscriptionID string `json:"-"`
	TenantID       string `json:"-"`
	ClientID       string `json:"-"`
	ClientSecret   string `json:"-"`
}

type State

type State struct {
	Version        int    `json:"version"`
	KLVersion      string `json:"klVersion"`
	IAAS           string `json:"iaas"`
	ID             string `json:"id"`
	EnvID          string `json:"envID"`
	Azure          Azure  `json:"azure,omitempty"`
	TFState        string `json:"tfState"`
	LatestTFOutput string `json:"latestTFOutput"`
}

type StateBootstrap

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

func NewStateBootstrap

func NewStateBootstrap(bootstrapLogger bootstrapLogger, klVersion string) StateBootstrap

func (StateBootstrap) GetState

func (b StateBootstrap) GetState(dir string) (State, error)

type Store

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

func NewStore

func NewStore(dir string, fs fs) Store

func (Store) GetAdminSSHPrivateKeyPath

func (s Store) GetAdminSSHPrivateKeyPath() (string, error)

func (Store) GetAnsibleDir

func (s Store) GetAnsibleDir() (string, error)

func (Store) GetAnsibleInventoriesDir

func (s Store) GetAnsibleInventoriesDir() (string, error)

func (Store) GetAnsibleMainFile

func (s Store) GetAnsibleMainFile() (string, error)

func (Store) GetAnsibleVarsDir

func (s Store) GetAnsibleVarsDir() (string, error)

TODO think about merge the vars dir with the global vars dir.

func (Store) GetArtifactsDir

func (s Store) GetArtifactsDir() (string, error)

GetArtifactsDir get artifacts folder

func (Store) GetArtifactsPatchDir

func (s Store) GetArtifactsPatchDir() (string, error)

GetArtifactsPatchDir get the patches folder

func (Store) GetDeploymentScriptFile

func (s Store) GetDeploymentScriptFile() (string, error)

func (Store) GetDeploymentsDir

func (s Store) GetDeploymentsDir() (string, error)

func (Store) GetInfraDir

func (s Store) GetInfraDir() (string, error)

GetInfraDir get the infrastructure folder.

func (Store) GetMainArtifactFilePath

func (s Store) GetMainArtifactFilePath() (string, error)

GetMainArtifactFilePath get artifacts main file path

func (Store) GetMainArtifactVarsFilePath

func (s Store) GetMainArtifactVarsFilePath() (string, error)

GetMainArtifactVarsFilePath get the variables file path

func (Store) GetMainArtifactVarsStoreFilePath

func (s Store) GetMainArtifactVarsStoreFilePath() (string, error)

GetMainArtifactVarsStoreFilePath get the vars store, to store the vars generated.

func (Store) GetStateDir

func (s Store) GetStateDir() string

func (Store) GetTerraformDir

func (s Store) GetTerraformDir() (string, error)

GetTerraformDir get the terraform folder, this should be the sub folder of infra.

func (Store) GetVarsDir

func (s Store) GetVarsDir() (string, error)

func (Store) Set

func (s Store) Set(state State) error

Jump to

Keyboard shortcuts

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