Documentation ¶
Index ¶
- func Pull(state *command.GlobalState) error
- type ConfigureReleaseConfigResponse
- type Container
- func (configContainer *Container) ConfigureRelease(version, component, commit string, config map[string]interface{}, ...) (*ConfigureReleaseConfigResponse, error)
- func (configContainer *Container) CopyFileToRelease(filename string, content []byte) error
- func (configContainer *Container) Done() error
- func (configContainer *Container) PrepareTerraform(version, component, commit, envName string, stateShouldExist *bool, ...) (*PrepareTerraformResponse, error)
- func (configContainer *Container) Setup(config map[string]interface{}, env map[string]string, component, commit string, ...) (*SetupConfigResponse, error)
- func (configContainer *Container) UploadRelease(terraformImage string) (*UploadReleaseResponse, error)
- func (configContainer *Container) WriteReleaseMetadata(releaseMetadata map[string]map[string]string) error
- type Monitoring
- type PrepareTerraformResponse
- type ReleaseRequirements
- type SetupConfigResponse
- type TerrafromBackendConfigParameter
- type UploadReleaseResponse
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 (*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.
type Monitoring ¶ added in v0.53.0
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
TerraformBackendConfigParameter
type UploadReleaseResponse ¶
UploadReleaseResponse contains the response to the upload release request.