Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Add used to record additions in a sync pool. Add = iota // Remove used to record removals from a sync pool. Remove // Sync used to record syncs of a sync pool. Sync // Get used to record Get from a sync pool. Get // Create used to recrod creations in a sync pool. Create // Update used to record updates in a sync pool. Update // Delete used to record deltions from a sync pool. Delete // AddInstances used to record a call to AddInstances. AddInstances // RemoveInstances used to record a call to RemoveInstances. RemoveInstances // DefaultBackendKey is the key used to transmit the defaultBackend through // a urlmap. It's not a valid subdomain, and it is a catch all path. // TODO: Find a better way to transmit this, once we've decided on default // backend semantics (i.e do we want a default per host, per lb etc). DefaultBackendKey = "DefaultBackend" // K8sAnnotationPrefix is the prefix used in annotations used to record // debug information in the Ingress annotations. K8sAnnotationPrefix = "ingress.kubernetes.io" )
Variables ¶
This section is empty.
Functions ¶
func CompareLinks ¶
CompareLinks returns true if the 2 self links are equal.
func IsHTTPErrorCode ¶
IsHTTPErrorCode checks if the given error matches the given HTTP Error code. For this to work the error must be a googleapi Error.
Types ¶
type FakeIngressRuleValueMap ¶
FakeIngressRuleValueMap is a convenience type used by multiple submodules that share the same testing methods.
type GCEURLMap ¶
type GCEURLMap map[string]map[string]*compute.BackendService
GCEURLMap is a nested map of hostname->path regex->backend
func (GCEURLMap) GetDefaultBackend ¶
func (g GCEURLMap) GetDefaultBackend() *compute.BackendService
GetDefaultBackend performs a destructive read and returns the default backend of the urlmap.
func (GCEURLMap) PutDefaultBackend ¶
func (g GCEURLMap) PutDefaultBackend(d *compute.BackendService)
PutDefaultBackend performs a destructive write replacing the default backend of the url map with the given backend.
type Namer ¶
type Namer struct {
ClusterName string
}
Namer handles centralized naming for the cluster.
Click to show internal directories.
Click to hide internal directories.