Documentation ¶
Index ¶
- type Action
- type Actions
- type Dir
- type File
- type Manifest
- func (m *Manifest) Actions() Actions
- func (m *Manifest) Add(action Action)
- func (m *Manifest) Exists(action Action) bool
- func (m *Manifest) Index()
- func (m *Manifest) Load(manifest string) error
- func (m *Manifest) Section(filters ...string) Actions
- func (m *Manifest) ToJson() string
- func (m *Manifest) ToSigningJson() string
- func (m *Manifest) Validate() error
- type Requirement
- type Service
- type Signature
- type SymLink
- type Tag
- type Template
- type Zpkg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type File ¶
type File struct { Path string `json:"path" hcl:"path,label"` Owner string `json:"owner" hcl:"owner,optional"` Group string `json:"group" hcl:"group,optional"` Mode string `json:"mode" hcl:"mode,optional"` Digest string `json:"digest"` Offset int `json:"offset"` Csize int `json:"csize"` Size int `json:"size"` }
func NewSignature ¶
func NewSignature() *File
type Manifest ¶
type Manifest struct { Zpkg *Zpkg `hcl:"Zpkg,block" json:"zpkg"` Tags []*Tag `hcl:"Tag,block" json:"tag,omitempty"` Requirements []*Requirement `hcl:"Requirement,block" json:"requirement,omitempty"` Dirs []*Dir `hcl:"Dir,block" json:"dir,omitempty"` Files []*File `hcl:"File,block" json:"file,omitempty"` SymLinks []*SymLink `hcl:"SymLink,block" json:"symlink,omitempty"` Templates []*Template `hcl:"Template,block" json:"template,omitempty"` Services []*Service `hcl:"Service,block" json:"service,omitempty"` Signatures []*Signature `hcl:"Signature,block" json:"signature,omitempty"` // contains filtered or unexported fields }
func NewManifest ¶
func NewManifest() *Manifest
func (*Manifest) ToSigningJson ¶
type Requirement ¶
type Requirement struct { Name string `json:"name" hcl:"name,label"` Method string `json:"method" hcl:"method"` Operation string `json:"operation,omitempty" hcl:"operation"` Version string `json:"version,omitempty" hcl:"version,optional"` }
func NewRequirement ¶
func NewRequirement() *Requirement
func (*Requirement) Columns ¶
func (r *Requirement) Columns() string
func (*Requirement) Condition ¶
func (r *Requirement) Condition() *bool
func (*Requirement) Id ¶
func (r *Requirement) Id() string
func (*Requirement) IsValid ¶
func (r *Requirement) IsValid() bool
func (*Requirement) Key ¶
func (r *Requirement) Key() string
func (*Requirement) MayFail ¶
func (r *Requirement) MayFail() bool
func (*Requirement) Type ¶
func (r *Requirement) Type() string
type Service ¶
type Service struct { Name string `json:"name" hcl:"name,label"` Timer bool `json:"timer" hcl:"timer,optional"` }
func NewService ¶
func NewService() *Service
type Signature ¶
type SymLink ¶
type SymLink struct { Path string `json:"path" hcl:"path,label"` Owner string `json:"owner" hcl:"owner,optional"` Group string `json:"group" hcl:"group,optional"` Target string `json:"target" hcl:"target"` }
func NewSymLink ¶
func NewSymLink() *SymLink
type Tag ¶
type Template ¶
type Template struct { Name string `json:"name" hcl:"path,label"` Source string `json:"source" hcl:"source"` Output string `json:"output" hcl:"output"` Owner string `json:"owner" hcl:"owner,optional"` Group string `json:"group" hcl:"group,optional"` Mode string `json:"mode" hcl:"mode,optional"` }
func NewTemplate ¶
func NewTemplate() *Template
type Zpkg ¶
type Zpkg struct { Name string `json:"name" hcl:"name,label"` Version string `json:"version" hcl:"version"` Publisher string `json:"publisher" hcl:"publisher"` Arch string `json:"arch" hcl:"arch"` Os string `json:"os" hcl:"os"` Summary string `json:"summary" hcl:"summary"` Description string `json:"description" hcl:"description"` }
Click to show internal directories.
Click to hide internal directories.