Documentation
¶
Index ¶
- Variables
- func FilePath(name string) (string, error)
- func ParseConfig(configYaml []byte) (map[string]map[string]any, error)
- func ReadCatalog() ([]byte, error)
- func ReadCatalogFile(name string) ([]byte, error)
- func ReadConfig(ctx context.Context, docker docker.Client) ([]byte, error)
- func ReadConfigFile(ctx context.Context, docker docker.Client, name string) ([]byte, error)
- func ReadRegistry(ctx context.Context, docker docker.Client) ([]byte, error)
- func ReadTools(ctx context.Context, docker docker.Client) ([]byte, error)
- func RemoveCatalogFile(name string) error
- func WriteCatalog(content []byte) error
- func WriteCatalogFile(name string, content []byte) error
- func WriteConfig(content []byte) error
- func WriteRegistry(content []byte) error
- func WriteTools(content []byte) error
- type ExitCodeErr
- type Registry
- type Tile
- type ToolsConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdOutput = func(cmd *exec.Cmd) ([]byte, error) {
return cmd.Output()
}
CmdOutput is used for testing purposes to allow mocking the output of the command execution.
Functions ¶
func ReadCatalog ¶
func ReadCatalogFile ¶
func ReadConfigFile ¶
func RemoveCatalogFile ¶
func WriteCatalog ¶
func WriteCatalogFile ¶
func WriteConfig ¶
func WriteRegistry ¶
func WriteTools ¶ added in v0.14.0
Types ¶
type ExitCodeErr ¶
type ExitCodeErr interface {
ExitCode() int
}
type ToolsConfig ¶ added in v0.14.0
func ParseToolsConfig ¶ added in v0.14.0
func ParseToolsConfig(toolsYaml []byte) (ToolsConfig, error)
Click to show internal directories.
Click to hide internal directories.