snapcraft

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package snapcraft implements the Pipe interface providing Snapcraft bindings.

nolint:tagliatelle

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

	Adapter          string                 `yaml:",omitempty"`
	After            []string               `yaml:",omitempty"`
	Aliases          []string               `yaml:",omitempty"`
	Autostart        string                 `yaml:",omitempty"`
	Before           []string               `yaml:",omitempty"`
	BusName          string                 `yaml:"bus-name,omitempty"`
	CommandChain     []string               `yaml:"command-chain,omitempty"`
	CommonID         string                 `yaml:"common-id,omitempty"`
	Completer        string                 `yaml:",omitempty"`
	Daemon           string                 `yaml:",omitempty"`
	Desktop          string                 `yaml:",omitempty"`
	Environment      map[string]interface{} `yaml:",omitempty"`
	Extensions       []string               `yaml:",omitempty"`
	InstallMode      string                 `yaml:"install-mode,omitempty"`
	Passthrough      map[string]interface{} `yaml:",omitempty"`
	Plugs            []string               `yaml:",omitempty"`
	PostStopCommand  string                 `yaml:"post-stop-command,omitempty"`
	RefreshMode      string                 `yaml:"refresh-mode,omitempty"`
	ReloadCommand    string                 `yaml:"reload-command,omitempty"`
	RestartCondition string                 `yaml:"restart-condition,omitempty"`
	RestartDelay     string                 `yaml:"restart-delay,omitempty"`
	Slots            []string               `yaml:",omitempty"`
	Sockets          map[string]interface{} `yaml:",omitempty"`
	StartTimeout     string                 `yaml:"start-timeout,omitempty"`
	StopCommand      string                 `yaml:"stop-command,omitempty"`
	StopMode         string                 `yaml:"stop-mode,omitempty"`
	StopTimeout      string                 `yaml:"stop-timeout,omitempty"`
	Timer            string                 `yaml:",omitempty"`
	WatchdogTimeout  string                 `yaml:"watchdog-timeout,omitempty"`
}

AppMetadata for the binaries that will be in the snap package. See: https://snapcraft.io/docs/snapcraft-app-and-service-metadata

type LayoutMetadata added in v0.160.0

type LayoutMetadata struct {
	Symlink  string `yaml:",omitempty"`
	Bind     string `yaml:",omitempty"`
	BindFile string `yaml:"bind-file,omitempty"`
	Type     string `yaml:",omitempty"`
}

type Metadata

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

Metadata to generate the snap package.

type Pipe

type Pipe struct{}

Pipe for snapcraft packaging.

func (Pipe) ContinueOnError added in v1.19.0

func (Pipe) ContinueOnError() bool

func (Pipe) Default

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

Default sets the pipe defaults.

func (Pipe) Dependencies added in v1.16.0

func (Pipe) Dependencies(_ *context.Context) []string

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) Skip added in v0.180.0

func (Pipe) Skip(ctx *context.Context) bool

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