Documentation ¶
Index ¶
- type ResourceProvider
- func CreateResourceProvider(directory string, namespace string) (*ResourceProvider, error)
- func CreateResourceProviderFromAPI(kube kubernetes.Interface, clusterName string, namespace string) (*ResourceProvider, error)
- func CreateResourceProviderFromCluster(namespace string) (*ResourceProvider, error)
- func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceProvider ¶
type ResourceProvider struct { ServerVersion string CreationTime time.Time SourceName string SourceType string Nodes []corev1.Node Deployments []appsv1.Deployment StatefulSets []appsv1.StatefulSet DaemonSets []appsv1.DaemonSet Jobs []batchv1.Job CronJobs []batchv1beta1.CronJob ReplicationControllers []corev1.ReplicationController Namespaces []corev1.Namespace Pods []corev1.Pod }
ResourceProvider contains k8s resources to be audited
func CreateResourceProvider ¶
func CreateResourceProvider(directory string, namespace string) (*ResourceProvider, error)
CreateResourceProvider returns a new ResourceProvider object to interact with k8s resources
func CreateResourceProviderFromAPI ¶
func CreateResourceProviderFromAPI(kube kubernetes.Interface, clusterName string, namespace string) (*ResourceProvider, error)
CreateResourceProviderFromAPI creates a new ResourceProvider from an existing k8s interface
func CreateResourceProviderFromCluster ¶
func CreateResourceProviderFromCluster(namespace string) (*ResourceProvider, error)
CreateResourceProviderFromCluster creates a new ResourceProvider using live data from a cluster
func CreateResourceProviderFromPath ¶
func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error)
CreateResourceProviderFromPath returns a new ResourceProvider using the YAML files in a directory
Click to show internal directories.
Click to hide internal directories.