Documentation ¶
Index ¶
- func ImportTemplate(src string) (*vcsurl.VCS, error)
- func InstallTemplate(name string) error
- func RemoveTemplate(name string) error
- func SearchRegistry(pattern string) ([]*git.RemoteInfo, error)
- func UpdateRegistry() error
- func UpgradeAllTemplates() error
- func UpgradeTemplates(names []string) error
- func WriteRegistry(r *TemplateRegistry) error
- type TemplateInfo
- type TemplateRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportTemplate ¶ added in v0.12.0
func InstallTemplate ¶
func RemoveTemplate ¶
func SearchRegistry ¶ added in v0.12.0
func SearchRegistry(pattern string) ([]*git.RemoteInfo, error)
func UpdateRegistry ¶ added in v0.12.0
func UpdateRegistry() error
UpdateRegistry updates the local template registry The registry is a git repository that contains a list of templates and their versions.
func UpgradeAllTemplates ¶ added in v0.12.0
func UpgradeAllTemplates() error
UpgradeAllTemplates upgrade all templates from remote git repo
func UpgradeTemplates ¶ added in v0.12.0
UpgradeTemplates upgrade templates from remote git repo
func WriteRegistry ¶ added in v0.12.0
func WriteRegistry(r *TemplateRegistry) error
Types ¶
type TemplateInfo ¶
type TemplateInfo struct { Name string Git string Commit string Path string InCache bool InRegistry bool }
func GetLocalTemplateInfo ¶ added in v0.12.0
func GetLocalTemplateInfo(name string) (TemplateInfo, error)
GetLocalTemplateInfo returns information about a template either from an installed of from a template registry
func ListTemplates ¶
func ListTemplates() ([]TemplateInfo, error)
type TemplateRegistry ¶ added in v0.12.0
type TemplateRegistry struct { Name string `json:"name"` Description string `json:"description"` Entries []*git.RemoteInfo `json:"entries"` }
func ReadRegistry ¶ added in v0.12.0
func ReadRegistry() (*TemplateRegistry, error)
ReadRegistry reads the registry file from path
Click to show internal directories.
Click to hide internal directories.