Documentation ¶
Overview ¶
Package resolver implements resolvers for resolving k8s references and URIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceHostName ¶
ServiceHostName resolves the hostname for a Kubernetes Service.
Types ¶
type URIResolver ¶
type URIResolver struct {
// contains filtered or unexported fields
}
URIResolver resolves Destinations and ObjectReferences into a URI.
func NewURIResolver ¶
func NewURIResolver(ctx context.Context, callback func(types.NamespacedName)) *URIResolver
NewURIResolver constructs a new URIResolver with context and a callback passed to the URIResolver's tracker.
func (*URIResolver) URIFromDestination ¶
func (r *URIResolver) URIFromDestination(dest apisv1alpha1.Destination, parent interface{}) (string, error)
URIFromDestination resolves a Destination into a URI string.
func (*URIResolver) URIFromObjectReference ¶
func (r *URIResolver) URIFromObjectReference(ref *corev1.ObjectReference, parent interface{}) (*apis.URL, error)
URIFromObjectReference resolves an ObjectReference to a URI string.
Click to show internal directories.
Click to hide internal directories.