Documentation ¶
Index ¶
- type BackendInfo
- type GCE
- func (t *GCE) GatherEndpointPorts(svcPorts []backends.ServicePort) []string
- func (t *GCE) GetProbe(port backends.ServicePort) (*api_v1.Probe, error)
- func (t *GCE) GetZoneForNode(name string) (string, error)
- func (t *GCE) ListZones() ([]string, error)
- func (t *GCE) ToNodePorts(ings *extensions.IngressList) []backends.ServicePort
- func (t *GCE) ToURLMap(ing *extensions.Ingress) (utils.GCEURLMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendInfo ¶
type BackendInfo interface { BackendServiceForPort(port int64) (*compute.BackendService, error) DefaultBackendNodePort() *backends.ServicePort }
BackendInfo is an interface to return information about the backends.
type GCE ¶
type GCE struct {
// contains filtered or unexported fields
}
GCE helps with kubernetes -> gce api conversion.
func New ¶
func New(recorders recorderSource, bi BackendInfo, svcLister cache.Indexer, nodeLister cache.Indexer, podLister cache.Indexer, endpointLister cache.Indexer, negEnabled bool) *GCE
New returns a new ControllerContext.
func (*GCE) GatherEndpointPorts ¶
func (t *GCE) GatherEndpointPorts(svcPorts []backends.ServicePort) []string
GatherEndpointPorts returns all ports needed to open NEG endpoints.
func (*GCE) GetZoneForNode ¶
GetZoneForNode returns the zone for a given node by looking up its zone label.
func (*GCE) ToNodePorts ¶
func (t *GCE) ToNodePorts(ings *extensions.IngressList) []backends.ServicePort
ToNodePorts is a helper method over ingressToNodePorts to process a list of ingresses.
Click to show internal directories.
Click to hide internal directories.