entities

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypePlain    = "plain+v0"
	MediaTypeRegistry = "registry+v1"
)
View Source
const PropertyBundleMediaType = "olm.bundle.mediatype"

TODO: Is this the right place for these? ----

View Source
const PropertyBundlePath = "olm.bundle.path"

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleEntity

type BundleEntity struct {
	*input.Entity
	// contains filtered or unexported fields
}

func NewBundleEntity

func NewBundleEntity(entity *input.Entity) *BundleEntity

func (*BundleEntity) BundlePath

func (b *BundleEntity) BundlePath() (string, error)

func (*BundleEntity) ChannelName

func (b *BundleEntity) ChannelName() (string, error)

func (*BundleEntity) ChannelProperties

func (b *BundleEntity) ChannelProperties() (*ChannelProperties, error)

func (*BundleEntity) MediaType

func (b *BundleEntity) MediaType() (string, error)

func (*BundleEntity) PackageName

func (b *BundleEntity) PackageName() (string, error)

func (*BundleEntity) ProvidedGVKs

func (b *BundleEntity) ProvidedGVKs() ([]GVK, error)

func (*BundleEntity) RequiredGVKs

func (b *BundleEntity) RequiredGVKs() ([]GVKRequired, error)

func (*BundleEntity) RequiredPackages

func (b *BundleEntity) RequiredPackages() ([]PackageRequired, error)

func (*BundleEntity) Version

func (b *BundleEntity) Version() (*semver.Version, error)

type ChannelProperties

type ChannelProperties struct {
	property.Channel
	Replaces  string   `json:"replaces,omitempty"`
	Skips     []string `json:"skips,omitempty"`
	SkipRange string   `json:"skipRange,omitempty"`
}

type GVK

type GVK property.GVK

func (GVK) String

func (g GVK) String() string

type GVKRequired

type GVKRequired property.GVKRequired

func (GVKRequired) AsGVK

func (g GVKRequired) AsGVK() GVK

func (GVKRequired) String

func (g GVKRequired) String() string

type MediaType

type MediaType string

type PackageRequired

type PackageRequired struct {
	property.PackageRequired
	SemverRange *semver.Range `json:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL