Documentation ¶
Index ¶
- Variables
- func Docker(manifest model.Manifest, hub string, tags []string, cosignkey string) error
- func FetchObject(bkt *storage.BucketHandle, objectPrefix string, filename string) ([]byte, error)
- func GcsArchive(manifest model.Manifest, bucket string, aliases []string) error
- func GetPublishCommand() *cobra.Command
- func Github(manifest model.Manifest, githubOrg string, githubToken string) error
- func GithubRelease(manifest model.Manifest, client *github.Client, githuborg string) error
- func GithubTag(client *github.Client, org string, repo string, version string, ...) error
- func GithubUploadReleaseAssets(ctx context.Context, manifest model.Manifest, client *github.Client, ...) error
- func Grafana(manifest model.Manifest, token string) error
- func Helm(manifest model.Manifest, bucket string, hub string) error
- func MutateObject(outDir string, bkt *storage.BucketHandle, objectPrefix string, filename string, ...) error
- func NewGCSClient(ctx context.Context) (*storage.Client, error)
- func Publish(manifest model.Manifest) error
- type Image
Constants ¶
This section is empty.
Variables ¶
var ErrIndexOutOfDate = errors.New("index is out-of-date")
Functions ¶
func FetchObject ¶
func GcsArchive ¶
GcsArchive publishes the final release archive to the given GCS bucket
func GetPublishCommand ¶
func Github ¶
Github triggers a complete release to github. This includes tagging all source branches, and publishing a release to the main istio repo.
func GithubRelease ¶
GithubRelease publishes a release.
func GithubTag ¶
func GithubTag(client *github.Client, org string, repo string, version string, goVersionEnabled bool, sha string) error
GithubTag tags a given repo with a version
func MutateObject ¶
func MutateObject(outDir string, bkt *storage.BucketHandle, objectPrefix string, filename string, f func() error) error
MutateObject allows pulling a file from GCS, mutating it, then pushing it back up. This adds checks to ensure that if the file is mutated in the meantime, the process is repeated.
Types ¶
type Image ¶
type Image struct { OriginalTag string NewTag string Variant string // May be empty for default variant Image string }
Image defines a single docker image. There are potentially many Image outputs for each .tar.gz - this represents the fully expanded form. Example:
Image{ OriginalTag: "localhost/proxyv2:original", // Hub from manifest NewTag: "gcr.io/istio-release/proxyv2:new", // Hub from --dockerhubs and --dockertags Variant "", Image "proxyv2", }
An image also logically containers an "Architecture" component. However, we want to merge based on arch, so we use this as a `map[Image][]architecture{}