Documentation
¶
Index ¶
- func ParseKV(kvStr string) map[string]string
- type Client
- func (c *Client) AppHomeDir() string
- func (c *Client) AppName() string
- func (c *Client) AppendEnvironmentTemplates(tpl *template.Template, templateList *list.List, partialName string, ...) error
- func (c *Client) AppendMutagenTemplates(tpl *template.Template, templateList *list.List, partialName string, ...) error
- func (c *Client) AppendTemplatesFromPaths(tpl *template.Template, templateList *list.List, paths []string) error
- func (c *Client) AppendTemplatesFromPathsStatic(tpl *template.Template, templateList *list.List, paths []string) error
- func (c *Client) ConvertTemplateToComposeConfig(t *template.Template, templateList *list.List) (compose.ConfigDetails, error)
- func (c *Client) Cwd() string
- func (c *Client) ExecuteTemplate(t *template.Template, buffer io.Writer) error
- func (c *Client) GenerateMutagenTemplateFile(path, envType string) error
- func (c *Client) RunCmdSvcBuildDockerComposeTemplate(t *template.Template, templateList *list.List) error
- func (c *Client) SvcGenerateTraefikConfig() error
- func (c *Client) SvcGenerateTraefikDynamicConfig(svcDomain string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AppHomeDir ¶
AppHomeDir returns the application's home directory.
func (*Client) AppendEnvironmentTemplates ¶
func (c *Client) AppendEnvironmentTemplates( tpl *template.Template, templateList *list.List, partialName string, envType string, ) error
AppendEnvironmentTemplates tries to look up all the templates dedicated for an environment type.
func (*Client) AppendMutagenTemplates ¶
func (c *Client) AppendMutagenTemplates( tpl *template.Template, templateList *list.List, partialName string, envType string, ) error
AppendMutagenTemplates is going to add mutagen configuration templates.
func (*Client) AppendTemplatesFromPaths ¶
func (c *Client) AppendTemplatesFromPaths(tpl *template.Template, templateList *list.List, paths []string) error
AppendTemplatesFromPaths appends templates to t from templateList list searching them in paths path list. If it cannot find templates it's not going to fail. If a template with the same name already exists, it's going to skip that template.
func (*Client) AppendTemplatesFromPathsStatic ¶
func (c *Client) AppendTemplatesFromPathsStatic(tpl *template.Template, templateList *list.List, paths []string) error
AppendTemplatesFromPathsStatic appends templates to t from templateList list searching them in paths path list. This function looks up templates built to the application's binary (static files). If it cannot find templates it's not going to fail. If a template with the same name already exists, it's going to skip that template.
func (*Client) ConvertTemplateToComposeConfig ¶
func (c *Client) ConvertTemplateToComposeConfig( t *template.Template, templateList *list.List, ) (compose.ConfigDetails, error)
ConvertTemplateToComposeConfig iterates through all the templates and converts them to docker compose configurations.
func (*Client) ExecuteTemplate ¶
ExecuteTemplate executes the templates, appending some specific template functions to the execution.
func (*Client) GenerateMutagenTemplateFile ¶
GenerateMutagenTemplateFile generates mutagen configuration from template if it doesn't exist.
func (*Client) RunCmdSvcBuildDockerComposeTemplate ¶
func (c *Client) RunCmdSvcBuildDockerComposeTemplate(t *template.Template, templateList *list.List) error
SvcBuildDockerComposeTemplate builds the templates which are used to invoke docker compose for the common services.
func (*Client) SvcGenerateTraefikConfig ¶
SvcGenerateTraefikConfig generates the default traefik configuration.
func (*Client) SvcGenerateTraefikDynamicConfig ¶
SvcGenerateTraefikDynamicConfig generates the dynamic traefik configuration.