luet

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithArch

func WithArch(arch string) func(r *Luet) error

func WithAuth

func WithAuth(auth *dockTypes.AuthConfig) func(r *Luet) error

func WithConfig

func WithConfig(cfg *luetTypes.LuetConfig) func(r *Luet) error

func WithFs

func WithFs(fs v1.FS) func(r *Luet) error

func WithLogger

func WithLogger(log v1.Logger) func(r *Luet) error

func WithLuetTempDir

func WithLuetTempDir(tmpDir string) func(r *Luet) error

func WithPlugins

func WithPlugins(plugins ...string) func(r *Luet) error

Types

type Luet

type Luet struct {
	VerifyImageUnpack bool
	TmpDir            string
	// contains filtered or unexported fields
}

func NewLuet

func NewLuet(opts ...Options) *Luet

func (*Luet) GetPlugins

func (l *Luet) GetPlugins() []string

func (*Luet) InitPlugins

func (l *Luet) InitPlugins()

func (*Luet) SetArch

func (l *Luet) SetArch(arch string)

func (*Luet) SetPlugins

func (l *Luet) SetPlugins(plugins ...string)

func (*Luet) SetTempDir added in v0.1.1

func (l *Luet) SetTempDir(tmpdir string)

SetTempDir re-sets the temp dir for all the luet stuff

func (Luet) Unpack

func (l Luet) Unpack(target string, image string, local bool) (*v1.DockerImageMeta, error)

func (Luet) UnpackFromChannel

func (l Luet) UnpackFromChannel(target string, pkg string, repositories ...v1.Repository) (*v1.ChannelImageMeta, error)

UnpackFromChannel unpacks/installs a package from the release channel into the target dir by leveraging the luet install action to install to a local dir

type Options

type Options func(l *Luet) error

Jump to

Keyboard shortcuts

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