Documentation ¶
Index ¶
- func AddAdditionalEnvironment(requestEnv map[string]string, responseEnv map[string]string)
- type Exit
- type Handler
- func (h *Handler) AddDeployAccountCredentialsValue(request *common.PrepareTerraformRequest, team string, ...) error
- func (h *Handler) CheckAWSResources() bool
- func (h *Handler) CheckInputConfiguration(config map[string]interface{}, inputEnv map[string]string) bool
- func (h *Handler) ConfigureRelease(request *common.ConfigureReleaseRequest, ...) error
- func (h *Handler) PrepareTerraform(request *common.PrepareTerraformRequest, ...) error
- func (h *Handler) Setup(request *common.SetupRequest, response *common.SetupResponse) error
- func (h *Handler) UploadRelease(request *common.UploadReleaseRequest, response *common.UploadReleaseResponse, ...) error
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { ReleaseFolder string InputStream io.Reader OutputStream io.Writer ErrorStream io.Writer ReleaseLoader common.ReleaseLoader ReleaseSaver common.ReleaseSaver // contains filtered or unexported fields }
Handler handles config requests.
func (*Handler) AddDeployAccountCredentialsValue ¶
func (*Handler) CheckAWSResources ¶
CheckAWSResources checks that the Release Bucket, Tf State Bucket & Tf Locks Table are present
func (*Handler) CheckInputConfiguration ¶
func (h *Handler) CheckInputConfiguration(config map[string]interface{}, inputEnv map[string]string) bool
CheckInputConfiguration checks config from cdflow.yaml and the input environment
func (*Handler) ConfigureRelease ¶
func (h *Handler) ConfigureRelease(request *common.ConfigureReleaseRequest, response *common.ConfigureReleaseResponse) error
ConfigureRelease runs before the release to provide and check config.
func (*Handler) PrepareTerraform ¶
func (h *Handler) PrepareTerraform(request *common.PrepareTerraformRequest, response *common.PrepareTerraformResponse, releaseDir string) error
func (*Handler) Setup ¶
func (h *Handler) Setup(request *common.SetupRequest, response *common.SetupResponse) error
Setup handles a setup request in order to pipeline setup.
func (*Handler) UploadRelease ¶
func (h *Handler) UploadRelease(request *common.UploadReleaseRequest, response *common.UploadReleaseResponse, configureReleaseRequest *common.ConfigureReleaseRequest, releaseDir string) error
type Opts ¶
type Opts struct { S3Client s3iface.S3API DynamoDBClient dynamodbiface.DynamoDBAPI ECRClient ecriface.ECRAPI ReleaseDir string InputStream io.Reader OutputStream io.Writer ErrorStream io.Writer ReleaseSaver common.ReleaseSaver ReleaseLoader common.ReleaseLoader }
Opts are the options for creating a new handler.
Click to show internal directories.
Click to hide internal directories.