snapcraft

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package snapcraft implements the Pipe interface providing Snapcraft bindings.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoDescription = errors.New("no description provided for snapcraft")

ErrNoDescription is shown when no description provided

View Source
var ErrNoSnapcraft = errors.New("snapcraft not present in $PATH")

ErrNoSnapcraft is shown when snapcraft cannot be found in $PATH

View Source
var ErrNoSummary = errors.New("no summary provided for snapcraft")

ErrNoSummary is shown when no summary provided

Functions

This section is empty.

Types

type AppMetadata

type AppMetadata struct {
	Command   string
	Plugs     []string `yaml:",omitempty"`
	Daemon    string   `yaml:",omitempty"`
	Completer string   `yaml:",omitempty"`
}

AppMetadata for the binaries that will be in the snap package

type Metadata

type Metadata struct {
	Name          string
	Version       string
	Summary       string
	Description   string
	Base          string `yaml:",omitempty"`
	License       string `yaml:",omitempty"`
	Grade         string `yaml:",omitempty"`
	Confinement   string `yaml:",omitempty"`
	Architectures []string
	Apps          map[string]AppMetadata
	Plugs         map[string]interface{} `yaml:",omitempty"`
}

Metadata to generate the snap package

type Pipe

type Pipe struct{}

Pipe for snapcraft packaging

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults

func (Pipe) Publish added in v0.91.0

func (Pipe) Publish(ctx *context.Context) error

Publish packages

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe

func (Pipe) String

func (Pipe) String() string

Jump to

Keyboard shortcuts

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