Documentation ¶
Index ¶
Constants ¶
View Source
const ( KindPod = "Pod" KindJob = "Job" KindCronJob = "CronJob" KindReplicaSet = "ReplicaSet" Deployments = "deployments" ReplicaSets = "replicasets" ReplicationControllers = "replicationcontrollers" StatefulSets = "statefulsets" DaemonSets = "daemonsets" CronJobs = "cronjobs" Services = "services" Jobs = "jobs" Pods = "pods" ConfigMaps = "configmaps" Roles = "roles" RoleBindings = "rolebindings" NetworkPolicys = "networkpolicies" Ingresss = "ingresses" ResourceQuotas = "resourcequotas" LimitRanges = "limitranges" ClusterRoles = "clusterroles" ClusterRoleBindings = "clusterrolebindings" PodSecurityPolicies = "podsecuritypolicies" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { // GetCurrentContext returns local kubernetes current-context GetCurrentContext() string // GetCurrentNamespace returns local kubernetes current namespace GetCurrentNamespace() string // GetDynamicClient returns a dynamic k8s client GetDynamicClient() dynamic.Interface // GetGVRs returns cluster GroupVersionResource to query kubernetes, receives // a boolean to determine if returns namespaced GVRs only or all GVRs GetGVRs(bool) ([]schema.GroupVersionResource, error) // GetGVR returns resource GroupVersionResource to query kubernetes, receives // a string with the resource kind GetGVR(string) (schema.GroupVersionResource, error) }
Cluster interface represents the operations needed to scan a cluster
func GetCluster ¶
GetCluster returns a current configured cluster
Click to show internal directories.
Click to hide internal directories.