Help us shape the future of Go! Take the 2026 Go Developer Survey

apt

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apt

type Apt struct {
	TruncateSources    bool         `yaml:"truncatesources,omitempty"`
	CleanCache         bool         `yaml:"cleancache,omitempty"`
	Keys               []string     `yaml:"keys"`
	GpgAdvancedOptions []string     `yaml:"gpg_advanced_options"`
	Repos              []Repository `yaml:"repos"`
	Packages           []string     `yaml:"packages"`
	// contains filtered or unexported fields
}

func New

func New(command Command, aptFile, rootDir, cacheDir, installDir string, logger *libbuildpack.Logger) *Apt

func (*Apt) AddKeys added in v0.1.1

func (a *Apt) AddKeys() error

func (*Apt) AddRepos added in v0.1.1

func (a *Apt) AddRepos() error

func (*Apt) Clean added in v0.1.9

func (a *Apt) Clean() error

func (*Apt) DownloadAll added in v0.1.5

func (a *Apt) DownloadAll() error

func (*Apt) HasClean added in v0.1.9

func (a *Apt) HasClean() bool

func (*Apt) HasKeys added in v0.1.1

func (a *Apt) HasKeys() bool

func (*Apt) HasRepos added in v0.1.1

func (a *Apt) HasRepos() bool

func (*Apt) InstallAll added in v0.1.5

func (a *Apt) InstallAll() error

func (*Apt) Setup added in v0.1.1

func (a *Apt) Setup() error

func (*Apt) Update

func (a *Apt) Update() error

type Command

type Command interface {
	Output(string, string, ...string) (string, error)
	Execute(dir string, stdout io.Writer, stderr io.Writer, program string, args ...string) error
}

type Repository added in v0.1.3

type Repository struct {
	Name     string
	Priority string
}

func (*Repository) UnmarshalYAML added in v0.1.3

func (r *Repository) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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