Documentation ¶
Index ¶
- func ChainName(chain []security.Certificate) string
- func CreateDefaultBlessingName() string
- func DecodeBlessingsFile(filename string) (security.Blessings, error)
- func DumpBlessings(out io.Writer, blessings security.Blessings) error
- func DumpBlessingsFile(out io.Writer, filename string) error
- func DumpCertificateChain(out io.Writer, chain []security.Certificate) error
- func DumpPrincipal(out io.Writer, p security.Principal, blessingNamesOnly bool) error
- func DumpPublicKey(out io.Writer, p security.Principal, pretty bool) error
- func EncodeBlessingRootsFile(filename string, stdout io.Writer, blessings security.Blessings) error
- func EncodeBlessingsFile(filename string, stdout io.Writer, blessings security.Blessings) error
- func FormatCaveats(cavs []security.Caveat) ([]string, error)
- func FormatCaveatsInChain(chain []security.Certificate) ([]string, error)
- func GetChainByName(b security.Blessings, name string) ([]security.Certificate, error)
- func IsSupportedKeyType(keyType string) (keys.CryptoAlgo, bool)
- func ReadFileOrStdin(filename string) (string, error)
- func Rootkey(chain []security.Certificate) string
- func SupportedKeyTypes() []string
- func WriteFileOrStdout(filename string, stdout io.Writer, str string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainName ¶
func ChainName(chain []security.Certificate) string
func CreateDefaultBlessingName ¶
func CreateDefaultBlessingName() string
CreateDefaultBlessingName generates a blessing name based on the hostname of the machine and the name of the user running this command.
func DecodeBlessingsFile ¶
DecodeBlessingsFile will read and decode the blessings in filename or from stdin if filename is '-'.
func DumpCertificateChain ¶
func DumpCertificateChain(out io.Writer, chain []security.Certificate) error
func DumpPrincipal ¶
func EncodeBlessingRootsFile ¶
EncodeBlessingRootsFile will encode and write the blessing roots to filename or to stdout if filename is '-'.
func EncodeBlessingsFile ¶
EncodeBlessingsFile will encode and write the blessings to filename or to stdout if filename is '-'.
func FormatCaveatsInChain ¶
func FormatCaveatsInChain(chain []security.Certificate) ([]string, error)
func GetChainByName ¶
func IsSupportedKeyType ¶
func IsSupportedKeyType(keyType string) (keys.CryptoAlgo, bool)
IsSupportedKeyType returns true if the requested key type is supported by the principal command. Currently the supported types are:
ecdsa256 ecdsa384 ecdsa521 ed25519 rsa2048 rsa4096
func ReadFileOrStdin ¶
ReadFileOrStdin will read the data from filename or stdin if filename is '-'.
func Rootkey ¶
func Rootkey(chain []security.Certificate) string
func SupportedKeyTypes ¶
func SupportedKeyTypes() []string
SupportedKeyTypes returns the currently supported key types.
Types ¶
This section is empty.