detailedreport

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClusterRoleBindingReportCSV

func GenerateClusterRoleBindingReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes ClusterRoleBindings.

func GenerateClusterRoleReportCSV

func GenerateClusterRoleReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes ClusterRoles.

func GenerateClusterSummaryCSV

func GenerateClusterSummaryCSV(writer *csv.Writer, clientset *kubernetes.Clientset, metricsClient *metricsv.Clientset) error

Generates a summary table of cluster resources in CSV format.

func GenerateConfigMapReportCSV

func GenerateConfigMapReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes ConfigMaps.

func GenerateCronJobReportCSV

func GenerateCronJobReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes CronJobs.

func GenerateDaemonSetReportCSV

func GenerateDaemonSetReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes DaemonSets.

func GenerateDeploymentReportCSV

func GenerateDeploymentReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes deployments.

func GenerateEndpointsReportCSV

func GenerateEndpointsReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Endpoints.

func GenerateHPAReportCSV

func GenerateHPAReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Horizontal Pod Autoscalers.

func GenerateIngressReportCSV

func GenerateIngressReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Ingress resources.

func GenerateJobReportCSV

func GenerateJobReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Jobs.

func GenerateLimitRangeReportCSV

func GenerateLimitRangeReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Limit Ranges.

func GenerateNamespaceTable

func GenerateNamespaceTable(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV file for namespace resource usage.

func GenerateNetworkPolicyReportCSV

func GenerateNetworkPolicyReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Network Policies.

func GenerateNodeSummaryTable

func GenerateNodeSummaryTable(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV file for node resource usage.

func GeneratePersistentVolumeClaimReportCSV

func GeneratePersistentVolumeClaimReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Persistent Volume Claims.

func GeneratePersistentVolumeReportCSV

func GeneratePersistentVolumeReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Persistent Volumes.

func GeneratePodResourceUsageCSV

func GeneratePodResourceUsageCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of pod resource usage.

func GenerateReplicaSetReportCSV

func GenerateReplicaSetReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes ReplicaSets.

func GenerateResourceQuotaReportCSV

func GenerateResourceQuotaReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Resource Quotas.

func GenerateRoleBindingReportCSV

func GenerateRoleBindingReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes RoleBindings.

func GenerateRoleReportCSV

func GenerateRoleReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Roles.

func GenerateSecretReportCSV

func GenerateSecretReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes Secrets.

func GenerateServiceAccountReportCSV

func GenerateServiceAccountReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes ServiceAccounts.

func GenerateServiceReportCSV

func GenerateServiceReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes services.

func GenerateStatefulSetReportCSV

func GenerateStatefulSetReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes StatefulSets.

func GenerateStorageClassReportCSV

func GenerateStorageClassReportCSV(writer *csv.Writer, clientset *kubernetes.Clientset) error

Generates a CSV report of Kubernetes StorageClasses.

Types

type ClusterRoleBindingInfo

type ClusterRoleBindingInfo struct {
	Name            string
	ClusterRoleName string
	Subjects        string
	RoleRefAPIGroup string
	RoleRefKind     string
	RoleRefName     string
	Age             string
	Annotations     string
}

ClusterRoleBindingInfo holds the information for a Kubernetes ClusterRoleBinding.

type ClusterRoleInfo

type ClusterRoleInfo struct {
	Name        string
	Rules       string
	APIGroups   string
	Resources   string
	Verbs       string
	Age         string
	Annotations string
}

ClusterRoleInfo holds the information for a Kubernetes ClusterRole.

type ConfigMapInfo

type ConfigMapInfo struct {
	Name      string
	Namespace string
	DataItems int
	Age       string
	Labels    string
}

ConfigMapInfo holds the information for a Kubernetes ConfigMap.

type CronJobInfo

type CronJobInfo struct {
	Name              string
	Namespace         string
	Schedule          string
	ActiveJobs        int32
	LastSchedule      string
	Age               string
	JobDuration       string
	JobTemplate       string
	HistoryLimit      int32
	ConcurrencyPolicy string
}

CronJobInfo holds the information for a Kubernetes CronJob.

type DaemonSetInfo

type DaemonSetInfo struct {
	Name         string
	Namespace    string
	DesiredPods  int32
	CurrentPods  int32
	PodsReady    int32
	PodsDesired  int32
	NodeSelector string
	Age          string
	Conditions   string
}

DaemonSetInfo holds the information for a Kubernetes DaemonSet.

type DeploymentInfo

type DeploymentInfo struct {
	Name              string
	Namespace         string
	Replicas          int32
	AvailableReplicas int32
	PodsReady         int32
	PodsDesired       int32
	StrategyType      string
	Age               string
	Conditions        string
	Revision          int64
}

DeploymentInfo holds the information for a Kubernetes deployment.

type EndpointInfo

type EndpointInfo struct {
	Name        string
	Namespace   string
	Subsets     int
	IPAddresses string
	Ports       string
	Age         string
}

EndpointInfo holds the information for a Kubernetes Endpoint.

type HPAInfo

type HPAInfo struct {
	Name                  string
	Namespace             string
	ScaleTargetRef        string
	MinReplicas           int32
	MaxReplicas           int32
	TargetCPUUtilization  *int32
	CurrentReplicas       int32
	Age                   string
	Conditions            string
	Metrics               string
	CurrentCPUUtilization string
	LastScaleTime         string
	Behavior              string
}

HPAInfo holds the information for a Kubernetes Horizontal Pod Autoscaler.

type IngressResourceInfo

type IngressResourceInfo struct {
	Name               string
	Namespace          string
	Hosts              string
	Paths              string
	BackendServiceName string
	BackendServicePort string
	TLSEnabled         string
	TLSSecretName      string
	IngressClass       string
	Rules              string
	Age                string
	Annotations        string
}

IngressResourceInfo holds the information for a Kubernetes Ingress resource.

type JobInfo

type JobInfo struct {
	Name          string
	Namespace     string
	Completions   int32
	Parallelism   int32
	ActivePods    int32
	SucceededPods int32
	FailedPods    int32
	Age           string
	Conditions    string
	JobDuration   string
	JobTemplate   string
}

JobInfo holds the information for a Kubernetes Job.

type LimitRangeInfo

type LimitRangeInfo struct {
	Name            string
	Namespace       string
	Limits          string
	Requests        string
	Age             string
	Annotations     string
	Status          string
	LimitType       string
	DefaultLimits   string
	DefaultRequests string
}

LimitRangeInfo holds the information for a Kubernetes Limit Range.

type NetworkPolicyInfo

type NetworkPolicyInfo struct {
	Name              string
	Namespace         string
	PodSelector       string
	NamespaceSelector string
	PolicyTypes       string
	IngressRules      string
	EgressRules       string
	IngressAction     string
	EgressAction      string
	MatchLabels       string
	Age               string
	Annotations       string
}

NetworkPolicyInfo holds the information for a Kubernetes Network Policy.

type PersistentVolumeClaimInfo

type PersistentVolumeClaimInfo struct {
	Name         string
	Namespace    string
	Status       string
	Volume       string
	Capacity     string
	AccessModes  string
	StorageClass string
	Age          string
	VolumeMode   string
	Annotations  string
	Selector     string
}

PersistentVolumeClaimInfo holds the information for a Kubernetes Persistent Volume Claim.

type PersistentVolumeInfo

type PersistentVolumeInfo struct {
	Name                  string
	Capacity              string
	AccessModes           string
	ReclaimPolicy         string
	Status                string
	PersistentVolumeClaim string
	StorageClass          string
	Age                   string
	Phase                 string
	Annotations           string
	Claimant              string // The application or pod using the PV
	VolumeMode            string // Block or Filesystem
	MountOptions          string // Specific mount options used for the PV
}

PersistentVolumeInfo holds the information for a Kubernetes Persistent Volume.

type PodResourceUsage

type PodResourceUsage struct {
	Name                 string
	Namespace            string
	NodeName             string
	RequestedCPUInMillis int64
	LimitCPUInMillis     int64
	RequestedMemoryInMi  int64
	LimitMemoryInMi      int64
	Status               string
	RestartCount         int32
	Conditions           string
	Age                  string
}

PodResourceUsage holds the resource usage data for a pod.

type ReplicaSetInfo

type ReplicaSetInfo struct {
	Name            string
	Namespace       string
	DesiredReplicas int32
	CurrentReplicas int32
	PodsReady       int32
	PodsDesired     int32
	Age             string
	Conditions      string
}

ReplicaSetInfo holds the information for a Kubernetes ReplicaSet.

type ResourceQuotaInfo

type ResourceQuotaInfo struct {
	Name          string
	Namespace     string
	HardLimits    string
	UsedResources string
	Age           string
	Annotations   string
	Status        string
	UsedPods      int
	RequestLimits string
	LimitType     string
}

ResourceQuotaInfo holds the information for a Kubernetes Resource Quota.

type RoleBindingInfo

type RoleBindingInfo struct {
	Name        string
	Namespace   string
	RoleName    string
	Subjects    string
	Kind        string
	APIGroup    string
	Age         string
	Annotations string
}

RoleBindingInfo holds the information for a Kubernetes RoleBinding.

type RoleInfo

type RoleInfo struct {
	Name        string
	Namespace   string
	Rules       string
	Age         string
	Annotations string
}

RoleInfo holds the information for a Kubernetes Role.

type SecretInfo

type SecretInfo struct {
	Name      string
	Namespace string
	Type      string
	DataItems int
	Age       string
	Labels    string
}

SecretInfo holds the information for a Kubernetes Secret.

type ServiceAccountInfo

type ServiceAccountInfo struct {
	Name             string
	Namespace        string
	Secrets          string
	Annotations      string
	Age              string
	ImagePullSecrets string
}

ServiceAccountInfo holds the information for a Kubernetes ServiceAccount.

type ServiceInfo

type ServiceInfo struct {
	Name            string
	Namespace       string
	ServiceType     string
	ClusterIP       string
	ExternalIP      string
	Ports           string
	TargetPort      string
	Selector        string
	SessionAffinity string
	Age             string
	Conditions      string
}

ServiceInfo holds the information for a Kubernetes service.

type StatefulSetInfo

type StatefulSetInfo struct {
	Name            string
	Namespace       string
	DesiredReplicas int32
	CurrentReplicas int32
	PodsReady       int32
	PodsDesired     int32
	ServiceName     string
	Age             string
	Conditions      string
}

StatefulSetInfo is used to hold the information for a Kubernetes StatefulSet.

type StorageClassInfo

type StorageClassInfo struct {
	Name                 string
	Provisioner          string
	ReclaimPolicy        string
	BindingMode          string
	AllowVolumeExpansion string
	Default              bool
	Parameters           string
	Age                  string
	Annotations          string
}

StorageClassInfo holds the information for a Kubernetes StorageClass.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL