driver

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedShimCreation   = errors.New("failed to create tool shim")
	ErrInvalidCacheConfig   = errors.New("invalid cache configuration")
	ErrInvalidToolshareShim = fmt.Errorf("can not create shim for tool with the same name as the driver %q", config.DriverName)
	ErrNoBackends           = errors.New("no backend found")
	ErrNoToolSet            = errors.New("no tool set")
	ErrUnknownSyncMode      = errors.New("unknown sync mode")
	ErrUnknownTool          = errors.New("tool unknown in current environment")

	ErrUnimplemented = errors.New("unimplemented")
)

Functions

func Download

func Download(cOpts *CommonOpts) *cobra.Command

func Env

func Env(cOpts *CommonOpts) *cobra.Command

func Invoke

func Invoke(cOpts *CommonOpts) *cobra.Command

func Sync

func Sync(cOpts *CommonOpts) *cobra.Command

func Versions

func Versions(cOpts *CommonOpts) *cobra.Command

Types

type CommonOpts

type CommonOpts struct {
	LogBuilder logger.Builder
	Log        *zap.Logger
	Config     *config.Global
	Env        environment.Environment
	Verbose    []string
}

func NewCommonOpts

func NewCommonOpts() *CommonOpts

func (*CommonOpts) Parse

func (c *CommonOpts) Parse() error

Jump to

Keyboard shortcuts

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