Documentation ¶
Index ¶
- func DurationFromProto(p *types.Duration) (time.Duration, error)
- func DurationProto(d time.Duration) *types.Duration
- func GetHostForUpstream(us *gloov1.Upstream) (string, error)
- func GetHostsForUpstream(us *gloov1.Upstream) ([]string, error)
- func GetLabelsForUpstream(us *gloov1.Upstream) map[string]string
- func GetNamespaceForUpstream(us *gloov1.Upstream) string
- func GetPortForUpstream(us *gloov1.Upstream) (uint32, error)
- func PodsForSelector(selector *v1.PodSelector, upstreams gloov1.UpstreamList, ...) (customkube.PodList, error)
- func PodsForUpstreams(upstreams gloov1.UpstreamList, allPods customkube.PodList) (customkube.PodList, error)
- func SanitizeName(name string) string
- func SubsetName(labels map[string]string) string
- func UpstreamsForSelector(selector *v1.PodSelector, allUpstreams gloov1.UpstreamList) (gloov1.UpstreamList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationFromProto ¶
DurationFromProto converts a Duration to a time.Duration. DurationFromProto returns an error if the Duration is invalid or is too large to be represented in a time.Duration.
func DurationProto ¶
DurationProto converts a time.Duration to a Duration.
func GetNamespaceForUpstream ¶
func PodsForSelector ¶
func PodsForSelector(selector *v1.PodSelector, upstreams gloov1.UpstreamList, allPods customkube.PodList) (customkube.PodList, error)
func PodsForUpstreams ¶
func PodsForUpstreams(upstreams gloov1.UpstreamList, allPods customkube.PodList) (customkube.PodList, error)
func SanitizeName ¶
func SubsetName ¶
func UpstreamsForSelector ¶
func UpstreamsForSelector(selector *v1.PodSelector, allUpstreams gloov1.UpstreamList) (gloov1.UpstreamList, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.