fluxinstall

package
v0.9.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPGetter added in v0.9.5

type HTTPGetter interface {
	Get(url string) (resp *http.Response, err error)
}

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func NewInstaller

func NewInstaller() *Installer

func (*Installer) Ensure

func (i *Installer) Ensure(ctx context.Context, sources ...src.Source) (string, error)

func (*Installer) Install

func (i *Installer) Install(ctx context.Context, sources ...src.Installable) (string, error)

func (*Installer) Remove

func (i *Installer) Remove(ctx context.Context) error

type Product

type Product struct {
	Version string
	// contains filtered or unexported fields
}

func NewProduct

func NewProduct(version string) *Product

func NewProductWithHTTPClient added in v0.9.5

func NewProductWithHTTPClient(version string, cli HTTPGetter) *Product

func (*Product) Find

func (p *Product) Find(ctx context.Context) (string, error)

func (*Product) Install

func (p *Product) Install(ctx context.Context) (string, error)

func (*Product) IsSourceImpl

func (p *Product) IsSourceImpl() isrc.InstallSrcSigil

func (*Product) Remove

func (p *Product) Remove(ctx context.Context) error

type RemoveFunc

type RemoveFunc func(ctx context.Context) error

Directories

Path Synopsis
internal
src

Jump to

Keyboard shortcuts

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