flags

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

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlgorithmCompletion

func AlgorithmCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

Types

type Algorithm

type Algorithm string
const (
	AlgorithmHS256 Algorithm = "HS256"
	AlgorithmHS384 Algorithm = "HS384"
	AlgorithmHS512 Algorithm = "HS512"

	AlgorithmRS256 Algorithm = "RS256"
	AlgorithmRS384 Algorithm = "RS384"
	AlgorithmRS512 Algorithm = "RS512"

	AlgorithmES256 Algorithm = "ES256"
	AlgorithmES384 Algorithm = "ES384"
	AlgorithmES512 Algorithm = "ES512"

	AlgorithmPS256 Algorithm = "PS256"
	AlgorithmPS384 Algorithm = "PS384"
	AlgorithmPS512 Algorithm = "PS512"

	AlgorithmNONE Algorithm = "none"
)

func (*Algorithm) Set

func (a *Algorithm) Set(v string) error

func (*Algorithm) String

func (a *Algorithm) String() string

func (*Algorithm) Type

func (a *Algorithm) Type() string

type KeyFile

type KeyFile string

func (*KeyFile) PrivateKey

func (k *KeyFile) PrivateKey() (*rsa.PrivateKey, error)

func (*KeyFile) PublicKey

func (k *KeyFile) PublicKey() (*rsa.PublicKey, error)

func (*KeyFile) Secret

func (k *KeyFile) Secret() (string, error)

func (*KeyFile) Set

func (k *KeyFile) Set(v string) error

func (*KeyFile) String

func (k *KeyFile) String() string

func (*KeyFile) Type

func (k *KeyFile) Type() string

Jump to

Keyboard shortcuts

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