Documentation ¶
Overview ¶
Package provider implements the logic of generating cloud platform specific templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // GetType returns the provider type of the implementing provider GetType() ProviderType // MarshalFiles render the template files required by the provider. It // returns a map of file name and data, each entry denoting a template file. // Returns an error if the rendering goes wrong. MarshalFiles() (map[string][]byte, error) }
Provider interface should be implemented by a provider. These methods are called by the spec package
type ProviderType ¶
type ProviderType int
ProviderType indicates a particular managed kubernetes provider.
const ( // NOP indicates that it is not a valid provider. NOP ProviderType = iota // GKE indicates Google Kubernetes Engine. The template generated will // be Google Deployment Manager Template. GKE // AKS denotes Azure Kubernetes Service. Template generated will be // Azure Resource Manger Templates. AKS // EKS denotes Amazon Elastic Kubernetes Service. Template generated will // be AWS CloudFormation Templates. EKS )
func Parse ¶
func Parse(p string) ProviderType
Parse takes a string p and return the corresponding provider type
Click to show internal directories.
Click to hide internal directories.