Documentation ¶
Index ¶
- type Apiv1EndpointsInterface
- type Apiv1EventInterface
- type Apiv1Interface
- type Apiv1NodeInterface
- type Apiv1PVCInterface
- type Apiv1PodInterface
- type Apiv1ServiceInterface
- type Appsv1Interface
- type BubbleteaUI
- func (s *BubbleteaUI) AddCheckResult(checkResult CheckResult)
- func (ui *BubbleteaUI) AskYesNo(question string) bool
- func (s *BubbleteaUI) CompleteCheck(outcome summaryMsg)
- func (ui *BubbleteaUI) DisplayCheckCompletion(completionMsg string, kind SummaryType)
- func (ui *BubbleteaUI) DisplayCheckResult(checkResult CheckResult)
- func (ui *BubbleteaUI) DisplayCheckStart(checkMsg string)
- func (ui *BubbleteaUI) DisplayContext(contextMsg string)
- func (ui *BubbleteaUI) DisplayError(errorMsg error)
- func (ui *BubbleteaUI) SetVerbose()
- func (s *BubbleteaUI) StartCheck(title string)
- func (ui *BubbleteaUI) StartSpinner()
- func (ui *BubbleteaUI) StopSpinner()
- type CheckResult
- type DeploymentInterface
- type ForwardedPorts
- type IngressInterface
- type KubernetesInterface
- type Livelint
- func (n *Livelint) CheckAreResourceQuotasHit(namespace string, deploymentName string) CheckResult
- func (n *Livelint) CheckAreThereRestartCyclingPods(pods []apiv1.Pod) CheckResult
- func (n *Livelint) CheckCanSeeBackends(ingress netv1.Ingress, namespace string) CheckResult
- func (n *Livelint) CheckCanSeeEndpoints(serviceName string, namespace string) CheckResult
- func (n *Livelint) CheckCanVisitPublicApp(namespace string, services []apiv1.Service) CheckResult
- func (n *Livelint) CheckContainerLogs(pod apiv1.Pod, containerName string) CheckResult
- func (n *Livelint) CheckFailedMount(pod apiv1.Pod) CheckResult
- func (n *Livelint) CheckForgottenCMDInDockerfile(c apiv1.Container) CheckResult
- func (n *Livelint) CheckIsClusterFull(pods []apiv1.Pod) CheckResult
- func (n *Livelint) CheckIsMountingPendingPVC(pods []apiv1.Pod, namespace string) CheckResult
- func (n *Livelint) CheckIsNumberOfReplicasCorrect(namespace string, deploymentName string) CheckResult
- func (n *Livelint) CheckReadinessProbe(pods []apiv1.Pod) CheckResult
- func (n *Livelint) RunChecks(namespace, deploymentName string, verbose bool) error
- type Model
- type NetworkingV1Interface
- type ReplicaSetInterface
- type SummaryType
- type UserInteraction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apiv1EndpointsInterface ¶ added in v0.1.0
type Apiv1EndpointsInterface = apiv1.EndpointsInterface
type Apiv1EventInterface ¶ added in v0.1.0
type Apiv1EventInterface = apiv1.EventInterface
type Apiv1Interface ¶ added in v0.1.0
type Apiv1Interface = apiv1.CoreV1Interface
type Apiv1NodeInterface ¶ added in v0.1.0
type Apiv1NodeInterface = apiv1.NodeInterface
type Apiv1PVCInterface ¶ added in v0.1.0
type Apiv1PVCInterface = apiv1.PersistentVolumeClaimInterface
type Apiv1PodInterface ¶ added in v0.1.0
type Apiv1PodInterface = apiv1.PodInterface
type Apiv1ServiceInterface ¶ added in v0.1.0
type Apiv1ServiceInterface = apiv1.ServiceInterface
type Appsv1Interface ¶ added in v0.1.0
type Appsv1Interface = appsv1.AppsV1Interface
type BubbleteaUI ¶ added in v0.1.0
func NewBubbleTeaUI ¶ added in v0.1.0
func NewBubbleTeaUI(program *tea.Program) *BubbleteaUI
func (*BubbleteaUI) AddCheckResult ¶ added in v0.1.0
func (s *BubbleteaUI) AddCheckResult(checkResult CheckResult)
func (*BubbleteaUI) AskYesNo ¶ added in v0.1.0
func (ui *BubbleteaUI) AskYesNo(question string) bool
func (*BubbleteaUI) CompleteCheck ¶ added in v0.1.0
func (s *BubbleteaUI) CompleteCheck(outcome summaryMsg)
func (*BubbleteaUI) DisplayCheckCompletion ¶ added in v0.1.0
func (ui *BubbleteaUI) DisplayCheckCompletion(completionMsg string, kind SummaryType)
func (*BubbleteaUI) DisplayCheckResult ¶ added in v0.1.0
func (ui *BubbleteaUI) DisplayCheckResult(checkResult CheckResult)
func (*BubbleteaUI) DisplayCheckStart ¶ added in v0.1.0
func (ui *BubbleteaUI) DisplayCheckStart(checkMsg string)
func (*BubbleteaUI) DisplayContext ¶ added in v0.1.0
func (ui *BubbleteaUI) DisplayContext(contextMsg string)
func (*BubbleteaUI) DisplayError ¶ added in v0.1.0
func (ui *BubbleteaUI) DisplayError(errorMsg error)
func (*BubbleteaUI) SetVerbose ¶ added in v0.1.0
func (ui *BubbleteaUI) SetVerbose()
func (*BubbleteaUI) StartCheck ¶ added in v0.1.0
func (s *BubbleteaUI) StartCheck(title string)
func (*BubbleteaUI) StartSpinner ¶ added in v0.1.0
func (ui *BubbleteaUI) StartSpinner()
func (*BubbleteaUI) StopSpinner ¶ added in v0.1.0
func (ui *BubbleteaUI) StopSpinner()
type CheckResult ¶
type DeploymentInterface ¶ added in v0.1.0
type DeploymentInterface = appsv1.DeploymentInterface
type ForwardedPorts ¶ added in v0.1.0
type IngressInterface ¶ added in v0.1.0
type IngressInterface = netv1.IngressInterface
type KubernetesInterface ¶ added in v0.1.0
type KubernetesInterface = kubernetes.Interface
type Livelint ¶
type Livelint struct { K8s kubernetes.Interface HTTP *http.Client // contains filtered or unexported fields }
func New ¶
func New(k8s kubernetes.Interface, config *rest.Config, ui UserInteraction) *Livelint
New creates a livelint application.
func (*Livelint) CheckAreResourceQuotasHit ¶ added in v0.1.0
func (n *Livelint) CheckAreResourceQuotasHit(namespace string, deploymentName string) CheckResult
func (*Livelint) CheckAreThereRestartCyclingPods ¶ added in v0.1.0
func (n *Livelint) CheckAreThereRestartCyclingPods(pods []apiv1.Pod) CheckResult
func (*Livelint) CheckCanSeeBackends ¶ added in v0.1.0
func (n *Livelint) CheckCanSeeBackends(ingress netv1.Ingress, namespace string) CheckResult
func (*Livelint) CheckCanSeeEndpoints ¶ added in v0.1.0
func (n *Livelint) CheckCanSeeEndpoints(serviceName string, namespace string) CheckResult
func (*Livelint) CheckCanVisitPublicApp ¶ added in v0.1.0
func (n *Livelint) CheckCanVisitPublicApp(namespace string, services []apiv1.Service) CheckResult
func (*Livelint) CheckContainerLogs ¶ added in v0.1.0
func (n *Livelint) CheckContainerLogs(pod apiv1.Pod, containerName string) CheckResult
func (*Livelint) CheckFailedMount ¶ added in v0.1.0
func (n *Livelint) CheckFailedMount(pod apiv1.Pod) CheckResult
func (*Livelint) CheckForgottenCMDInDockerfile ¶ added in v0.1.0
func (n *Livelint) CheckForgottenCMDInDockerfile(c apiv1.Container) CheckResult
func (*Livelint) CheckIsClusterFull ¶ added in v0.1.0
func (n *Livelint) CheckIsClusterFull(pods []apiv1.Pod) CheckResult
func (*Livelint) CheckIsMountingPendingPVC ¶ added in v0.1.0
func (n *Livelint) CheckIsMountingPendingPVC(pods []apiv1.Pod, namespace string) CheckResult
func (*Livelint) CheckIsNumberOfReplicasCorrect ¶ added in v0.1.0
func (n *Livelint) CheckIsNumberOfReplicasCorrect(namespace string, deploymentName string) CheckResult
func (*Livelint) CheckReadinessProbe ¶ added in v0.1.0
func (n *Livelint) CheckReadinessProbe(pods []apiv1.Pod) CheckResult
type Model ¶ added in v0.1.0
type Model struct { YesNoResponse chan int // contains filtered or unexported fields }
func InitialModel ¶ added in v0.1.0
func InitialModel() Model
type NetworkingV1Interface ¶ added in v0.1.0
type NetworkingV1Interface = netv1.NetworkingV1Interface
type ReplicaSetInterface ¶ added in v0.1.0
type ReplicaSetInterface = appsv1.ReplicaSetInterface
type SummaryType ¶ added in v0.1.0
type SummaryType int
type UserInteraction ¶ added in v0.1.0
type UserInteraction interface { DisplayContext(contextMsg string) DisplayCheckStart(checkMsg string) DisplayCheckResult(checkResult CheckResult) DisplayCheckCompletion(completionMsg string, kind SummaryType) DisplayError(errorMsg error) AskYesNo(question string) bool SetVerbose() StartSpinner() StopSpinner() }
Source Files ¶
- check_are_all_pods_ready.go
- check_are_all_pods_running.go
- check_are_resource_quotas_hit.go
- check_are_there_pending_pods.go
- check_are_there_restart_cycling_pods.go
- check_are_there_running_containers.go
- check_can_access_app.go
- check_can_access_url_from_ingress.go
- check_can_see_backends.go
- check_can_see_endpoints.go
- check_can_visit_public_app.go
- check_can_visit_service_app.go
- check_crash_loop_back_off.go
- check_create_container_config_errors.go
- check_did_inspect_logs_and_fix.go
- check_does_image_tag_exist.go
- check_failed_mount.go
- check_forgotten_cmd_in_dockerfile.go
- check_has_valid_ingress_class.go
- check_image_pull_errors.go
- check_invalid_image_name_errors.go
- check_is_cluster_full.go
- check_is_container_creating.go
- check_is_image_name_correct.go
- check_is_mounting_inexistent_volume.go
- check_is_mounting_pending_pvc.go
- check_is_number_of_replicas_as_spec.go
- check_is_pod_assigned_to_node.go
- check_is_port_exposed_correctly.go
- check_is_pulling_from_private_registry.go
- check_is_selector_match_pod_label.go
- check_logs.go
- check_pod_has_ip_address_assigned.go
- check_readiness_probe.go
- check_result.go
- check_target_port_matches_container_port.go
- checks_model.go
- errors.go
- get_deployment.go
- get_ingress_classes.go
- get_ingresscontroller.go
- get_ingresses_from_services.go
- get_pod_events.go
- get_pod_resource_summary.go
- get_pods.go
- get_ports.go
- get_problematic_containers.go
- get_services.go
- get_urls.go
- hasPodCondition.go
- interaction.go
- kubernetes.go
- livelint.go
- run_checks.go
Click to show internal directories.
Click to hide internal directories.