Documentation ¶
Index ¶
- func GetExtractor() interfaces.IExtractor
- func ProvideHelper(logger interfaces.ILogger) interfaces.IHelper
- func ProvideNetworker(logger interfaces.ILogger) interfaces.INetworker
- func ProvideUpdater(logger interfaces.ILogger, networker interfaces.INetworker) interfaces.IUpdater
- type Category
- type Connection
- type DownloadMetadata
- type Extractor
- type Helper
- func (h *Helper) CatchOutput(script string, silent bool, args ...string) (string, error)
- func (h *Helper) CheckFlag(flag string) bool
- func (h *Helper) CheckFlagArg(flag string) string
- func (h *Helper) CheckOrCreateFolder(pathToCheck string, permissions os.FileMode)
- func (h *Helper) CheckOrCreateParentFolder(pathToCheck string, permissions os.FileMode)
- func (h *Helper) CheckUserProfile() string
- func (h *Helper) CurrentWorkdir(i ...string) string
- func (h *Helper) HomeDir(i ...string) string
- func (h *Helper) LoadBootConfig() *interfaces.Bootconfig
- func (h *Helper) PathExists(path string) bool
- func (h *Helper) ReadFile(path string) ([]byte, error)
- func (h *Helper) UpdateOrWriteFile(path string, content []byte, permissions os.FileMode) error
- type IndexObject
- type Networker
- type Target
- type Updater
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideHelper ¶
func ProvideHelper(logger interfaces.ILogger) interfaces.IHelper
ProvideHelper ...
func ProvideNetworker ¶
func ProvideNetworker(logger interfaces.ILogger) interfaces.INetworker
ProvideNetworker ...
func ProvideUpdater ¶
func ProvideUpdater(logger interfaces.ILogger, networker interfaces.INetworker) interfaces.IUpdater
ProvideNetworker ...
Types ¶
type Connection ¶
Connection ...
type DownloadMetadata ¶
type DownloadMetadata struct { Author string Description string Md5 string Released time.Time Size int URL string ReleaseNotes string }
DownloadMetadata ...
type Extractor ¶
type Extractor struct { }
Extractor ...
func (*Extractor) GetCore ¶
func (h *Extractor) GetCore(i interface{}) interfaces.ICore
ExtractProfile ...
func (*Extractor) GetMetadata ¶
GetMetadata ...
func (*Extractor) GetMetadataFatal ¶
ExtractMetadataFatal calls ExtractMetadata but fails fataly before returning to caller if extraction has error this allows for less lines in calling code for essential extractions that would need to interrupt the application anyways
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper ...
func (*Helper) CatchOutput ¶
func (*Helper) CheckOrCreateFolder ¶
CheckOrCreateFolder ...
func (*Helper) CheckOrCreateParentFolder ¶
CheckOrCreateParentFolder ...
func (*Helper) CurrentWorkdir ¶
CurrentWorkdir ...
func (*Helper) LoadBootConfig ¶
func (h *Helper) LoadBootConfig() *interfaces.Bootconfig
LoadBootConfig ...
type IndexObject ¶
IndexObject ...
type Networker ¶
type Networker struct {
// contains filtered or unexported fields
}
Networker ...
func (*Networker) CheckConnections ¶
CheckConnections ...
type Target ¶
type Target struct {
Versions map[string]DownloadMetadata `yaml:"version"`
}
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func (*Updater) CheckSinceLastUpdate ¶
func (u *Updater) CheckSinceLastUpdate(version string, core interfaces.ICore) error
func (*Updater) CheckUpdate ¶
func (u *Updater) CheckUpdate(version string, core interfaces.ICore) error
CheckUpdate ...
Click to show internal directories.
Click to hide internal directories.