Documentation ¶
Overview ¶
Copyright 2017 Yahoo Holdings Inc. Licensed under the terms of the 3-Clause BSD License.
Copyright 2017 Yahoo Holdings Inc. Licensed under the terms of the 3-Clause BSD License.
Copyright 2017 Yahoo Holdings Inc. Licensed under the terms of the 3-Clause BSD License.
Copyright 2017 Yahoo Holdings Inc. Licensed under the terms of the 3-Clause BSD License.
Index ¶
Constants ¶
const (
Istio = "istio"
)
Variables ¶
This section is empty.
Functions ¶
func NewIstioProvider ¶
func NewIstioProvider() *istio
NewIstioProvider returns a new istio provider ref that implements Provider interface
Types ¶
type Annotation ¶
type Annotation string
const ( ATS = "ATS" // ATS the default domain of an ingress resource DefaultDomain Annotation = "default_domain" // ATS domain aliases associated with the ingress resource Aliases Annotation = "aliases" // ATS Ports associated with the ingress resource Ports Annotation = "ports" )
const ( // IngressClass is the annotation on ingress resources for the class of controllers responsible for it IngressClass Annotation = "kubernetes.io/ingress.class" )
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper class that provides common validation funcs and a handle to ingress claim provider implementations
func (*Helper) GetDefaultProvider ¶
GetDefaultProvider returns the default ingress claim provider instance
func (*Helper) GetProvider ¶
GetProvider returns the provider instance corresponding to the given ingress resource
func (*Helper) GetProviderByName ¶
GetProviderByName returns a handle to the provider instance by the provider name
func (*Helper) SetIndexer ¶
SetIndexer allows to set the cache indexer to be used for lookups by helper funcs This is not done in `init` to allow lazy set once the cache indexer is configured
type Provider ¶
type Provider interface { Name() string ServesIngress(ingress *v1beta1.Ingress) bool GetDomains(ingress *v1beta1.Ingress) []string DomainsIndexFunc(obj interface{}) ([]string, error) ValidateSemantics(ingress *v1beta1.Ingress) error ValidateDomainClaims(ingress *v1beta1.Ingress) error }
func NewATSProvider ¶
func NewATSProvider() Provider
NewATSProvider returns a new ATS provider ref that implements Provider interface