Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Controllers ¶
Controllers returns a list of controllers for the given environment
func InitGithub ¶
func InitGithub(config *GithubConfig)
InitGithub initializes the github templates service with the given config
Types ¶
type GithubConfig ¶
type GithubConfig struct {
Token string
Owner string
Repo string
EnvContentsPaths map[string]string
}
GithubConfig is the configuration for the github client
type Service ¶
type Service interface {
Controllers(env string) ([]string, error)
Controller(env, name string) (Template, error)
Pods(env string) ([]string, error)
Pod(env, name string) (Template, error)
Variables(env string) (map[string]string, error)
}
Service is a template service that returns controller and pod templates for given environments
type Template ¶
type Template string
Template is a yaml string template of a controller of a pod
func Controller ¶
Controller returns a list of controllers for the given environment
Click to show internal directories.
Click to hide internal directories.