Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPackageType = errors.New("package type is invalid")
Functions ¶
This section is empty.
Types ¶
type GitHubContentFile ¶
type GitHubContentFile struct { ReadCloser io.ReadCloser String string }
func (*GitHubContentFile) Byte ¶ added in v1.30.1
func (file *GitHubContentFile) Byte() ([]byte, error)
func (*GitHubContentFile) Close ¶ added in v1.30.1
func (file *GitHubContentFile) Close() error
func (*GitHubContentFile) Reader ¶ added in v1.30.1
func (file *GitHubContentFile) Reader() io.Reader
type GitHubContentFileDownloader ¶
type GitHubContentFileDownloader interface {
DownloadGitHubContentFile(ctx context.Context, logE *logrus.Entry, param *GitHubContentFileParam) (*GitHubContentFile, error)
}
type GitHubContentFileParam ¶
type GitHubReleaseDownloader ¶
type GitHubReleaseDownloader interface {
DownloadGitHubRelease(ctx context.Context, logE *logrus.Entry, param *DownloadGitHubReleaseParam) (io.ReadCloser, int64, error)
}
type Linker ¶ added in v1.22.0
type Linker interface { Lstat(s string) (os.FileInfo, error) Symlink(dest, src string) error Readlink(src string) (string, error) }
func NewMockLinker ¶ added in v1.22.0
type MockGitHubContentFileDownloader ¶ added in v1.30.1
type MockGitHubContentFileDownloader struct { File *GitHubContentFile Err error }
func (*MockGitHubContentFileDownloader) DownloadGitHubContentFile ¶ added in v1.30.1
func (mock *MockGitHubContentFileDownloader) DownloadGitHubContentFile(ctx context.Context, logE *logrus.Entry, param *GitHubContentFileParam) (*GitHubContentFile, error)
Click to show internal directories.
Click to hide internal directories.