snapcraft

package
v0.28.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package snapcraft implements the Pipe interface providing Snapcraft bindings.

Index

Constants

This section is empty.

Variables

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

ErrNoSnapcraft is shown when snapcraft cannot be found in $PATH

Functions

This section is empty.

Types

type AppMetadata added in v0.28.3

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

AppMetadata for the binaries that will be in the snap package

type Pipe

type Pipe struct{}

Pipe for snapcraft packaging

func (Pipe) Description

func (Pipe) Description() string

Description of the pipe

func (Pipe) Run

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

Run the pipe

type SnapcraftMetadata

type SnapcraftMetadata struct {
	Name          string
	Version       string
	Summary       string
	Description   string
	Grade         string `yaml:",omitempty"`
	Confinement   string `yaml:",omitempty"`
	Architectures []string
	Apps          map[string]AppMetadata
}

SnapcraftMetadata to generate the snap package

Jump to

Keyboard shortcuts

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