Documentation
¶
Index ¶
- type K8sApiReference
- type Kubernetes
- func (k *Kubernetes) AnalyzeCronJob(r common.Request) (string, error)
- func (k *Kubernetes) AnalyzeDeployment(ctx context.Context, namespace string) (string, error)
- func (k *Kubernetes) AnalyzeIngress(r common.Request) (string, error)
- func (k *Kubernetes) AnalyzeMutatingWebhook(r common.Request) (string, error)
- func (k *Kubernetes) AnalyzeNetworkPolicy(r common.Request) (string, error)
- func (k *Kubernetes) AnalyzeNode(ctx context.Context, name string) (string, error)
- func (k *Kubernetes) AnalyzePod(ctx context.Context, namespace string) (string, error)
- func (k *Kubernetes) AnalyzeService(ctx context.Context, namespace string) (string, error)
- func (k *Kubernetes) AnalyzeStatefulSet(r common.Request) (string, error)
- func (k *Kubernetes) AnalyzeValidatingWebhook(r common.Request) (string, error)
- func (k *Kubernetes) DeploymentScale(ctx context.Context, namespace, name string, replicas int32) (string, error)
- func (k *Kubernetes) PodExec(ctx context.Context, namespace, name, command string) (string, error)
- func (k *Kubernetes) PodLogs(ctx context.Context, namespace, name string) (string, error)
- func (k *Kubernetes) ResourceCreateOrUpdate(ctx context.Context, resource string) (string, error)
- func (k *Kubernetes) ResourceDelete(ctx context.Context, kind, namespace, name string) (string, error)
- func (k *Kubernetes) ResourceGet(ctx context.Context, kind, namespace, name string) (string, error)
- func (k *Kubernetes) ResourceList(ctx context.Context, kind, namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sApiReference ¶ added in v0.1.1
type K8sApiReference struct { ApiVersion schema.GroupVersion Kind string OpenapiSchema *openapi_v2.Document }
func (*K8sApiReference) GetApiDocV2 ¶ added in v0.1.1
func (k *K8sApiReference) GetApiDocV2(field string) string
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
func NewKubernetes ¶
func NewKubernetes() (*Kubernetes, error)
NewKubernetes creates a new Kubernetes client
func (*Kubernetes) AnalyzeCronJob ¶ added in v0.3.2
func (k *Kubernetes) AnalyzeCronJob(r common.Request) (string, error)
AnalyzeCronJob analyzes the cronjobs and returns a list of failures.
func (*Kubernetes) AnalyzeDeployment ¶ added in v0.3.1
AnalyzeDeployments analyzes the deployments and returns a list of failures.
func (*Kubernetes) AnalyzeIngress ¶ added in v0.3.1
func (k *Kubernetes) AnalyzeIngress(r common.Request) (string, error)
func (*Kubernetes) AnalyzeMutatingWebhook ¶ added in v0.3.2
func (k *Kubernetes) AnalyzeMutatingWebhook(r common.Request) (string, error)
AnalyzeMutatingWebhook analyzes MutatingWebhookConfiguration resources and returns a list of failures
func (*Kubernetes) AnalyzeNetworkPolicy ¶ added in v0.3.2
func (k *Kubernetes) AnalyzeNetworkPolicy(r common.Request) (string, error)
AnalyzeNetworkPolicy analyzes the network policies and returns a list of failures.
func (*Kubernetes) AnalyzeNode ¶ added in v0.3.1
func (*Kubernetes) AnalyzePod ¶ added in v0.3.1
AnalyzePods analyzes the pods and returns a list of failures.
func (*Kubernetes) AnalyzeService ¶ added in v0.3.1
AnalyzeServices analyzes the services and returns a list of failures.
func (*Kubernetes) AnalyzeStatefulSet ¶ added in v0.3.1
func (k *Kubernetes) AnalyzeStatefulSet(r common.Request) (string, error)
func (*Kubernetes) AnalyzeValidatingWebhook ¶ added in v0.3.2
func (k *Kubernetes) AnalyzeValidatingWebhook(r common.Request) (string, error)
AnalyzeValidatingWebhook analyzes ValidatingWebhookConfiguration resources and returns a list of failures
func (*Kubernetes) DeploymentScale ¶ added in v0.1.1
func (k *Kubernetes) DeploymentScale(ctx context.Context, namespace, name string, replicas int32) (string, error)
DeploymentScale scales a deployment.