pkg

package
v0.0.0-...-5389757 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Addons []amo.Addon `json:"addons"`
	GUID   string
}

func NewFromFile

func NewFromFile(filename string) (*Package, error)

func (*Package) Add

func (p *Package) Add(addon amo.Addon)

func (*Package) Build

func (p *Package) Build(filename string)

func (*Package) Contains

func (p *Package) Contains(addon amo.Addon) bool

func (*Package) FetchAll

func (p *Package) FetchAll()

func (*Package) IndexOf

func (p *Package) IndexOf(addon amo.Addon) int

func (*Package) Marshal

func (p *Package) Marshal() ([]byte, error)

func (*Package) ReadFile

func (p *Package) ReadFile(filename string) error

func (*Package) Remove

func (p *Package) Remove(addon amo.Addon)

func (*Package) Unmarshal

func (p *Package) Unmarshal(data []byte) error

func (*Package) WriteFile

func (p *Package) WriteFile(filename string) error

Jump to

Keyboard shortcuts

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