provider

package
v0.0.0-...-ca10516 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

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

View Source
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 GetHelper

func GetHelper() *Helper

GetHelper returns the singleton helper instance

func (*Helper) GetDefaultProvider

func (h *Helper) GetDefaultProvider() Provider

GetDefaultProvider returns the default ingress claim provider instance

func (*Helper) GetProvider

func (h *Helper) GetProvider(ingress *v1beta1.Ingress) Provider

GetProvider returns the provider instance corresponding to the given ingress resource

func (*Helper) GetProviderByName

func (h *Helper) GetProviderByName(name string) Provider

GetProviderByName returns a handle to the provider instance by the provider name

func (*Helper) SetIndexer

func (h *Helper) SetIndexer(indexer cache.Indexer)

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

Jump to

Keyboard shortcuts

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