Documentation
¶
Index ¶
- Constants
- Variables
- func Init(fs fsh.FS, dir string) error
- type Workdir
- func (c *Workdir) Add(ctx context.Context, runtime, program string, alias optional.Val[string], ...) (bool, string, error)
- func (c *Workdir) AddInclude(ctx context.Context, source string, tags []string) (int, error)
- func (c *Workdir) CopySource(ctx context.Context, source string, tags []string) (int, error)
- func (c *Workdir) FindTool(name string) (*structs.ToolState, error)
- func (c *Workdir) GetTools(ctx context.Context) ([]structs.ToolState, error)
- func (c *Workdir) RemoveTool(ctx context.Context, target string) error
- func (c *Workdir) RunTool(ctx context.Context, str string, args ...string) error
- func (c *Workdir) RuntimeAdd(ctx context.Context, runtime string) error
- func (c *Workdir) RuntimeList() []string
- func (c *Workdir) Save() error
- func (c *Workdir) Sync(ctx context.Context, maxWorkers int, tags []string) error
- func (c *Workdir) Upgrade(ctx context.Context, tags []string) error
Constants ¶
View Source
const (
StatsVer1 = "v1"
)
Variables ¶
View Source
var ( ErrToolNotFoundInSpec = errors.New("tool not found in spec") ErrToolNotInstalled = errors.New("tool not installed") )
Functions ¶
Types ¶
type Workdir ¶ added in v0.14.1
type Workdir struct {
// contains filtered or unexported fields
}
func (*Workdir) AddInclude ¶ added in v0.14.1
func (*Workdir) CopySource ¶ added in v0.14.1
CopySource will add all tools from source. Source can be a path to file or a http url or git repo.
func (*Workdir) RemoveTool ¶ added in v0.22.0
func (*Workdir) RuntimeAdd ¶ added in v0.24.0
func (*Workdir) RuntimeList ¶ added in v0.24.0
Click to show internal directories.
Click to hide internal directories.