ui

package
v0.0.0-...-ecd8102 Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFormat

func DefaultFormat() string

Formats - how the data is displayed on the UI

func DefaultUI

func DefaultUI() string

UI - what technology to display results on

func GetFormats

func GetFormats() []string

func GetUIs

func GetUIs() []string

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