comphdlr

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Sort is a processing chain sorting original objects provided by type handler.

Functions

func ClosureExplode

func ClosureExplode(opts *output.Options, e interface{}) []interface{}

func Compare

func Compare(a, b interface{}) int

func Elem

func Elem(e interface{}) ocm.ComponentVersionAccess

func NewTypeHandler

func NewTypeHandler(octx clictx.OCM, session ocm.Session, repobase ocm.Repository, opts ...Option) utils.TypeHandler

Types

type Manifest

type Manifest struct {
	History common.History                `json:"context"`
	Element *compdesc.ComponentDescriptor `json:"element"`
}

type Object

type Object struct {
	History  common.History
	Identity metav1.Identity

	Spec       ocm.RefSpec
	Repository ocm.Repository
	// Component        ocm.ComponentAccess
	ComponentVersion ocm.ComponentVersionAccess
}

func (*Object) AsManifest

func (o *Object) AsManifest() interface{}

func (*Object) GetHistory

func (o *Object) GetHistory() common.History

func (*Object) IsNode

func (o *Object) IsNode() *common.NameVersion

type Objects

type Objects []*Object

func Evaluate added in v0.4.1

func Evaluate(octx clictx.OCM, session ocm.Session, repobase ocm.Repository, compspecs []string, oopts *output.Options, opts ...Option) (Objects, error)

func ObjectSlice

func ObjectSlice(s data.Iterable) Objects

func (Objects) Get

func (this Objects) Get(i int) interface{}

func (Objects) Iterator

func (this Objects) Iterator() data.Iterator

func (Objects) Len

func (this Objects) Len() int

type Option

type Option interface {
	ApplyToCompHandler(handler *TypeHandler)
}

func LatestOnly

func LatestOnly(b ...bool) Option

func Repository added in v0.3.0

func Repository(r ocm.Repository) Option

func Resolver added in v0.3.0

func WithVersionConstraints

func WithVersionConstraints(c []*semver.Constraints) Option

type Options

type Options []Option

func OptionsFor

func OptionsFor(o options.OptionSetProvider) Options

func (Options) ApplyToCompHandler

func (o Options) ApplyToCompHandler(handler *TypeHandler)

type TypeHandler

type TypeHandler struct {
	// contains filtered or unexported fields
}

func (*TypeHandler) All

func (h *TypeHandler) All() ([]output.Object, error)

func (*TypeHandler) Close

func (h *TypeHandler) Close() error

func (*TypeHandler) Get

func (h *TypeHandler) Get(elemspec utils.ElemSpec) ([]output.Object, error)

Jump to

Keyboard shortcuts

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