Documentation ¶
Index ¶
- Variables
- func CreateCommand(cfg *config.Config) *cobra.Command
- func CreateMount(cfg *config.Config, path string) error
- func CreateMountCommand(cfg *config.Config) *cobra.Command
- func CreateRegistryCommand(cfg *config.Config) *cobra.Command
- func CreateRootCommand(cfg *config.Config) *cobra.Command
- func DeleteCommand(cfg *config.Config) *cobra.Command
- func DeleteMount(cfg *config.Config, path string) error
- func DeleteMountCommand(cfg *config.Config) *cobra.Command
- func DeleteRegistry(cfg *config.Config, name string) error
- func DeleteRegistryCommand(cfg *config.Config) *cobra.Command
- func DescribeCommand(cfg *config.Config) *cobra.Command
- func DescribeKit(cfg *config.Config, registryName string, kitName string) error
- func DescribeKitCommand(cfg *config.Config) *cobra.Command
- func DescribeRegistry(cfg *config.Config, name string) error
- func DescribeRegistryCommand(cfg *config.Config) *cobra.Command
- func DescribeTool(cfg *config.Config, name string) error
- func DescribeToolCommand(cfg *config.Config) *cobra.Command
- func Execute(cfg *config.Config)
- func GetCommand(cfg *config.Config) *cobra.Command
- func GetKitCommand(cfg *config.Config) *cobra.Command
- func GetKits(cfg *config.Config) error
- func GetMountCommand(cfg *config.Config) *cobra.Command
- func GetMounts(cfg *config.Config) error
- func GetRegistries(cfg *config.Config) error
- func GetRegistryCommand(cfg *config.Config) *cobra.Command
- func GetToolCommand(cfg *config.Config) *cobra.Command
- func GetTools(cfg *config.Config, search string) error
- func InstallCommand(cfg *config.Config) *cobra.Command
- func ResetCommand(cfg *config.Config) *cobra.Command
- func RunAlias(cfg *config.Config, toolAlias string, arguments []string) error
- func RunAliasCommand(cfg *config.Config) *cobra.Command
- func RunCommand(cfg *config.Config) *cobra.Command
- func UpdateCommand(cfg *config.Config) *cobra.Command
- type RunCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNoVersionFound will be thrown if there is no version that can be run ErrorNoVersionFound = errors.New("Could not find a version to run") // DefaultTimeout is the timeout used to pull an image DefaultTimeout = 300 * time.Second )
View Source
var ( // ErrorInvalidPath will be thrown if the given path is invalid ErrorInvalidPath = errors.New("Could not create given path, please make sure it exists and is a directory") )
View Source
var ( // ErrorNoRegistryGiven will be thrown if no registry is passed ErrorNoRegistryGiven = errors.New("No registry passed to the command") )
View Source
var ( // ErrorRegistryTypeNotSupported will be thrown if the registry type is not supported ErrorRegistryTypeNotSupported = errors.New("The type of the registry is not supported") )
View Source
var ( // ErrorToolNotFound will be thrown if a tool cannot be found ErrorToolNotFound = errors.New("Tool not found") )
Functions ¶
func CreateMount ¶
CreateMount will create a new mount if possible
func CreateRootCommand ¶
CreateRootCommand will create the main command that should be used to run the application
func DeleteMount ¶
DeleteMount will list all mounts that are registered with Sledgehammer on this system
func DeleteRegistry ¶
DeleteRegistry will delete the given registry from Sledgehammer
func DescribeKit ¶
DescribeKit will describe detailed information about a kit
func DescribeRegistry ¶
DescribeRegistry will describe detailed information about a registry
func DescribeTool ¶
DescribeTool will describe detailed information about a tool
func GetRegistries ¶
GetRegistries will get all registries that are registered with Sledgehammer on this system
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.