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 HostsForUpstreams(upstreams gloov1.UpstreamList) ([]string, error)
- func LabelsAndPortsByHost(upstreams gloov1.UpstreamList) (map[string][]LabelsPortTuple, error)
- func PodsForSelector(selector *v1.PodSelector, upstreams gloov1.UpstreamList, ...) (kubernetes.PodList, error)
- func PodsForUpstreams(upstreams gloov1.UpstreamList, allPods kubernetes.PodList) kubernetes.PodList
- func RuleAppliesToDestination(destinationHost string, destinationSelector *v1.PodSelector, ...) (bool, error)
- func SubsetName(labels map[string]string) string
- func UpstreamsForSelector(selector *v1.PodSelector, allUpstreams gloov1.UpstreamList) (gloov1.UpstreamList, error)
- func ValidateMeshGroups(meshes v1.MeshList, meshGroups v1.MeshGroupList, ...)
- type LabelsPortTuple
- type RuleSet
- type RulesByMatcher
- type RulesByMesh
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 HostsForUpstreams ¶ added in v0.3.11
func HostsForUpstreams(upstreams gloov1.UpstreamList) ([]string, error)
func LabelsAndPortsByHost ¶ added in v0.3.8
func LabelsAndPortsByHost(upstreams gloov1.UpstreamList) (map[string][]LabelsPortTuple, error)
func PodsForSelector ¶
func PodsForSelector(selector *v1.PodSelector, upstreams gloov1.UpstreamList, allPods kubernetes.PodList) (kubernetes.PodList, error)
func PodsForUpstreams ¶
func PodsForUpstreams(upstreams gloov1.UpstreamList, allPods kubernetes.PodList) kubernetes.PodList
func RuleAppliesToDestination ¶ added in v0.3.8
func RuleAppliesToDestination(destinationHost string, destinationSelector *v1.PodSelector, upstreams gloov1.UpstreamList) (bool, error)
func SubsetName ¶
func UpstreamsForSelector ¶
func UpstreamsForSelector(selector *v1.PodSelector, allUpstreams gloov1.UpstreamList) (gloov1.UpstreamList, error)
func ValidateMeshGroups ¶ added in v0.3.8
func ValidateMeshGroups(meshes v1.MeshList, meshGroups v1.MeshGroupList, resourceErrs reporter.ResourceErrors)
Types ¶
type LabelsPortTuple ¶ added in v0.3.8
type RuleSet ¶ added in v0.3.8
type RuleSet struct { Routing v1.RoutingRuleList Security v1.SecurityRuleList }
type RulesByMatcher ¶ added in v0.3.8
type RulesByMatcher struct {
// contains filtered or unexported fields
}
we create a routing rule for each unique matcher
func NewRulesByMatcher ¶ added in v0.3.8
func NewRulesByMatcher(rules v1.RoutingRuleList) RulesByMatcher
func (RulesByMatcher) Sort ¶ added in v0.3.8
func (rbm RulesByMatcher) Sort() []v1.RoutingRuleList
type RulesByMesh ¶ added in v0.3.8
func GroupRulesByMesh ¶ added in v0.3.8
func GroupRulesByMesh( routingRules v1.RoutingRuleList, securityRules v1.SecurityRuleList, meshes v1.MeshList, meshGroups v1.MeshGroupList, resourceErrs reporter.ResourceErrors) RulesByMesh
Click to show internal directories.
Click to hide internal directories.