Documentation
¶
Index ¶
- Constants
- func PackageDefaultConfigPack(repositoryRoot, sourceListPath, version, archivePath, metadataPath string) error
- func ValidateChart(chartDir string) error
- func WriteChartMetadata(repositoryRoot, path, name, version, archivePath, ociReference, digest string, ...) error
- func WriteCompatibilityManifest(path string) error
- func WriteImageMetadata(path, repository string, tags, platforms []string, published bool, ...) error
- func WriteReleaseManifest(opts ReleaseManifestOptions) error
- type AssetReference
- type ChartDefinition
- type ChartMetadata
- type CompatibilityContract
- type CompatibilityManifest
- type DefaultConfigPackMetadata
- type ImageReference
- type OCIImageMetadata
- type ReleaseBinary
- type ReleaseManifest
- type ReleaseManifestOptions
Constants ¶
View Source
const ( ProductName = "Sheaft" UpstreamProducer = "Bering" CompatibilityManifestSchemaVersion = "1.0.0" ReleaseManifestSchemaVersion = "1.0.0" DefaultCompatibilityManifestPath = "compatibility-manifest.json" DefaultReleaseManifestPath = "release-manifest.json" DefaultCompatibilitySchemaPath = "api/schema/compatibility-manifest.schema.json" DefaultReleaseSchemaPath = "api/schema/release-manifest.schema.json" DefaultConfigPackSourceListPath = "release/packs/default-config-pack.files.txt" DefaultConfigPackMetadataOutputPath = "dist/default-config-pack.json" )
Variables ¶
This section is empty.
Functions ¶
func ValidateChart ¶
func WriteChartMetadata ¶
func WriteImageMetadata ¶
func WriteReleaseManifest ¶
func WriteReleaseManifest(opts ReleaseManifestOptions) error
Types ¶
type AssetReference ¶
type ChartDefinition ¶
type ChartMetadata ¶
type CompatibilityContract ¶
type CompatibilityManifest ¶
type CompatibilityManifest struct {
Schema string `json:"$schema"`
SchemaVersion string `json:"schema_version"`
ProductName string `json:"product_name"`
DownstreamConsumerOf string `json:"downstream_consumer_of"`
StrictContractValidation bool `json:"strict_contract_validation"`
SupportedUpstreamArtifactTypes []string `json:"supported_upstream_artifact_types"`
SupportedUpstreamSchemaNames []string `json:"supported_upstream_schema_names"`
SupportedUpstreamSchemaVersions []string `json:"supported_upstream_schema_versions"`
SupportedContracts []CompatibilityContract `json:"supported_contracts"`
TestedBeringAppVersions []string `json:"tested_bering_app_versions"`
}
func GenerateCompatibilityManifest ¶
func GenerateCompatibilityManifest() CompatibilityManifest
func ReadCompatibilityManifest ¶
func ReadCompatibilityManifest(path string) (CompatibilityManifest, error)
func (CompatibilityManifest) Validate ¶
func (m CompatibilityManifest) Validate() error
type DefaultConfigPackMetadata ¶
type DefaultConfigPackMetadata struct {
SchemaVersion string `json:"schema_version"`
Name string `json:"name"`
Version string `json:"version"`
Archive AssetReference `json:"archive"`
Files []string `json:"files"`
}
type ImageReference ¶
type ImageReference struct {
Reference string `json:"reference"`
}
type OCIImageMetadata ¶
type OCIImageMetadata struct {
SchemaVersion string `json:"schema_version"`
Repository string `json:"repository"`
Tags []string `json:"tags"`
Platforms []string `json:"platforms"`
Published bool `json:"published"`
Digest string `json:"digest,omitempty"`
References []ImageReference `json:"references"`
}
type ReleaseBinary ¶
type ReleaseBinary struct {
OS string `json:"os"`
Arch string `json:"arch"`
Archive AssetReference `json:"archive"`
SBOM *AssetReference `json:"sbom,omitempty"`
}
type ReleaseManifest ¶
type ReleaseManifest struct {
Schema string `json:"$schema"`
SchemaVersion string `json:"schema_version"`
ProductName string `json:"product_name"`
AppVersion string `json:"app_version"`
GitCommit string `json:"git_commit"`
BuildDate string `json:"build_date"`
Binaries []ReleaseBinary `json:"binaries"`
ChecksumsFile AssetReference `json:"checksums_file"`
OCIImages []OCIImageMetadata `json:"oci_images"`
Chart ChartMetadata `json:"chart"`
CompatibilityManifest AssetReference `json:"compatibility_manifest"`
DefaultConfigPacks []DefaultConfigPackMetadata `json:"default_config_packs"`
}
func GenerateReleaseManifest ¶
func GenerateReleaseManifest(opts ReleaseManifestOptions) (ReleaseManifest, error)
func (ReleaseManifest) Validate ¶
func (m ReleaseManifest) Validate() error
Click to show internal directories.
Click to hide internal directories.