manifest

package
v0.0.0-...-9317598 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2015 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisabledPostfix = ".disabled"
	FilePerm        = 0640
	DirectoryPerm   = 0750
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {

	// name of custom content
	Name string

	// Is this a directory?
	IsDir bool

	// Can this file be disabled?
	CanDisable bool

	// array of other files this depends on
	Depends []string

	// array of conflicting custom content if any
	Conflicts []string

	// relative to the base path
	Path string

	// File hash sum
	CheckSum string
}

type Manifest

type Manifest struct {

	// Base URL
	BaseURL string `json:"-"`

	// Base file path
	BasePath string `json:"-"`

	// Encoded public key
	PemBytes []byte `json:"-"`

	// array holding defentions of files
	Files []File
}

func GetManifest

func GetManifest(filename, path, url string) (m *Manifest, err error)

func (*Manifest) Apply

func (m *Manifest) Apply(name string) (err error)

func (*Manifest) Disable

func (m *Manifest) Disable(name string) (err error)

func (*Manifest) Enable

func (m *Manifest) Enable(name string) (err error)

Jump to

Keyboard shortcuts

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