Documentation ¶
Index ¶
- type Checksummer
- func (c Checksummer) GetSHA256(path string) (string, error)
- func (c Checksummer) GetSHA512(path string) (string, error)
- func (c Checksummer) SplitPGPKeys(block string) []string
- func (c Checksummer) VerifyASC(asc, path string, pgpKeys ...string) error
- func (c Checksummer) VerifyMD5(path, expectedMD5 string) error
- func (c Checksummer) VerifySHA1(path, expectedSHA string) error
- func (c Checksummer) VerifySHA256(path, expectedSHA string) error
- func (c Checksummer) VerifySHA512(path, expectedSHA string) error
- type FileSystem
- type GithubAnnotatedTagResponse
- type GithubClient
- func (g GithubClient) DownloadReleaseAsset(org, repo, tag, assetName, outputPath string) (string, error)
- func (g GithubClient) DownloadSourceTarball(org, repo, ref, outputPath string) (string, error)
- func (g GithubClient) GetReleaseAsset(org, repo, tag, assetName string) ([]byte, error)
- func (g GithubClient) GetReleaseDate(org, repo, tag string) (*time.Time, error)
- func (g GithubClient) GetReleaseTags(org, repo string) ([]GithubRelease, error)
- func (g GithubClient) GetTagCommit(org, repo, tag string) (GithubTagCommit, error)
- func (g GithubClient) GetTags(org, repo string) ([]string, error)
- type GithubCommitResponse
- type GithubGraphQLRequest
- type GithubGraphQLTagsResponse
- type GithubRelease
- type GithubReleaseAsset
- type GithubReleaseResponse
- type GithubTagCommit
- type GithubTagResponse
- type GithubWebClient
- type RequestOption
- type WebClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checksummer ¶
type Checksummer struct{}
func NewChecksummer ¶
func NewChecksummer() Checksummer
func (Checksummer) SplitPGPKeys ¶
func (c Checksummer) SplitPGPKeys(block string) []string
func (Checksummer) VerifyASC ¶
func (c Checksummer) VerifyASC(asc, path string, pgpKeys ...string) error
func (Checksummer) VerifyMD5 ¶
func (c Checksummer) VerifyMD5(path, expectedMD5 string) error
func (Checksummer) VerifySHA1 ¶
func (c Checksummer) VerifySHA1(path, expectedSHA string) error
func (Checksummer) VerifySHA256 ¶
func (c Checksummer) VerifySHA256(path, expectedSHA string) error
func (Checksummer) VerifySHA512 ¶
func (c Checksummer) VerifySHA512(path, expectedSHA string) error
type FileSystem ¶
type FileSystem struct{}
func NewFileSystem ¶
func NewFileSystem() FileSystem
func (FileSystem) WriteFile ¶
func (f FileSystem) WriteFile(filename, contents string) error
type GithubClient ¶
type GithubClient struct {
// contains filtered or unexported fields
}
func NewGithubClient ¶
func NewGithubClient(webClient GithubWebClient, accessToken string) GithubClient
func (GithubClient) DownloadReleaseAsset ¶
func (g GithubClient) DownloadReleaseAsset(org, repo, tag, assetName, outputPath string) (string, error)
func (GithubClient) DownloadSourceTarball ¶
func (g GithubClient) DownloadSourceTarball(org, repo, ref, outputPath string) (string, error)
func (GithubClient) GetReleaseAsset ¶
func (g GithubClient) GetReleaseAsset(org, repo, tag, assetName string) ([]byte, error)
func (GithubClient) GetReleaseDate ¶
func (g GithubClient) GetReleaseDate(org, repo, tag string) (*time.Time, error)
func (GithubClient) GetReleaseTags ¶
func (g GithubClient) GetReleaseTags(org, repo string) ([]GithubRelease, error)
func (GithubClient) GetTagCommit ¶
func (g GithubClient) GetTagCommit(org, repo, tag string) (GithubTagCommit, error)
type GithubCommitResponse ¶
type GithubGraphQLRequest ¶
type GithubGraphQLRequest struct {
Query string `json:"query"`
}
type GithubRelease ¶
type GithubReleaseAsset ¶
type GithubReleaseResponse ¶
type GithubTagResponse ¶
type GithubWebClient ¶
type GithubWebClient interface { Get(url string, options ...RequestOption) ([]byte, error) Post(url string, body []byte, options ...RequestOption) ([]byte, error) Download(url, filename string, options ...RequestOption) error }
type RequestOption ¶
func WithHeader ¶
func WithHeader(name, value string) RequestOption
Click to show internal directories.
Click to hide internal directories.