Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConfigMapName = "config-kreference-mapping"
)
Variables ¶
This section is empty.
Functions ¶
func NewURIResolver ¶
func NewURIResolver(ctx context.Context, cmw configmap.Watcher, t tracker.Interface) *resolver.URIResolver
NewURIResolver constructs a new URIResolver with context and a callback for a given listableType (Listable) passed to the URIResolver's tracker.
Types ¶
type KReferenceResolver ¶ added in v0.38.0
type KReferenceResolver struct {
// contains filtered or unexported fields
}
func NewKReferenceResolverFromTracker ¶ added in v0.38.0
func NewKReferenceResolverFromTracker(ctx context.Context, t tracker.Interface) *KReferenceResolver
func (*KReferenceResolver) Resolve ¶ added in v0.38.0
func (r *KReferenceResolver) Resolve(ctx context.Context, ref *v1.KReference, parent interface{}) (*v1.KReference, error)
type MappingResolver ¶
type MappingResolver struct {
// contains filtered or unexported fields
}
func NewMappingResolver ¶
func (*MappingResolver) MappingURIFromObjectReference ¶
func (mr *MappingResolver) MappingURIFromObjectReference(ctx context.Context, ref *corev1.ObjectReference) (bool, *apis.URL, error)
Click to show internal directories.
Click to hide internal directories.