Documentation ¶
Index ¶
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 NewTypeHandler ¶
func NewTypeHandler(octx clictx.OCM, session ocm.Session, repobase ocm.Repository, opts ...Option) utils.TypeHandler
Types ¶
type Object ¶
func (*Object) AsManifest ¶
func (o *Object) AsManifest() interface{}
type Option ¶
type Option interface {
ApplyToHandler(handler *TypeHandler)
}
func LatestOnly ¶
func Repository ¶
func Repository(r ocm.Repository) Option
func Resolver ¶
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) ApplyToHandler ¶
func (o Options) ApplyToHandler(handler *TypeHandler)
type TypeHandler ¶
type TypeHandler struct {
// contains filtered or unexported fields
}
func (*TypeHandler) Close ¶
func (h *TypeHandler) Close() error
Click to show internal directories.
Click to hide internal directories.