Documentation
¶
Index ¶
- Constants
- Variables
- func GetDefaultServiceTemplateURL(context contextpkg.Context, csarUrl exturl.URL, format string) (exturl.URL, exturl.URL, error)
- func GetRootPath(context contextpkg.Context, csarUrl exturl.URL, format string) (string, error)
- func GetRootPaths(context contextpkg.Context, csarUrl exturl.URL, format string) ([]string, error)
- func GetServiceTemplateURL(context contextpkg.Context, csarUrl exturl.URL, format string, ...) (exturl.URL, exturl.URL, error)
- func IsValidFormat(format string) bool
- func JoinStringList(values []string) string
- func NewURL(csarUrl exturl.URL, format string, path string) (exturl.URL, exturl.URL, error)
- func ParseStringList(value string) ([]string, error)
- type Meta
- func NewMeta() *Meta
- func NewMetaFor(context contextpkg.Context, csarUrl exturl.URL, format string) (*Meta, error)
- func ReadMeta(reader io.Reader) (*Meta, error)
- func ReadMetaFromPath(path string) (*Meta, error)
- func ReadMetaFromURL(context contextpkg.Context, csarUrl exturl.URL, format string) (*Meta, error)
- type Version
Constants ¶
View Source
const TOSCA_META_PATH = "TOSCA-Metadata/TOSCA.meta"
Variables ¶
View Source
var CsarVersions = []Version{{1, 1}}
View Source
var MetaVersions = []Version{{1, 0}, {1, 1}}
Version 1.1 adds "Other-Definitions"
Functions ¶
func GetDefaultServiceTemplateURL ¶ added in v0.21.0
func GetRootPath ¶ added in v0.21.0
func GetRootPaths ¶ added in v0.21.0
func GetServiceTemplateURL ¶ added in v0.21.0
func IsValidFormat ¶ added in v0.21.0
func JoinStringList ¶ added in v0.21.0
func ParseStringList ¶ added in v0.21.0
Types ¶
type Meta ¶
type Meta struct { Version *Version `yaml:"version" json:"version"` CsarVersion *Version `yaml:"csarVersion" json:"csarVersion"` CreatedBy string `yaml:"createdBy" json:"createdBy"` EntryDefinitions string `yaml:"entryDefinitions" json:"entryDefinitions"` OtherDefinitions []string `yaml:"otherDefinitions" json:"otherDefinitions"` }
func NewMetaFor ¶ added in v0.21.0
func ReadMetaFromPath ¶ added in v0.21.0
func ReadMetaFromURL ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.