Documentation
¶
Index ¶
- func InstNameFromImageURL(locator, imageArch string) string
- func InstNameFromURL(urlStr string) (string, error)
- func InstNameFromYAMLPath(yamlPath string) (string, error)
- func SeemsFileURL(arg string) bool
- func SeemsHTTPURL(arg string) bool
- func SeemsTemplateURL(arg string) (isTemplate bool, templateName string)
- func TransformCustomURL(ctx context.Context, locator string) (string, error)
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstNameFromImageURL ¶
func InstNameFromURL ¶
func InstNameFromYAMLPath ¶
func SeemsFileURL ¶
SeemsFileURL returns true if the arg is a URL using the file scheme.
func SeemsHTTPURL ¶
SeemsHTTPURL returns true if the arg is a URL using the http or https scheme.
func SeemsTemplateURL ¶
SeemsTemplateURL returns true if the arg is a URL using the template scheme. When it returns true, it also returns the template name.
Types ¶
type Template ¶
type Template struct {
Locator string // template locator (absolute path or URL)
Bytes []byte // file contents
// The following fields are only used when the template represents a YAML config file.
Name string // instance name, may be inferred from locator
Config *limatype.LimaYAML
// contains filtered or unexported fields
}
func (*Template) ClearOnError ¶
func (*Template) Embed ¶
Embed will recursively resolve all "base" dependencies and update the template with the merged result. It also inlines all external provisioning and probe scripts.
Click to show internal directories.
Click to hide internal directories.