Documentation ¶
Index ¶
- Variables
- type ChecksumDownloader
- type Checksums
- type ConfigReader
- type CosignInstaller
- type DownloadGitHubReleaseParam
- type FindResult
- type GitHubContentFile
- type GitHubContentFileDownloader
- type GitHubContentFileParam
- type GitHubReleaseDownloader
- type Linker
- type MockChecksumDownloader
- type MockConfigReader
- type MockCosignInstaller
- type MockPolicyChecker
- type MockPolicyConfigReader
- type MockRegistryInstaller
- type MockWhichController
- type PackageInstaller
- type ParamInstallPackage
- type ParamInstallPackages
- type PolicyChecker
- type PolicyConfigReader
- type RegistryInstaller
- type RepositoriesService
- type WhichController
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPackageType = errors.New("package type is invalid")
Functions ¶
This section is empty.
Types ¶
type ChecksumDownloader ¶
type ConfigReader ¶
type CosignInstaller ¶ added in v1.26.0
type FindResult ¶ added in v1.20.0
type GitHubContentFile ¶
type GitHubContentFile struct { ReadCloser io.ReadCloser String string }
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 MockChecksumDownloader ¶ added in v1.22.0
func (*MockChecksumDownloader) DownloadChecksum ¶ added in v1.22.0
type MockConfigReader ¶ added in v1.22.0
type MockCosignInstaller ¶ added in v1.26.0
type MockCosignInstaller struct {
// contains filtered or unexported fields
}
func (*MockCosignInstaller) InstallCosign ¶ added in v1.26.0
type MockPolicyChecker ¶ added in v1.24.0
type MockPolicyChecker struct {
Err error
}
func (*MockPolicyChecker) ValidatePackage ¶ added in v1.24.0
func (pc *MockPolicyChecker) ValidatePackage(param *policy.ParamValidatePackage) error
type MockPolicyConfigReader ¶ added in v1.24.0
type MockRegistryInstaller ¶ added in v1.22.0
type MockWhichController ¶ added in v1.22.0
type MockWhichController struct { FindResult *FindResult Err error }
type PackageInstaller ¶
type ParamInstallPackage ¶ added in v1.20.0
type ParamInstallPackages ¶ added in v1.19.0
type PolicyChecker ¶ added in v1.24.0
type PolicyChecker interface {
ValidatePackage(param *policy.ParamValidatePackage) error
}
type PolicyConfigReader ¶ added in v1.24.0
type RegistryInstaller ¶
type RepositoriesService ¶
type RepositoriesService interface { GetArchiveLink(ctx context.Context, owner, repo string, archiveformat github.ArchiveFormat, opts *github.RepositoryContentGetOptions, followRedirects bool) (*url.URL, *github.Response, error) GetReleaseByTag(ctx context.Context, owner, repoName, version string) (*github.RepositoryRelease, *github.Response, error) DownloadReleaseAsset(ctx context.Context, owner, repoName string, assetID int64, httpClient *http.Client) (io.ReadCloser, string, error) GetContents(ctx context.Context, repoOwner, repoName, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error) }
Click to show internal directories.
Click to hide internal directories.