Documentation ¶
Index ¶
- Constants
- Variables
- func ListAll(store cache.Store, selector labels.Selector, appendFn AppendFunc) error
- func ListAllByNamespace(indexer cache.Indexer, namespace string, selector labels.Selector, ...) error
- func NewTaskQueue(syncFn func(string) error) *taskQueue
- type AppendFunc
- type LoadBalancerController
- type NodeConditionPredicate
- type Rule
- func (s Rule) Delete(items ...slb.Rule)
- func (s Rule) Difference(s2 Rule) Rule
- func (s1 Rule) Equal(s2 Rule) bool
- func (s Rule) Has(item slb.Rule) bool
- func (s Rule) HasAll(items ...slb.Rule) bool
- func (s Rule) HasAny(items ...slb.Rule) bool
- func (s Rule) Insert(items ...slb.Rule)
- func (s1 Rule) Intersection(s2 Rule) Rule
- func (s1 Rule) IsSuperset(s2 Rule) bool
- func (s Rule) Len() int
- func (s Rule) List() []slb.Rule
- func (s Rule) PopAny() (slb.Rule, bool)
- func (s1 Rule) Union(s2 Rule) Rule
- func (s Rule) UnsortedList() []slb.Rule
- type StoreToIngressLister
- type StoreToNodeLister
- type StoreToPodLister
- type StoreToServiceLister
Constants ¶
const (
NamespaceIndex string = "namespace"
)
Variables ¶
var ( // DefaultClusterUID is the uid to use for clusters resources created by an // L7 controller created without specifying the --cluster-uid flag. DefaultClusterUID = "" )
Functions ¶
func ListAllByNamespace ¶
func NewTaskQueue ¶
NewTaskQueue creates a new task queue with the given sync function. The sync function is called for every element inserted into the queue.
Types ¶
type AppendFunc ¶
type AppendFunc func(interface{})
AppendFunc is used to add a matching item to whatever list the caller is using
type LoadBalancerController ¶
type LoadBalancerController struct {
// contains filtered or unexported fields
}
func NewLoadBalancerController ¶
func NewLoadBalancerController(aliyunClient *client.AliyunClient, clientset *kubernetes.Clientset, loadBalancerName, loadBalancerID, loadBalancerIP string) *LoadBalancerController
func (*LoadBalancerController) Run ¶
func (lbc *LoadBalancerController) Run(stopCh <-chan struct{})
type NodeConditionPredicate ¶
NodeConditionPredicate is a function that indicates whether the given node's conditions meet some set of criteria defined by the function.
type Rule ¶
sets.Rule is a set of slb.Rule, implemented via map[slb.Rule]struct{} for minimal memory consumption.
func RuleKeySet ¶
func RuleKeySet(theMap interface{}) Rule
RuleKeySet creates a Rule from a keys of a map[string](? extends interface{}). If the value passed in is not actually a map, this will panic.
func (Rule) Difference ¶
Difference returns a set of objects that are not in s2 For example: s1 = {a1, a2, a3} s2 = {a1, a2, a4, a5} s1.Difference(s2) = {a3} s2.Difference(s1) = {a4, a5}
func (Rule) Equal ¶
Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)
func (Rule) Intersection ¶
Intersection returns a new set which includes the item in BOTH s1 and s2 For example: s1 = {a1, a2} s2 = {a2, a3} s1.Intersection(s2) = {a2}
func (Rule) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (Rule) Union ¶
Union returns a new set which includes items in either s1 or s2. For example: s1 = {a1, a2} s2 = {a3, a4} s1.Union(s2) = {a1, a2, a3, a4} s2.Union(s1) = {a1, a2, a3, a4}
func (Rule) UnsortedList ¶
UnsortedList returns the slice with contents in random order.
type StoreToIngressLister ¶
func (*StoreToIngressLister) GetServiceIngress ¶
func (s *StoreToIngressLister) GetServiceIngress(svc *v1.Service) (ings []v1beta1.Ingress, err error)
GetServiceIngress gets all the Ingress' that have rules pointing to a service. Note that this ignores services without the right nodePorts.
func (*StoreToIngressLister) List ¶
func (s *StoreToIngressLister) List() (ing v1beta1.IngressList, err error)
List lists all Ingress' in the store.
type StoreToNodeLister ¶
StoreToNodeLister makes a Store have the List method of the client.NodeInterface The Store must contain (only) Nodes.
func (*StoreToNodeLister) List ¶
func (s *StoreToNodeLister) List() (machines v1.NodeList, err error)
func (*StoreToNodeLister) NodeCondition ¶
func (s *StoreToNodeLister) NodeCondition(predicate NodeConditionPredicate) storeToNodeConditionLister
NodeCondition returns a storeToNodeConditionLister
type StoreToPodLister ¶
StoreToPodLister helps list pods
func (*StoreToPodLister) Pods ¶
func (s *StoreToPodLister) Pods(namespace string) storePodsNamespacer
type StoreToServiceLister ¶
StoreToServiceLister helps list services
func (*StoreToServiceLister) GetPodServices ¶
TODO: Move this back to scheduler as a helper function that takes a Store, rather than a method of StoreToServiceLister.
func (*StoreToServiceLister) Services ¶
func (s *StoreToServiceLister) Services(namespace string) storeServicesNamespacer