Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadReleases ¶
func DownloadReleases(releaseCfg *ReleaseConfig, ghClient *github.GitHub, outputDir string) error
DownloadReleases downloads release assets to a local directory Assets to download are derived from the tags specified in `ReleaseConfig`.
Types ¶
type Config ¶
type Config struct {
ReleaseConfigs []ReleaseConfig `yaml:"releaseConfigs"`
}
Config contains a slice of `ReleaseConfig` to be used when unmarshalling a yaml config containing multiple repository configs.
type ReleaseConfig ¶
type ReleaseConfig struct { // GitHub options Org string `yaml:"org"` Repo string `yaml:"repo"` Tags []string `yaml:"tags"` IncludePrereleases bool `yaml:"includePrereleases"` // GCS options GCSBucket string `yaml:"gcsBucket"` ReleaseDir string `yaml:"releaseDir"` }
ReleaseConfig contains source (GitHub) and destination (GCS) information to perform a copy/upload operation.
Click to show internal directories.
Click to hide internal directories.