Documentation ¶
Index ¶
- Variables
- func ClosureExplode(opts *output.Options, e interface{}) []interface{}
- func Compare(a, b interface{}) int
- func Elem(e interface{}) ocm.ComponentVersionAccess
- func NewTypeHandler(octx clictx.OCM, session ocm.Session, repobase ocm.Repository, opts ...Option) utils.TypeHandler
- type Manifest
- type Object
- type Objects
- type Option
- type Options
- type TypeHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var Sort = processing.Sort(Compare)
Sort is a processing chain sorting original objects provided by type handler.
Functions ¶
func ClosureExplode ¶
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 (*Object) IsNode ¶
func (o *Object) IsNode() *common.NameVersion
type Option ¶
type Option interface {
ApplyToCompHandler(handler *TypeHandler)
}
func LatestOnly ¶
func Repository ¶ added in v0.3.0
func Repository(r ocm.Repository) Option
func Resolver ¶ added in v0.3.0
func Resolver(r ocm.ComponentVersionResolver) Option
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) Close ¶
func (h *TypeHandler) Close() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.