ui

package
v0.0.0-...-4d45f13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFormat

func DefaultFormat() string

DefaultFormat returns the standard output format

func DefaultUI

func DefaultUI() string

DefaultUI returns the standard output medium

func GetFormats

func GetFormats() []string

GetFormats returns the names of all output formats

func GetUIs

func GetUIs() []string

GetUIs returns all output mediums

func ListCertificates

func ListCertificates(certs []*x509.Certificate, cfg *Config) error

func ListCertificatesWithMeta

func ListCertificatesWithMeta(meta Meta, certs []*x509.Certificate, cfg *Config) error

func Open

func Open() error

Types

type Config

type Config struct {
	// If we should only show the certificate count, rather than each one
	Count bool

	// What format to print certificates in, formats are defined in ../main.go and
	// checked in print.go
	Format string

	// Outfile holds where to write the output to. Used if non-empty
	Outfile string

	// Which user interface to show users, e.g. cli or web
	// Default (and possible) value(s) can be found in the ui package
	UI string
}

type Meta

type Meta struct {
	Name    string
	Version string
}

Meta is used to add additional details on the certficiate store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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