table

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatKeyTable

func FormatKeyTable(keysWithWarnings []KeyWithWarnings) (output string)

FormatKeyTable takes a slice of keys with warnings and returns a string containing a formatted table of the keys and warnings.

func FormatKeyTablePrimaryInstruction

func FormatKeyTablePrimaryInstruction(keysWithWarnings []KeyWithWarnings) string

FormatKeyTablePrimaryInstruction prints an instruction to the user to run 'fk key maintain' or `fk key upload` if they have certain issues with their keys. The severity of the message depends on if they have any urgent issues.

func FormatPeopleTable

func FormatPeopleTable(peopleRows []PersonRow) (output string)

FormatPeopleTable takes a slice of people rows and returns a string containing a formatted table.

Types

type KeyWithWarnings

type KeyWithWarnings struct {
	Key      *pgpkey.PgpKey
	Warnings []status.KeyWarning
}

A KeyWithWarnings defines a key with a slice of warnings used to format a row in the table

type PersonRow

type PersonRow struct {
	Email              string
	TimeSinceLastFetch string
	IsAdmin            bool
}

A PersonRow is used to format a row in the table

Jump to

Keyboard shortcuts

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