Versions in this module Expand all Collapse all v1 v1.5.4 Jan 14, 2023 Changes in this version + var ErrFileNotFound = errors.New("file not found") + var ErrNotOpenned = errors.New("provider have not been openned") + var ErrProviderUnavailable = errors.New("provider not available") + func GetLatestVersionFromPath(path string) (string, error) + func GlobNewestFile(pattern string) (string, error) + type AccessProvider interface + GetLatestVersion func() (string, error) + Retrieve func(srcPath string, destPath string) error + Walk func(walkFn WalkFunc) error + type BitBucket struct + ArchiveName string + RepositoryURL string + func (c *BitBucket) Close() error + func (c *BitBucket) GetLatestVersion() (string, error) + func (c *BitBucket) Open() (err error) + func (c *BitBucket) Retrieve(src string, dest string) error + func (c *BitBucket) Walk(walkFn WalkFunc) error + type FileInfo struct + Mode os.FileMode + Path string + type Github struct + ArchiveName string + RepositoryURL string + func (c *Github) Close() error + func (c *Github) GetLatestVersion() (string, error) + func (c *Github) Open() (err error) + func (c *Github) Retrieve(src string, dest string) error + func (c *Github) Walk(walkFn WalkFunc) error + type Gitlab struct + ArchiveName string + ProjectID int + func (c *Gitlab) Close() error + func (c *Gitlab) GetLatestVersion() (string, error) + func (c *Gitlab) Open() (err error) + func (c *Gitlab) Retrieve(src string, dest string) error + func (c *Gitlab) Walk(walkFn WalkFunc) error + type Gzip struct + Path string + func (c *Gzip) Close() (err error) + func (c *Gzip) GetLatestVersion() (string, error) + func (c *Gzip) Open() (err error) + func (c *Gzip) Retrieve(src string, dest string) error + func (c *Gzip) Walk(walkFn WalkFunc) error + type Local struct + Path string + func (c *Local) Close() error + func (c *Local) GetLatestVersion() (string, error) + func (c *Local) Open() error + func (c *Local) Retrieve(src string, dest string) error + func (c *Local) Walk(walkFn WalkFunc) error + type Provider interface + Close func() error + Open func() error + func Decompress(path string) (Provider, error) + type Secure struct + BackendProvider Provider + PublicKey *rsa.PublicKey + PublicKeyPEM []byte + func (c *Secure) Close() error + func (c *Secure) GetLatestVersion() (string, error) + func (c *Secure) Open() (err error) + func (c *Secure) Retrieve(src string, dest string) error + func (c *Secure) Walk(walkFn WalkFunc) error + type WalkFunc func(info *FileInfo) error + type Zip struct + Path string + func (c *Zip) Close() error + func (c *Zip) GetLatestVersion() (string, error) + func (c *Zip) Open() error + func (c *Zip) Retrieve(src string, dest string) error + func (c *Zip) Walk(walkFn WalkFunc) error