Documentation
¶
Index ¶
- func NamespaceBlacklistFieldSelector(blacklistedNamespaces []string) string
- func Prefix(l []string, p string) []string
- type API
- func (k *API) CronJobs(namespace string) (*v1.CronJobList, error)
- func (k *API) DaemonSets(namespace string) (*v1.DaemonSetList, error)
- func (k *API) Deployments(namespace string) (*v1.DeploymentList, error)
- func (k *API) Namespaces(blacklistedNamespaces []string) (*v1.NamespaceList, error)
- func (k *API) Nodes() (*corev1.NodeList, error)
- func (k *API) NodesByName(nodeNames *set.String) (*[]corev1.Node, error)
- func (k *API) Services(namespace string) (*corev1.ServiceList, error)
- func (k *API) StatefulSets(namespace string) (*v1.StatefulSetList, error)
- type GetKubernetesAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamespaceBlacklistFieldSelector ¶
NamespaceBlacklistFieldSelector builds a Field Selector string to filter the response to not include namespaces that belong to the blacklisted namespaces
Types ¶
type API ¶
type API struct {
Client kubernetes.Interface
}
API is an optionated facade for the Kubernetes api
func (*API) CronJobs ¶
func (k *API) CronJobs(namespace string) (*v1.CronJobList, error)
Cronjobs gets the list of cronjobs in a namespace
func (*API) DaemonSets ¶
func (k *API) DaemonSets(namespace string) (*v1.DaemonSetList, error)
DaemonSets gets the list of daemonSets in a namespace
func (*API) Deployments ¶
func (k *API) Deployments(namespace string) (*v1.DeploymentList, error)
Deployments gets the list of deployments in a namespace
func (*API) Namespaces ¶
func (k *API) Namespaces(blacklistedNamespaces []string) (*v1.NamespaceList, error)
Namespaces gets the list of blacklisted namespaces
func (*API) NodesByName ¶
NodesByName returns a list of nodes for the given node names
func (*API) Services ¶
func (k *API) Services(namespace string) (*corev1.ServiceList, error)
Services gets the list of services in a namespace
func (*API) StatefulSets ¶
func (k *API) StatefulSets(namespace string) (*v1.StatefulSetList, error)
Cronjobs gets the list of cronjobs in a namespace
Click to show internal directories.
Click to hide internal directories.