duck

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainToURL

func DomainToURL(domain string) string

DomainToURL converts a domain into an HTTP URL.

func GetClusterDomainName

func GetClusterDomainName() string

GetClusterDomainName returns cluster's domain name or an error Closes issue: https://github.com/knative/eventing/issues/714

func GetSinkURI

func GetSinkURI(ctx context.Context, dynamicClient dynamic.Interface, sink *corev1.ObjectReference, namespace string) (string, error)

GetSinkURI retrieves the sink URI from the object referenced by the given ObjectReference.

func ServiceHostName

func ServiceHostName(serviceName, namespace string) string

ServiceHostName creates the hostname for a Kubernetes Service.

func ToDNS1123Subdomain

func ToDNS1123Subdomain(name string) string

Converts 'name' to a valid DNS1123 subdomain, required for object names in K8s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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