dependency

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinDependency

type BinDependency struct {
	Type   string
	Source any
	OS     string
	Arch   string
}

type LockFile

type LockFile struct {
	sync.RWMutex

	Bins map[string]LockFileBinEntry
}

type LockFileBinEntry

type LockFileBinEntry struct {
	Bins map[string]string
}

type Manager

type Manager struct {
	FetchRemote bool
	Upgrade     bool
	LockFile    *LockFile
	Dir         string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(params ManagerParams) (*Manager, error)

func (*Manager) Download

func (m *Manager) Download(ctx context.Context, dir string, s SourceGitHubRelease, t string) (map[string]string, error)

func (*Manager) DownloadBinDependency

func (m *Manager) DownloadBinDependency(ctx context.Context, d BinDependency) error

func (*Manager) FetchBinDependency

func (m *Manager) FetchBinDependency(ctx context.Context, d BinDependency) (string, error)

func (*Manager) FlushLockFile

func (m *Manager) FlushLockFile() error

func (*Manager) InstallBinDependency

func (m *Manager) InstallBinDependency(ctx context.Context, d BinDependency) error

func (*Manager) IsBinDependencyDownloaded

func (m *Manager) IsBinDependencyDownloaded(d BinDependency) (bool, error)

func (*Manager) IsBinDependencyInLockFile

func (m *Manager) IsBinDependencyInLockFile(d BinDependency) (bool, error)

func (*Manager) Lock

func (m *Manager) Lock(d BinDependency)

func (*Manager) Unlock

func (m *Manager) Unlock(d BinDependency)

type ManagerParams

type ManagerParams struct {
	LockFilePath string
	Upgrade      bool
	FetchRemote  bool
}

type SourceGitHubRelease

type SourceGitHubRelease struct {
	RepoOwner string
	RepoName  string
	Name      string
}

type SourceLocal

type SourceLocal struct {
	Path string
}

Jump to

Keyboard shortcuts

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