csar

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 GetRootURL

func GetRootURL(csarUrl urlpkg.URL) (urlpkg.URL, error)

Types

type Meta

type Meta struct {
	Version          *Version
	CsarVersion      *Version
	CreatedBy        string
	EntryDefinitions string
	OtherDefinitions string
}

func ReadMeta

func ReadMeta(reader io.Reader) (*Meta, error)

type Version

type Version struct {
	Major uint8
	Minor uint8
}

func ParseVersion

func ParseVersion(value string) (*Version, error)

func (*Version) String

func (self *Version) String() string

fmt.Stringer interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL