pkg

package
v0.0.0-...-8e32e10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 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 FileOrDir

type FileOrDir struct {
	File      string `json:"file,omitempty" yaml:"file,omitempty"`
	Directory string `json:"dir,omitempty" yaml:"dir,omitempty"`
}

type Info

type Info struct {
	Name         string    `json:"name" yaml:"name"`
	Version      string    `json:"version" yaml:"version"`
	Description  string    `json:"description" yaml:"description"`
	Author       string    `json:"author" yaml:"author"`
	Packager     string    `json:"packager,omitempty" yaml:"packager,omitempty"`
	License      string    `json:"license" yaml:"license"`
	Homepage     string    `json:"homepage" yaml:"homepage"`
	Repo         string    `json:"repo" yaml:"repo"`
	Provides     []string  `json:"provides" yaml:"provides"`
	Dependencies []InfoDep `json:"dependencies" yaml:"dependencies"`
	Recommends   []InfoDep `json:"recommends" yaml:"recommends"`
}

type InfoDep

type InfoDep struct {
	Package string `json:"package" yaml:"package"`
}

type Pkg

type Pkg struct {
	Info  Info        `json:"info" yaml:"info"`
	Files []FileOrDir `json:"files" yaml:"files"`
	// contains filtered or unexported fields
}

func NewPkg

func NewPkg(path string) (*Pkg, error)

func (*Pkg) MakePackage

func (p *Pkg) MakePackage() (string, error)

func (*Pkg) Namespace

func (p *Pkg) Namespace() string

func (*Pkg) Package

func (p *Pkg) Package() string

func (*Pkg) Parse

func (p *Pkg) Parse() error

func (*Pkg) Verify

func (p *Pkg) Verify() error

Verify verifies the package

Jump to

Keyboard shortcuts

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