Documentation ¶
Index ¶
- Variables
- type Config
- type ConfigFile
- type ConfigFilePaths
- type CurrentConfig
- type Manager
- func (m *Manager) CurrentSetBy() string
- func (m *Manager) CurrentVersion() string
- func (m *Manager) Exec(ctx context.Context, program string, args []string) error
- func (m *Manager) ExecVersion(ctx context.Context, version string, program string, args []string) error
- func (m *Manager) FindBin(ctx context.Context, name string) ([]*Version, error)
- func (m *Manager) Get(ctx context.Context, version string) (*Version, error)
- func (m *Manager) List(ctx context.Context) ([]*Version, error)
- func (m *Manager) ListShims(ctx context.Context) ([]string, error)
- func (m *Manager) RehashAll(ctx context.Context) error
- func (m *Manager) RehashVersions(ctx context.Context, versions []string) error
- func (m *Manager) Use(ctx context.Context, version string) error
- type Mode
- type PathsConfig
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Err = errors.New("") ErrVersion = fmt.Errorf("%w", Err) ErrNoCurrentVersion = fmt.Errorf("%w", ErrVersion) ErrVersionNotFound = fmt.Errorf("%w", ErrVersion) ErrBinNotFound = fmt.Errorf("%w", ErrVersion) )
View Source
var ErrConfig = fmt.Errorf("%w", Err)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Mode Mode `yaml:"mode" json:"mode"` Current CurrentConfig `yaml:"current" json:"current"` Paths PathsConfig `yaml:"paths" json:"paths"` }
func (*Config) PopulateCurrent ¶
type ConfigFile ¶
type ConfigFile struct {
Paths ConfigFilePaths `yaml:"paths" json:"paths"`
}
type ConfigFilePaths ¶
type CurrentConfig ¶
type Manager ¶
type Manager struct {
Config *Config
}
func (*Manager) CurrentSetBy ¶
func (*Manager) CurrentVersion ¶
func (*Manager) ExecVersion ¶
func (*Manager) RehashVersions ¶
type PathsConfig ¶
Click to show internal directories.
Click to hide internal directories.