Versions in this module Expand all Collapse all v3 v3.42.0 Jan 27, 2025 Changes in this version + func ClearCache() + func GetAllVersion(repo string, path string) (*[]Release, error) + func GetGithubOtherFile(repo string, basePath string, cacheExpiration int) (*[]File, error) + func GetNextDir(wholePath string, basePath string) string + func GetRequest(url string, cacheExpiration int) (*resty.Response, error) + func SetHeader(token string) + type Addition struct + RepoStructure string + ShowAllVersion bool + ShowReadme bool + Token string + type File struct + CreateAt time.Time + FileName string + Path string + Size int64 + Type string + UpdateAt time.Time + Url string + func (f File) CreateTime() time.Time + func (f File) GetHash() utils.HashInfo + func (f File) GetID() string + func (f File) GetName() string + func (f File) GetPath() string + func (f File) GetSize() int64 + func (f File) IsDir() bool + func (f File) ModTime() time.Time + func (f File) Thumb() string + type GithubReleases struct + func (d *GithubReleases) Config() driver.Config + func (d *GithubReleases) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *GithubReleases) Drop(ctx context.Context) error + func (d *GithubReleases) GetAddition() driver.Additional + func (d *GithubReleases) Init(ctx context.Context) error + func (d *GithubReleases) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *GithubReleases) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *GithubReleases) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + func (d *GithubReleases) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *GithubReleases) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + func (d *GithubReleases) Remove(ctx context.Context, obj model.Obj) error + func (d *GithubReleases) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) + type Release struct + ID string + Path string + RepoName string + Version string + func ParseRepos(text string, allVersion bool) ([]Release, error) + type ReleasesData struct + CreateAt time.Time + Files []File + Size int64 + UpdateAt time.Time + Url string + func GetRepoReleaseInfo(repo string, version string, basePath string, cacheExpiration int) (*ReleasesData, error)