dependency

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependenciesIndex added in v1.1.0

type DependenciesIndex struct {
	Meta       config.Metadata          `json:"-"`
	APIVersion string                   `json:"apiVersion,omitempty"`
	Kind       string                   `json:"kind,omitempty"`
	Entries    []DependenciesIndexEntry `json:"entries"`
}

type DependenciesIndexEntry added in v1.1.0

type DependenciesIndexEntry struct {
	Alias    string `json:"alias"`
	Registry string `json:"registry"`
	Name     string `json:"name"`
	Version  string `json:"version"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Checksum string `json:"checksum"`
	Path     string `json:"path"`
}

type Dependency added in v1.1.0

type Dependency struct {
	Name     string `yaml:"name,omitempty"`
	Registry string `yaml:"registry,omitempty"`
	Version  string `yaml:"version"`
	Alias    string `yaml:"-"`
}

Dependency describes project's dependency - command or plugin.

func (*Dependency) SetDefaults added in v1.1.0

func (dep *Dependency) SetDefaults(defaultRegistry string)

SetDefaults puts default values for registry for alias and registry (if missing).

type IndexHandler added in v1.1.0

type IndexHandler interface {
	LoadDependencyIndex(filePath string) error
	SaveDependencyIndex() error
	GetEntries() []DependenciesIndexEntry
	SetEntries(entries []DependenciesIndexEntry)
}

type LocalIndexHandler added in v1.1.0

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

func (*LocalIndexHandler) GetEntries added in v1.1.0

func (di *LocalIndexHandler) GetEntries() []DependenciesIndexEntry

func (*LocalIndexHandler) LoadDependencyIndex added in v1.1.0

func (di *LocalIndexHandler) LoadDependencyIndex(filePath string) error

LoadDependencyIndex reads a dependencies index file.

func (*LocalIndexHandler) SaveDependencyIndex added in v1.1.0

func (di *LocalIndexHandler) SaveDependencyIndex() error

SaveDependencyIndex saves a dependencies index file.

func (*LocalIndexHandler) SetEntries added in v1.1.0

func (di *LocalIndexHandler) SetEntries(entries []DependenciesIndexEntry)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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