{"modulePath":"github.com/stackpointcloud/kubernetes","version":"v1.3.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package endpoint\n\nPackage service provides EndpointController implementation to manage and sync service endpoints.\n\nCAUTION: If you update code in this file, you may need to also update code\n\n\tin contrib/mesos/pkg/service/endpoints_controller.go\n\n## Constants\n\n```go\nconst (\n\t// We'll attempt to recompute EVERY service's endpoints at least this\n\t// often. Higher numbers = lower CPU/network load; lower numbers =\n\t// shorter amount of time before a mistaken endpoint is corrected.\n\tFullServiceResyncPeriod = 30 * time.Second\n\n\t// We must avoid syncing service until the pod store has synced. If it hasn't synced, to\n\t// avoid a hot loop, we'll wait this long between checks.\n\tPodStoreSyncedPollPeriod = 100 * time.Millisecond\n\n\t// An annotation on the Service denoting if the endpoints controller should\n\t// go ahead and create endpoints for unready pods. This annotation is\n\t// currently only used by PetSets, where we need the pet to be DNS\n\t// resolvable during initialization. In this situation we create a headless\n\t// service just for the PetSet, and clients shouldn't be using this Service\n\t// for anything so unready endpoints don't matter.\n\tTolerateUnreadyEndpointsAnnotation = \"service.alpha.kubernetes.io/tolerate-unready-endpoints\"\n)\n```\n\n## Types\n\n```go\ntype EndpointController struct {\n\t// contains filtered or unexported fields\n}\n```\nEndpointController manages selector-based service endpoints.\n\n```go\nfunc NewEndpointController(podInformer framework.SharedIndexInformer, client *clientset.Clientset) *EndpointController\n```\nNewEndpointController returns a new \\*EndpointController.\n\n```go\nfunc NewEndpointControllerFromClient(client *clientset.Clientset, resyncPeriod controller.ResyncPeriodFunc) *EndpointController\n```\nNewEndpointControllerFromClient returns a new \\*EndpointController that runs its own informer.\n\n```go\nfunc (e *EndpointController) Run(workers int, stopCh \u003c-chan struct{})\n```\nRuns e; will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.\n\n","path":"github.com/stackpointcloud/kubernetes/pkg/controller/endpoint","name":"endpoint","synopsis":"Package service provides EndpointController implementation to manage and sync service endpoints.","isRedistributable":true}
