// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package types import ( "time" "github.com/aws/eks-anywhere/release/pkg/clients" ) // ReleaseConfig contains metadata fields for a release. type ReleaseConfig struct { ReleaseVersion string DevReleaseUriVersion string BundleNumber int CliMinVersion string CliMaxVersion string CliRepoUrl string CliRepoSource string CliRepoHead string CliRepoBranchName string BuildRepoUrl string BuildRepoSource string BuildRepoHead string BuildRepoBranchName string ArtifactDir string SourceBucket string ReleaseBucket string SourceContainerRegistry string ReleaseContainerRegistry string CDN string ReleaseNumber int ReleaseDate string ReleaseTime time.Time DevRelease bool DryRun bool Weekly bool ReleaseEnvironment string SourceClients *clients.SourceClients ReleaseClients *clients.ReleaseClients BundleArtifactsTable map[string][]Artifact EksAArtifactsTable map[string][]Artifact } type ImageTagOverride struct { Repository string ReleaseUri string } type ArchiveArtifact struct { SourceS3Key string SourceS3Prefix string ArtifactPath string ReleaseName string ReleaseS3Path string ReleaseCdnURI string OS string OSName string Arch []string GitTag string ProjectPath string SourcedFromBranch string ImageFormat string } type ImageArtifact struct { AssetName string SourceImageURI string ReleaseImageURI string OS string Arch []string GitTag string ProjectPath string SourcedFromBranch string } type ManifestArtifact struct { SourceS3Prefix string // S3 uri till base to download artifact SourceS3Key string ArtifactPath string ReleaseName string ReleaseS3Path string ReleaseCdnURI string ImageTagOverrides []ImageTagOverride GitTag string ProjectPath string SourcedFromBranch string Component string } type Artifact struct { Archive *ArchiveArtifact Image *ImageArtifact Manifest *ManifestArtifact }