resolvers

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KIND_COMPONENTVERSION = internal.KIND_COMPONENTVERSION
	KIND_COMPONENT        = internal.KIND_COMPONENT
	KIND_OCM_REFERENCE    = internal.KIND_OCM_REFERENCE
)

Variables

This section is empty.

Functions

func ListComponentVersions

func ListComponentVersions(comp string, r ComponentResolver) ([]string, error)

Types

type ComponentResolver

type ComponentResolver = internal.ComponentResolver

func ComponentResolverForRepository

func ComponentResolverForRepository(repo Repository) ComponentResolver

func NewCompoundComponentResolver

func NewCompoundComponentResolver(res ...ComponentResolver) ComponentResolver

type ComponentVersionAccess

type ComponentVersionAccess = internal.ComponentVersionAccess

func LookupComponentVersion

func LookupComponentVersion(comp, vers string, r ComponentResolver) (ComponentVersionAccess, error)

type ComponentVersionResolver

type ComponentVersionResolver = internal.ComponentVersionResolver

func ComponentVersionResolverForComponentResolver

func ComponentVersionResolverForComponentResolver(r ComponentResolver) ComponentVersionResolver

type CompoundComponentResolver

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

func (*CompoundComponentResolver) AddResolver

func (c *CompoundComponentResolver) AddResolver(r ComponentResolver)

func (*CompoundComponentResolver) LookupComponentProviders

func (c *CompoundComponentResolver) LookupComponentProviders(name string) []ResolvedComponentProvider

type CompoundResolver

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

func (*CompoundResolver) AddResolver

func (c *CompoundResolver) AddResolver(r ComponentVersionResolver)

func (*CompoundResolver) LookupComponentProviders

func (c *CompoundResolver) LookupComponentProviders(name string) []ResolvedComponentProvider

func (*CompoundResolver) LookupComponentVersion

func (c *CompoundResolver) LookupComponentVersion(name string, version string) (ComponentVersionAccess, error)

type ContextProvider

type ContextProvider = internal.ContextProvider

type DedicatedResolver

type DedicatedResolver []ComponentVersionAccess

func (DedicatedResolver) LookupComponent

func (DedicatedResolver) LookupComponentProviders

func (d DedicatedResolver) LookupComponentProviders(name string) []ResolvedComponentProvider

func (DedicatedResolver) LookupComponentVersion

func (d DedicatedResolver) LookupComponentVersion(name string, version string) (ComponentVersionAccess, error)

func (DedicatedResolver) Repository

func (d DedicatedResolver) Repository() (Repository, error)

type MatchingResolver

type MatchingResolver interface {
	ComponentVersionResolver
	ContextProvider

	AddRule(prefix string, spec RepositorySpec, prio ...int)
	Finalize() error
}

func NewMatchingResolver

func NewMatchingResolver(ctx ContextProvider, rules ...ResolverRule) MatchingResolver

type Repository

type Repository = internal.Repository

type RepositorySpec

type RepositorySpec = internal.RepositorySpec

type ResolvedComponentProvider

type ResolvedComponentProvider = internal.ResolvedComponentProvider

type ResolvedComponentVersionProvider

type ResolvedComponentVersionProvider = internal.ResolvedComponentVersionProvider

type ResolverRule

type ResolverRule = internal.ResolverRule

func NewResolverRule

func NewResolverRule(prefix string, spec RepositorySpec, prio ...int) ResolverRule

Jump to

Keyboard shortcuts

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