{"modulePath":"github.com/elotl/node-cli","version":"v0.1.3-elotl1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package manager\n\n## Types\n\n```go\ntype ResourceManager struct {\n\t// contains filtered or unexported fields\n}\n```\nResourceManager acts as a passthrough to a cache (lister) for pods assigned to the current node. It is also a passthrough to a cache (lister) for Kubernetes secrets and config maps.\n\n```go\nfunc NewResourceManager(podLister corev1listers.PodLister, secretLister corev1listers.SecretLister, configMapLister corev1listers.ConfigMapLister, serviceLister corev1listers.ServiceLister) (*ResourceManager, error)\n```\nNewResourceManager returns a ResourceManager with the internal maps initialized.\n\n```go\nfunc (rm *ResourceManager) GetConfigMap(name, namespace string) (*v1.ConfigMap, error)\n```\nGetConfigMap retrieves the specified config map from the cache.\n\n```go\nfunc (rm *ResourceManager) GetPods() []*v1.Pod\n```\nGetPods returns a list of all known pods assigned to this virtual node.\n\n```go\nfunc (rm *ResourceManager) GetSecret(name, namespace string) (*v1.Secret, error)\n```\nGetSecret retrieves the specified secret from Kubernetes.\n\n```go\nfunc (rm *ResourceManager) ListServices() ([]*v1.Service, error)\n```\nListServices retrieves the list of services from Kubernetes.\n\n","path":"github.com/elotl/node-cli/manager","name":"manager","synopsis":"","isRedistributable":true}
