ssl

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ssl provides SSL certificate diagnostic TUI components

Package ssl provides SSL certificate diagnostic functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSSLResult

func FormatSSLResult(result domain.SSLResult) string

FormatSSLResult formats SSL result for display

func GetSecurityLevel

func GetSecurityLevel(result domain.SSLResult) string

GetSecurityLevel returns a security level assessment for the certificate

func GetSecurityRecommendations

func GetSecurityRecommendations(result domain.SSLResult) []string

GetSecurityRecommendations returns security recommendations based on the SSL result

func ValidateSSLResult

func ValidateSSLResult(result domain.SSLResult) error

ValidateSSLResult validates that an SSL result contains expected data

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the SSL certificate check TUI model

func NewModel

func NewModel(tool *Tool) *Model

NewModel creates a new SSL model

func (*Model) Blur

func (m *Model) Blur()

Blur blurs the model

func (*Model) Focus

func (m *Model) Focus()

Focus focuses the model

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the model

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize sets the model size

func (*Model) SetTheme

func (m *Model) SetTheme(theme domain.Theme)

SetTheme sets the model theme

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages and updates the model

func (*Model) View

func (m *Model) View() string

View renders the model

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

Tool implements the DiagnosticTool interface for SSL certificate operations

func NewTool

func NewTool(client domain.NetworkClient, logger domain.Logger) *Tool

NewTool creates a new SSL diagnostic tool

func (*Tool) Description

func (t *Tool) Description() string

Description returns the tool description

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, params domain.Parameters) (domain.Result, error)

Execute performs the SSL certificate check operation

func (*Tool) GetModel

func (t *Tool) GetModel() tea.Model

GetModel returns the Bubble Tea model for the SSL tool

func (*Tool) Name

func (t *Tool) Name() string

Name returns the tool name

func (*Tool) Validate

func (t *Tool) Validate(params domain.Parameters) error

Validate validates the parameters for SSL operations

Jump to

Keyboard shortcuts

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