Documentation ¶
Index ¶
- func CreateConfigMap(config *config.Config, resource interface{}, svcName string, ...) string
- func CreateExternalNameService(config *config.Config, resource interface{}, svcName string, ...) string
- func CreateParam(key string, value string) *cloudformation.Parameter
- func CreateTag(key string, value string) *cloudformation.Tag
- func GetCloudFormationTemplate(config *config.Config, rType string, name string, namespace string) string
- func GetCloudFormationTemplateByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetDynamoDBByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetECRRepositoryByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetS3BucketByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetSNSSubscriptionByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetSNSTopicByName(config *config.Config, name string, namespace string) (interface{}, error)
- func GetSQSQueueByName(config *config.Config, name string, namespace string) (interface{}, error)
- func IsStackComplete(status string, defaultRet bool) bool
- func KubernetesResourceName(name string) string
- func StackName(clusterName string, resourceType string, name string, namespace string) string
- func Stringify(attr interface{}) string
- func Templatize(tempStr string, data interface{}) (resp string, err error)
- type Data
- type Helpers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigMap ¶
func CreateConfigMap(config *config.Config, resource interface{}, svcName string, svcNamespace string, configMapTemplate map[string]string) string
CreateConfigMap will create a Kubernetes Servic Using ExternalName types
func CreateExternalNameService ¶
func CreateExternalNameService(config *config.Config, resource interface{}, svcName string, svcNamespace string, externalNameTemplate string, svcPort int32) string
CreateExternalNameService will create a Kubernetes Servic Using ExternalName types
func CreateParam ¶
func CreateParam(key string, value string) *cloudformation.Parameter
CreateParam returns a new prefilled cloudformation param
func CreateTag ¶
func CreateTag(key string, value string) *cloudformation.Tag
CreateTag returns a new prefilled cloudformation tag
func GetCloudFormationTemplate ¶
func GetCloudFormationTemplate(config *config.Config, rType string, name string, namespace string) string
GetCloudFormationTemplate will return the url to the CFT from the CFT resource
func GetCloudFormationTemplateByName ¶
func GetCloudFormationTemplateByName(config *config.Config, name string, namespace string) (interface{}, error)
GetCloudFormationTemplateByName will find the resource by name
func GetDynamoDBByName ¶
GetDynamoDBByName will find the resource by name
func GetECRRepositoryByName ¶
func GetECRRepositoryByName(config *config.Config, name string, namespace string) (interface{}, error)
GetECRRepositoryByName will find the resource by name
func GetS3BucketByName ¶
GetS3BucketByName will find the resource by name
func GetSNSSubscriptionByName ¶
func GetSNSSubscriptionByName(config *config.Config, name string, namespace string) (interface{}, error)
GetSNSSubscriptionByName will find the resource by name
func GetSNSTopicByName ¶
GetSNSTopicByName will find the resource by name
func GetSQSQueueByName ¶
GetSQSQueueByName will find the resource by name
func IsStackComplete ¶
IsStackComplete will determine if it's in a state to process
func KubernetesResourceName ¶
KubernetesResourceName returns the resource name for other components
func Stringify ¶
func Stringify(attr interface{}) string
Stringify will create a string based on the params
func Templatize ¶
Templatize returns the proper values based on the templating
Types ¶
type Helpers ¶
type Helpers struct { KubernetesResourceName func(string) string GetCloudFormationTemplateByName func(*config.Config, string, string) (interface{}, error) GetDynamoDBByName func(*config.Config, string, string) (interface{}, error) GetECRRepositoryByName func(*config.Config, string, string) (interface{}, error) GetS3BucketByName func(*config.Config, string, string) (interface{}, error) GetSNSSubscriptionByName func(*config.Config, string, string) (interface{}, error) GetSNSTopicByName func(*config.Config, string, string) (interface{}, error) GetSQSQueueByName func(*config.Config, string, string) (interface{}, error) }
Helpers defines all the Helper functions that are exposed to the templates