Documentation ¶
Index ¶
- func CloneRemoteStack(git *schema.Git, path string, verbose bool) (err error)
- func CreateIndexFile(index []schema.Schema, indexFilePath string) error
- func DownloadStackFromGit(git *schema.Git, path string, verbose bool) ([]byte, error)
- func DownloadStackFromZipUrl(zipUrl string, subDir string, path string) ([]byte, error)
- func GenerateIndexStruct(registryDirPath string, force bool) ([]schema.Schema, error)
- func GitSubDir(srcPath, destinationPath, subDir string) error
- func SortVersionByDescendingOrder(versions []schema.Version) []schema.Version
- func StartSignalWatcher(watchSignals []os.Signal, handle func(receivedSignal os.Signal))
- func ZipDir(src string, dst string) error
- type IconUrlBrokenError
- type MissingArchError
- type MissingProviderError
- type MissingSupportUrlError
- type Semver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRemoteStack ¶
CloneRemoteStack downloads the stack version from a git repo outside of the registry by cloning then removing the local .git folder. When git.SubDir is set, fetches specified subdirectory only.
func CreateIndexFile ¶
CreateIndexFile creates index file in disk
func DownloadStackFromGit ¶
DownloadStackFromGit downloads the stack from a git repo then adds folder contents into a zip archive, returns byte array of zip file and error if occurs otherwise is nil. If git.SubDir is set, then zip file will contain contents of the specified subdirectory instead of the whole downloaded git repo.
func DownloadStackFromZipUrl ¶
DownloadStackFromZipUrl downloads the zip file containing the stack at a given url, uses default filesystem
func GenerateIndexStruct ¶
GenerateIndexStruct parses registry then generates index struct according to the schema
func StartSignalWatcher ¶
StartSignalWatcher watches for signals and handles the situation before exiting the program
Types ¶
type IconUrlBrokenError ¶
type IconUrlBrokenError struct {
// contains filtered or unexported fields
}
func (*IconUrlBrokenError) Error ¶
func (e *IconUrlBrokenError) Error() string
type MissingArchError ¶
type MissingArchError struct {
// contains filtered or unexported fields
}
MissingArchError is an error if the architecture list is empty
func (*MissingArchError) Error ¶
func (e *MissingArchError) Error() string
type MissingProviderError ¶
type MissingProviderError struct {
// contains filtered or unexported fields
}
MissingProviderError is an error if the provider field is missing
func (*MissingProviderError) Error ¶
func (e *MissingProviderError) Error() string
type MissingSupportUrlError ¶
type MissingSupportUrlError struct {
// contains filtered or unexported fields
}
MissingSupportUrlError is an error if the supportUrl field is missing
func (*MissingSupportUrlError) Error ¶
func (e *MissingSupportUrlError) Error() string