{"modulePath":"git.openstack.org/openstack/stackube","version":"v0.0.0-20190419195041-8023bdc86440","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package service\n\n## Types\n\n```go\ntype ServiceController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewServiceController(kubeClient kubernetes.Interface,\n\tosClient openstack.Interface) (*ServiceController, error)\n```\nNewServiceController returns a new service controller to keep openstack lbaas resources (load balancers) in sync with the registry.\n\n```go\nfunc (s *ServiceController) Run(stopCh \u003c-chan struct{}) error\n```\nRun starts a background goroutine that watches for changes to services that have (or had) LoadBalancers=true and ensures that they have load balancers created and deleted appropriately. serviceSyncPeriod controls how often we check the cluster's services to ensure that the correct load balancers exist.\n\nIt's an error to call Run() more than once for a given ServiceController object.\n\n","path":"git.openstack.org/openstack/stackube/pkg/service-controller","name":"service","synopsis":"","isRedistributable":true}
