Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
Package *Package
Channel *Channel
Name string
Image string
Replaces string
Skips []string
SkipRange string
Properties []property.Property
RelatedImages []RelatedImage
Deprecation *Deprecation
// These fields are present so that we can continue serving
// the GRPC API the way packageserver expects us to in a
// backwards-compatible way.
Objects []string
CsvJSON string
// These fields are used to compare bundles in a diff.
PropertiesP *property.Properties
Version semver.Version
Release semver.Version
}
func (*Bundle) VersionString ¶ added in v1.62.0
type Channel ¶
type Channel struct {
Package *Package
Name string
Bundles map[string]*Bundle
Deprecation *Deprecation
// NOTICE: The field Properties of the type Channel is for internal use only.
// DO NOT use it for any public-facing functionalities.
// This API is in alpha stage and it is subject to change.
Properties []property.Property
}
type Deprecation ¶ added in v1.32.0
type Deprecation struct {
Message string `json:"message"`
}
func (*Deprecation) Validate ¶ added in v1.32.0
func (d *Deprecation) Validate() error
type Package ¶
type RelatedImage ¶
func (RelatedImage) Validate ¶
func (i RelatedImage) Validate() error
type Release ¶ added in v1.68.0
Release represents a pre-release version identifier using period-delimited segments. Each segment follows semver pre-release rules: alphanumerics and hyphens only, no leading zeros in numeric identifiers. A nil Release represents "no release" and serializes to an empty string in JSON. Use nil (not an empty slice) to represent the absence of a release.
func NewRelease ¶ added in v1.68.0
func (Release) Compare ¶ added in v1.68.0
Compare compares two Release instances a non-zero release is always "greater than" a zero-length release otherwise, compares segment by segment using semver pre-release comparison rules
func (Release) MarshalJSON ¶ added in v1.68.0
MarshalJSON implements json.Marshaler for Release. It serializes the Release as a period-delimited string.
func (Release) String ¶ added in v1.68.0
String returns the string representation of the release version.
func (*Release) UnmarshalJSON ¶ added in v1.68.0
UnmarshalJSON implements json.Unmarshaler for Release. It deserializes a period-delimited string into a Release.
type VersionRelease ¶ added in v1.68.0
type VersionRelease struct {
Version semver.Version `json:"version"`
Release Release `json:"release"`
}
VersionRelease combines a semver Version with an optional Release identifier. JSON serialization format:
- Version is serialized using standard semver format
- Release is always included as a string field (empty string if nil)
- Example: {"version":"1.2.3","release":"alpha.1"}
- Example: {"version":"1.2.3","release":""}
func (*VersionRelease) Compare ¶ added in v1.68.0
func (vr *VersionRelease) Compare(other *VersionRelease) int
func (*VersionRelease) KubernetesSafeString ¶ added in v1.68.0
func (vr *VersionRelease) KubernetesSafeString() string
KubernetesSafeString returns the safe string representation of the version release suitable for use as a metadata.name this generation is not round-trippable (i.e. cannot be parsed back into the original VersionRelease)