outputshell

package
v2.31.0-1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFinder

type ConfigFinder interface {
	Finds(wd, configFilePath string) []string
}

type ConfigReader

type ConfigReader interface {
	Read(logE *logrus.Entry, configFilePath string, cfg *aqua.Config) error
}

type Controller

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

func New

func New(param *config.Param, configFinder ConfigFinder, configReader ConfigReader, registInstaller RegistryInstaller, fs afero.Fs, rt *runtime.Runtime, stdout io.Writer) *Controller

func (*Controller) OutputShell

func (c *Controller) OutputShell(ctx context.Context, logE *logrus.Entry, param *config.Param) error

type Env

type Env struct {
	Path *Path `json:"PATH,omitempty"`
}

func (*Env) GetPaths

func (e *Env) GetPaths() []string

type Path

type Path struct {
	Values []string `json:"values,omitempty"`
}

func (*Path) GetPaths

func (p *Path) GetPaths() []string

type RegistryInstaller

type RegistryInstaller interface {
	InstallRegistries(ctx context.Context, logE *logrus.Entry, cfg *aqua.Config, cfgFilePath string, checksums *checksum.Checksums) (map[string]*registry.Config, error)
}

type Shell

type Shell struct {
	Env *Env `json:"env,omitempty"`
}

func (*Shell) GetPaths

func (s *Shell) GetPaths() []string

Jump to

Keyboard shortcuts

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