vershdlr

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 16 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 Compare

func Compare(a, b interface{}) int

func NewTypeHandler

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

Types

type Manifest

type Manifest struct {
	Component string `json:"component"`
	Version   string `json:"version"`
	Message   string `json:"error,omitempty"`
}

type Object

type Object struct {
	Spec       ocm.RefSpec
	Repository ocm.Repository
	Component  string
	Version    string
}

func Elem

func Elem(e interface{}) *Object

func (*Object) AsManifest

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

type Option

type Option interface {
	ApplyToHandler(handler *TypeHandler)
}

func LatestOnly

func LatestOnly(b ...bool) Option

func Repository

func Repository(r ocm.Repository) Option

func WithVersionConstraints

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

type Options

type Options []Option

func OptionsFor

func OptionsFor(o options.OptionSetProvider) Options

func (Options) ApplyToHandler

func (o Options) ApplyToHandler(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