Documentation ¶
Index ¶
- Constants
- func AddToScheme(typ string, p interface{})
- type BundleObject
- type Channel
- type File
- type GVK
- type GVKRequired
- type MatchMissingError
- type Package
- type PackageRequired
- type ParseError
- type Properties
- type Property
- func Build(p interface{}) (*Property, error)
- func Deduplicate(in []Property) []Property
- func MustBuild(p interface{}) Property
- func MustBuildBundleObjectData(data []byte) Property
- func MustBuildBundleObjectRef(ref string) Property
- func MustBuildChannel(name, replaces string) Property
- func MustBuildGVK(group, version, kind string) Property
- func MustBuildGVKRequired(group, version, kind string) Property
- func MustBuildPackage(name, version string) Property
- func MustBuildPackageRequired(name, versionRange string) Property
- func MustBuildSkipRange(skipRange string) Property
- func MustBuildSkips(skips string) Property
- type SkipRange
- type Skips
Constants ¶
View Source
const ( TypePackage = "olm.package" TypePackageRequired = "olm.package.required" TypeChannel = "olm.channel" TypeGVK = "olm.gvk" TypeGVKRequired = "olm.gvk.required" TypeSkips = "olm.skips" TypeSkipRange = "olm.skipRange" TypeBundleObject = "olm.bundle.object" )
Variables ¶
This section is empty.
Functions ¶
func AddToScheme ¶
func AddToScheme(typ string, p interface{})
Types ¶
type BundleObject ¶
type BundleObject struct {
File `json:",inline"`
}
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) MarshalJSON ¶
func (*File) UnmarshalJSON ¶
type GVKRequired ¶
type MatchMissingError ¶
type MatchMissingError struct {
// contains filtered or unexported fields
}
func (MatchMissingError) Error ¶
func (e MatchMissingError) Error() string
type PackageRequired ¶
type ParseError ¶
func (ParseError) Error ¶
func (e ParseError) Error() string
type Properties ¶
type Properties struct { Packages []Package PackagesRequired []PackageRequired Channels []Channel GVKs []GVK GVKsRequired []GVKRequired Skips []Skips SkipRanges []SkipRange BundleObjects []BundleObject Others []Property }
func Parse ¶
func Parse(in []Property) (*Properties, error)
type Property ¶
type Property struct { Type string `json:"type"` Value json.RawMessage `json:"value"` }
func Deduplicate ¶
func MustBuildChannel ¶
func MustBuildGVK ¶
func MustBuildGVKRequired ¶
func MustBuildPackage ¶
func MustBuildSkipRange ¶
func MustBuildSkips ¶
Click to show internal directories.
Click to hide internal directories.