Documentation ¶
Index ¶
- Constants
- type Asset
- type Bundler
- type BundlerRelease
- type Checksummer
- type Composer
- type Curl
- type CurlRelease
- type DepFactory
- type DepVersion
- type Dependency
- type DotnetASPNETCore
- type DotnetChannel
- type DotnetChannelRelease
- type DotnetChannelReleaseFile
- type DotnetRuntime
- type DotnetSDK
- type DotnetVersion
- type FileSystem
- type GithubClient
- type Go
- type GoFile
- type GoRelease
- type GoReleaseWithFiles
- type Httpd
- type HttpdRelease
- type ICU
- type LicenseRetriever
- type Nginx
- type Node
- type NodeRelease
- type PURLGenerator
- type Pecl
- type PeclVersion
- type Php
- type PhpRawRelease
- type PhpRelease
- type PhpSource
- type PyPi
- type PyPiRelease
- type Python
- type ReleaseSchedule
- type Ruby
- type RubyRelease
- type Rust
- type Tini
- type WebClient
- type Yarn
- type YarnRelease
Constants ¶
View Source
const ( CurlVersionIndex = 1 CurlDateIndex = 3 )
View Source
const ( DotnetReleaseIndexURL = "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json" DotnetChannelURL = "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/%s/releases.json" DotnetLinuxFileRID = "linux-x64" DotnetUbuntuFileRID = "ubuntu-x64" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundler ¶
type Bundler struct {
// contains filtered or unexported fields
}
func (Bundler) GetAllVersionRefs ¶
func (Bundler) GetDependencyVersion ¶
func (b Bundler) GetDependencyVersion(version string) (DepVersion, error)
type BundlerRelease ¶
type Checksummer ¶
type Checksummer interface { VerifyASC(asc, path string, pgpKeys ...string) error VerifyMD5(path, md5 string) error VerifySHA1(path, sha string) error VerifySHA256(path, sha string) error VerifySHA512(path, sha string) error GetSHA256(path string) (string, error) SplitPGPKeys(block string) []string }
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
func (Composer) GetAllVersionRefs ¶
func (Composer) GetDependencyVersion ¶
func (c Composer) GetDependencyVersion(version string) (DepVersion, error)
type Curl ¶
type Curl struct {
// contains filtered or unexported fields
}
func (Curl) GetAllVersionRefs ¶
func (Curl) GetDependencyVersion ¶
func (c Curl) GetDependencyVersion(version string) (DepVersion, error)
type DepFactory ¶
type DepFactory struct {
// contains filtered or unexported fields
}
func NewCustomDependencyFactory ¶
func NewCustomDependencyFactory(checksum Checksummer, fileSystem FileSystem, githubClient GithubClient, webClient WebClient, licenseRetriever LicenseRetriever, purlGenerator PURLGenerator) DepFactory
func NewDependencyFactory ¶
func NewDependencyFactory(accessToken string) DepFactory
func (DepFactory) NewDependency ¶
func (d DepFactory) NewDependency(name string) (Dependency, error)
func (DepFactory) SupportsDependency ¶
func (d DepFactory) SupportsDependency(name string) bool
type DepVersion ¶
type DepVersion struct { Version string `json:"version"` URI string `json:"uri"` SHA256 string `json:"sha256"` ReleaseDate *time.Time `json:"release_date,omitempty"` DeprecationDate *time.Time `json:"deprecation_date,omitempty"` CPE string `json:"cpe"` PURL string `json:"purl"` Licenses []string `json:"licenses"` }
type Dependency ¶
type DotnetASPNETCore ¶
type DotnetASPNETCore struct {
// contains filtered or unexported fields
}
func (DotnetASPNETCore) GetAllVersionRefs ¶
func (d DotnetASPNETCore) GetAllVersionRefs() ([]string, error)
func (DotnetASPNETCore) GetDependencyVersion ¶
func (d DotnetASPNETCore) GetDependencyVersion(version string) (DepVersion, error)
func (DotnetASPNETCore) GetReleaseDate ¶
func (d DotnetASPNETCore) GetReleaseDate(version string) (*time.Time, error)
type DotnetChannel ¶
type DotnetChannel struct { EOLDate string `json:"eol-date"` Releases []DotnetChannelRelease `json:"releases"` }
type DotnetChannelRelease ¶
type DotnetChannelRelease struct { ReleaseDate string `json:"release-date"` ASPNETCoreRuntime struct { Version string `json:"version"` Files []DotnetChannelReleaseFile `json:"files"` } `json:"aspnetcore-runtime"` Runtime struct { Version string `json:"version"` Files []DotnetChannelReleaseFile `json:"files"` } `json:"runtime"` SDK struct { Version string `json:"version"` Files []DotnetChannelReleaseFile `json:"files"` } `json:"sdk"` SDKs []struct { Version string `json:"version"` Files []DotnetChannelReleaseFile `json:"files"` } `json:"sdks"` }
type DotnetRuntime ¶
type DotnetRuntime struct {
// contains filtered or unexported fields
}
func (DotnetRuntime) GetAllVersionRefs ¶
func (d DotnetRuntime) GetAllVersionRefs() ([]string, error)
func (DotnetRuntime) GetDependencyVersion ¶
func (d DotnetRuntime) GetDependencyVersion(version string) (DepVersion, error)
func (DotnetRuntime) GetReleaseDate ¶
func (d DotnetRuntime) GetReleaseDate(version string) (*time.Time, error)
type DotnetSDK ¶
type DotnetSDK struct {
// contains filtered or unexported fields
}
func (DotnetSDK) GetAllVersionRefs ¶
func (DotnetSDK) GetDependencyVersion ¶
func (d DotnetSDK) GetDependencyVersion(version string) (DepVersion, error)
type DotnetVersion ¶
type FileSystem ¶
type GithubClient ¶
type GithubClient interface { GetReleaseTags(org, repo string) ([]internal.GithubRelease, error) GetTags(org, repo string) ([]string, error) GetReleaseAsset(org, repo, version, filename string) ([]byte, error) DownloadReleaseAsset(org, repo, version, filename, outputPath string) (url string, err error) DownloadSourceTarball(org, repo, version, outputPath string) (url string, err error) GetTagCommit(org, repo, version string) (internal.GithubTagCommit, error) GetReleaseDate(org, repo, tag string) (*time.Time, error) }
type Go ¶
type Go struct {
// contains filtered or unexported fields
}
func (Go) GetAllVersionRefs ¶
func (Go) GetDependencyVersion ¶
func (g Go) GetDependencyVersion(version string) (DepVersion, error)
type GoReleaseWithFiles ¶
type Httpd ¶
type Httpd struct {
// contains filtered or unexported fields
}
func (Httpd) GetAllVersionRefs ¶
func (Httpd) GetDependencyVersion ¶
func (h Httpd) GetDependencyVersion(version string) (DepVersion, error)
type HttpdRelease ¶
type HttpdRelease struct {
// contains filtered or unexported fields
}
type ICU ¶
type ICU struct {
// contains filtered or unexported fields
}
func (ICU) GetAllVersionRefs ¶
func (ICU) GetDependencyVersion ¶
func (i ICU) GetDependencyVersion(version string) (DepVersion, error)
type LicenseRetriever ¶
type Nginx ¶
type Nginx struct {
// contains filtered or unexported fields
}
func (Nginx) GetAllVersionRefs ¶
func (Nginx) GetDependencyVersion ¶
func (n Nginx) GetDependencyVersion(version string) (DepVersion, error)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (Node) GetAllVersionRefs ¶
func (Node) GetDependencyVersion ¶
func (n Node) GetDependencyVersion(version string) (DepVersion, error)
type NodeRelease ¶
type PURLGenerator ¶
type Pecl ¶
type Pecl struct {
// contains filtered or unexported fields
}
func (Pecl) GetAllVersionRefs ¶
func (Pecl) GetDependencyVersion ¶
func (p Pecl) GetDependencyVersion(version string) (DepVersion, error)
type Php ¶
type Php struct {
// contains filtered or unexported fields
}
func (Php) GetAllVersionRefs ¶
func (Php) GetDependencyVersion ¶
func (p Php) GetDependencyVersion(version string) (DepVersion, error)
type PhpRawRelease ¶
type PyPi ¶
type PyPi struct {
// contains filtered or unexported fields
}
func (PyPi) GetAllVersionRefs ¶
func (PyPi) GetDependencyVersion ¶
func (p PyPi) GetDependencyVersion(version string) (DepVersion, error)
type PyPiRelease ¶
type Python ¶
type Python struct {
// contains filtered or unexported fields
}
func (Python) GetAllVersionRefs ¶
func (Python) GetDependencyVersion ¶
func (p Python) GetDependencyVersion(version string) (DepVersion, error)
type ReleaseSchedule ¶
type Ruby ¶
type Ruby struct {
// contains filtered or unexported fields
}
func (Ruby) GetAllVersionRefs ¶
func (Ruby) GetDependencyVersion ¶
func (r Ruby) GetDependencyVersion(version string) (DepVersion, error)
type RubyRelease ¶
type Rust ¶
type Rust struct {
// contains filtered or unexported fields
}
func (Rust) GetAllVersionRefs ¶
func (Rust) GetDependencyVersion ¶
func (r Rust) GetDependencyVersion(version string) (DepVersion, error)
type Tini ¶
type Tini struct {
// contains filtered or unexported fields
}
func (Tini) GetAllVersionRefs ¶
func (Tini) GetDependencyVersion ¶
func (t Tini) GetDependencyVersion(version string) (DepVersion, error)
type WebClient ¶
type WebClient interface { Download(url, outputPath string, options ...internal.RequestOption) error Get(url string, options ...internal.RequestOption) ([]byte, error) }
type Yarn ¶
type Yarn struct {
// contains filtered or unexported fields
}
func (Yarn) GetAllVersionRefs ¶
func (Yarn) GetDependencyVersion ¶
func (y Yarn) GetDependencyVersion(version string) (DepVersion, error)
type YarnRelease ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
internalfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.