types

package
v0.0.0-...-03849dc Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSCiphers

func TLSCiphers(ciphers []string) ([]uint16, error)

func TLSVersion

func TLSVersion(minVersion string) (uint16, error)

Types

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) Decode

func (d *Duration) Decode(value string) error

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type MeshedPublicKey

type MeshedPublicKey struct {
	PublicKey
	Mesh string `json:"mesh"`
}

func (MeshedPublicKey) Validate

func (m MeshedPublicKey) Validate() error

type PublicKey

type PublicKey struct {
	// ID of key used to issue token.
	KID string `json:"kid"`
	// File with a public key encoded in PEM format.
	KeyFile string `json:"keyFile,omitempty"`
	// Public key encoded in PEM format.
	Key string `json:"key,omitempty"`
}

func (PublicKey) Validate

func (p PublicKey) Validate() error

Jump to

Keyboard shortcuts

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