config

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pull added in v0.23.0

func Pull(state *command.GlobalState) error

Pull pulls the config image.

Types

type ConfigureReleaseConfigResponse

type ConfigureReleaseConfigResponse struct {
	Env                map[string]map[string]string
	AdditionalMetadata map[string]string
	Monitoring         Monitoring
	Success            bool
}

ConfigureReleaseConfigResponse contains the response to the configure release request.

type Container

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

Container represents a config container.

func NewContainer

func NewContainer(state *command.GlobalState, image, releaseVolume string) (*Container, error)

NewContainer creates and returns a new config container.

func (*Container) ConfigureRelease

func (configContainer *Container) ConfigureRelease(
	version, component, commit string,
	config map[string]interface{},
	env map[string]string,
	releaseRequirements map[string]*ReleaseRequirements,
) (*ConfigureReleaseConfigResponse, error)

ConfigureRelease requests the container configures the release and returns the response.

func (*Container) CopyFileToRelease added in v0.49.0

func (configContainer *Container) CopyFileToRelease(filename string, content []byte) error

func (*Container) Done added in v0.17.0

func (configContainer *Container) Done() error

Done stops and removes the config container.

func (*Container) PrepareTerraform

func (configContainer *Container) PrepareTerraform(
	version, component, commit, envName string,
	stateShouldExist *bool,
	config map[string]interface{},
	env map[string]string,
) (*PrepareTerraformResponse, error)

PrepareTerraform requests that the config container prepares for running terraform and returns the response.

func (*Container) Setup added in v0.23.0

func (configContainer *Container) Setup(
	config map[string]interface{},
	env map[string]string,
	component, commit string,
	releaseRequirements map[string]*ReleaseRequirements,
) (*SetupConfigResponse, error)

Setup requests the container does setup.

func (*Container) UploadRelease

func (configContainer *Container) UploadRelease(terraformImage string) (*UploadReleaseResponse, error)

UploadRelease requests that the config container uploads the release and returns the response.

func (*Container) WriteReleaseMetadata added in v0.8.0

func (configContainer *Container) WriteReleaseMetadata(releaseMetadata map[string]map[string]string) error

WriteReleaseMetadata copies the release metadata file into the release volume via the config container.

type Monitoring added in v0.53.0

type Monitoring struct {
	APIKey string
	Data   map[string]string
}

type PrepareTerraformResponse

type PrepareTerraformResponse struct {
	TerraformImage                   string
	Env                              map[string]string
	TerraformBackendType             string
	TerraformBackendConfig           map[string]string
	TerraformBackendConfigParameters map[string]*TerrafromBackendConfigParameter
	Monitoring                       Monitoring
	Success                          bool
}

PrepareTerraformResponse contains the response to the prepare terraform request.

func SetupTerraform added in v0.17.3

func SetupTerraform(state *command.GlobalState, stateShouldExist *bool, envName, version string, env map[string]string) (_ *PrepareTerraformResponse, returnedBuildVolume string, terraformImage string, returnedError error)

SetupTerraform creates the config container and prepares terraform in one.

type ReleaseRequirements added in v0.30.0

type ReleaseRequirements struct {
	Needs []string
}

ReleaseRequirements contains a list of needs.

type SetupConfigResponse added in v0.53.0

type SetupConfigResponse struct {
	Monitoring Monitoring
	Success    bool
}

type TerrafromBackendConfigParameter added in v0.36.0

type TerrafromBackendConfigParameter struct {
	Value        string
	DisplayValue string
}

TerraformBackendConfigParameter

type UploadReleaseResponse

type UploadReleaseResponse struct {
	Message string
	Success bool
}

UploadReleaseResponse contains the response to the upload release request.

Jump to

Keyboard shortcuts

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