Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToModel ¶
func ConvertToModel(cfg DeclarativeConfig) (model.Model, error)
Types ¶
type Bundle ¶
type Bundle struct { Schema string `json:"schema"` Name string `json:"name"` Package string `json:"package"` Image string `json:"image"` Properties []property.Property `json:"properties,omitempty"` RelatedImages []RelatedImage `json:"relatedImages,omitempty"` // These fields are present so that we can continue serving // the GRPC API the way packageserver expects us to in a // backwards-compatible way. These are populated from // any `olm.bundle.object` properties. // // These fields will never be persisted in the bundle blob as // first class fields. CsvJSON string `json:"-"` Objects []string `json:"-"` }
type DeclarativeConfig ¶
func ConvertFromModel ¶
func ConvertFromModel(mpkgs model.Model) DeclarativeConfig
func LoadFS ¶ added in v1.17.4
func LoadFS(root fs.FS) (*DeclarativeConfig, error)
LoadFS loads a declarative config from the provided root FS. LoadFS walks the filesystem from root and uses a gitignore-style filename matcher to skip files that match patterns found in .indexignore files found throughout the filesystem. If LoadFS encounters an error loading or parsing any file, the error will be immedidately returned.
type Meta ¶
type Meta struct { Schema string Package string Blob json.RawMessage }
func (Meta) MarshalJSON ¶
func (*Meta) UnmarshalJSON ¶
type RelatedImage ¶
Click to show internal directories.
Click to hide internal directories.