Versions in this module Expand all Collapse all v0 v0.2.1 Aug 21, 2023 v0.2.0 Aug 21, 2023 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const GO_DL_SERVER + const InfoLevel + const LTS + const PanicLevel + const TraceLevel + const WarnLevel + var ErrBadResponse = errors.New("github API responde with a non success code") + var ErrEmptyTags = errors.New("no tags found") + var ErrHashInvalid = errors.New("release hash doesn't match") + var ErrHashNotFound = errors.New("release hash not found") + var ErrReleaseNotFound = errors.New("release not found") + func CopyFolder(src, dst string, init bool) error + func UpdateRelease(activeRelease, releaseFolder string) error + type Alias struct + func (a *Alias) GetAliasVersion(alias string) string + func (a *Alias) GetAllAlias() map[string]string + func (a *Alias) RenameAlias(old, new string) error + func (a *Alias) SetAlias(alias, version string) + func (a *Alias) WriteAliasFile() error + type Aliaser interface + GetAliasVersion func(alias string) string + GetAllAlias func() map[string]string + RenameAlias func(old, new string) error + SetAlias func(alias, version string) + WriteAliasFile func() error + func NewAlias(path string) (Aliaser, error) + type Hash struct + func (h *Hash) AddHash(path, hash string) error + func (h *Hash) CompareReleaseHash(path, hash string) error + func (h *Hash) GetFolderHash(path string) (string, error) + func (h *Hash) RemoveHash(path string) error + func (h *Hash) ReplaceHash(path, hash string) error + type HashActions interface + AddHash func(path, hash string) error + CompareReleaseHash func(path string, hash string) error + GetFolderHash func(path string) (string, error) + RemoveHash func(path string) error + ReplaceHash func(path, hash string) error + func NewHash(hashFile string) (HashActions, error) + type LoggerFormatter struct + func (f *LoggerFormatter) Format(e *logrus.Entry) ([]byte, error) + type Release struct + func (d *Release) CheckReleaseExists() error + func (d *Release) DownloadRelease() error + func (d *Release) ExtractRelease() error + func (d *Release) GetReleaseFolder() string + type ReleaseActions interface + CheckReleaseExists func() error + DownloadRelease func() error + ExtractRelease func() error + GetReleaseFolder func() string + func NewRelease(release, releaseFolder string) ReleaseActions + type Tags struct + func (t *Tags) GetRelease(beta, rc bool) (string, error) + func (t *Tags) GetTagsRef() ([]*github.Reference, error) + type TagsAction interface + GetRelease func(beta, rc bool) (string, error) + GetTagsRef func() ([]*github.Reference, error) + func NewTags(release string, ctx context.Context) TagsAction