Documentation
¶
Index ¶
- func ContainsActions(target string, sas []schemas.ScheduledAction) bool
- func ExtractAppliedConfig(config schemas.Config) [][]string
- func HasProhibited(tags []string) bool
- func ParseMetricConfig(disabledMetrics bool, filename string) (schemas.MetricConfig, error)
- func ParsingManifestFile(manifest string) (schemas.AWSConfig, []schemas.Stack, []*schemas.APITestTemplate)
- func ReadAWSConfig() (*ini.File, error)
- func ReadAWSCredentials() (*ini.File, error)
- func RefineConfig(config schemas.Config) (schemas.Config, error)
- func ValidCronExpression(expression string) (bool, error)
- type Builder
- func (b Builder) CheckValidation() error
- func (b Builder) PreConfigValidation() error
- func (b Builder) PrintSummary(out io.Writer, targetStack, targetRegion string) error
- func (b Builder) SetManifestConfig() Builder
- func (b Builder) SetManifestConfigWithS3(fileBytes []byte) Builder
- func (b Builder) SetStacks(stacks []schemas.Stack) Builder
- type LocalProvider
- type S3Provider
- type UserdataProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsActions ¶
func ContainsActions(target string, sas []schemas.ScheduledAction) bool
ContainsActions checks if scheduled action is specified
func ExtractAppliedConfig ¶
ExtractAppliedConfig extracts configurations that are used in the deployment
func HasProhibited ¶
HasProhibited checks if there is any prohibited tags
func ParseMetricConfig ¶
func ParseMetricConfig(disabledMetrics bool, filename string) (schemas.MetricConfig, error)
func ParsingManifestFile ¶
func ParsingManifestFile(manifest string) (schemas.AWSConfig, []schemas.Stack, []*schemas.APITestTemplate)
Parsing Manifest File
func ReadAWSConfig ¶
ReadAWSConfig parse an aws configuration
func ReadAWSCredentials ¶
ReadAWSCredentials parse an aws credentials
func RefineConfig ¶
RefineConfig refines the values for clear setting
func ValidCronExpression ¶
ValidCronExpression checks if the cron expression is valid or not It should be [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]
Types ¶
type Builder ¶
type Builder struct {
// Config from command
Config schemas.Config
// AWS related Configuration
AwsConfig schemas.AWSConfig
// Configuration for metrics
MetricConfig schemas.MetricConfig
// Stack configuration
Stacks []schemas.Stack
// API Test configuration
APITestTemplates []*schemas.APITestTemplate
}
func NewBuilder ¶
NewBuilder create new builder
func (Builder) CheckValidation ¶
CheckValidation validates all configurations
func (Builder) PreConfigValidation ¶
PreConfigValidation validates manifest existence
func (Builder) PrintSummary ¶
MakeSummary prints all configurations in summary
func (Builder) SetManifestConfig ¶
SetManifestConfig set manifest configuration from local file
func (Builder) SetManifestConfigWithS3 ¶
SetManifestConfigWithS3 set manifest configuration with s3
type LocalProvider ¶
type LocalProvider struct {
Path string
}
func (LocalProvider) Provide ¶
func (l LocalProvider) Provide() (string, error)
Provide provides userdata from local file
type S3Provider ¶
type S3Provider struct {
Path string
}
func (S3Provider) Provide ¶
func (s S3Provider) Provide() (string, error)
Provide provides userdata from s3 Need to develop
type UserdataProvider ¶
func SetUserdataProvider ¶
func SetUserdataProvider(userdata schemas.Userdata, defaultUserdata schemas.Userdata) UserdataProvider
Set Userdata provider