Documentation
¶
Index ¶
- Variables
- func Init(outDir string, localModulePath string) *projectconfig.ZeroProjectConfig
- func NoCondition(map[string]string) bool
- func NoValidation(string) error
- func PromptModuleParams(moduleConfig moduleconfig.ModuleConfig, parameters map[string]string, ...) (map[string]string, error)
- func SpecificValueValidation(values ...string) func(string) error
- func ValidateAKID(input string) error
- func ValidateProjectName(input string) error
- func ValidateSAK(input string) error
- type CredentialPrompts
- type CustomConditionSignature
- type PromptHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableVendorOrders = []string{"aws", "github", "circleci"}
Constant to maintain prompt orders so users can have the same flow, modules get downloaded asynchronously therefore its easier to just hardcode an order
Functions ¶
func Init ¶
func Init(outDir string, localModulePath string) *projectconfig.ZeroProjectConfig
Create cloud provider context
func NoCondition ¶
func NoValidation ¶
func PromptModuleParams ¶
func PromptModuleParams(moduleConfig moduleconfig.ModuleConfig, parameters map[string]string, projectCredentials globalconfig.ProjectCredential) (map[string]string, error)
PromptParams renders series of prompt UI based on the config
func SpecificValueValidation ¶
func ValidateAKID ¶
func ValidateProjectName ¶
ValidateProjectName validates Project Name field user input.
func ValidateSAK ¶
Types ¶
type CredentialPrompts ¶
type CredentialPrompts struct { Vendor string Prompts []PromptHandler }
type CustomConditionSignature ¶
func CustomCondition ¶
func CustomCondition(fn CustomConditionSignature) CustomConditionSignature
func KeyMatchCondition ¶
func KeyMatchCondition(key string, value string) CustomConditionSignature
type PromptHandler ¶
type PromptHandler struct { moduleconfig.Parameter Condition CustomConditionSignature Validate func(string) error }
Click to show internal directories.
Click to hide internal directories.