encoding

package
v0.0.0-...-9987ece Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Base64 = &base64Format{}
View Source
var Base64URL = &base64URLFormat{}
View Source
var JWK = &jwkFormat{}
View Source
var JWKs = &jwksFormat{}
View Source
var PEM = &pemFormat{}
View Source
var UnsupportedEncoding = errors.New("unsupported encoding")

Functions

func EncodePEM

func EncodePEM(out io.Writer, data interface{}) error

Types

type Encoding

type Encoding interface {
	Type() string
	TryUnmarshal(data []byte) (interface{}, error)
}

type Encodings

type Encodings []Encoding

func (Encodings) Decode

func (formats Encodings) Decode(in io.Reader) (interface{}, error)

func (Encodings) Unmarshal

func (formats Encodings) Unmarshal(data []byte) (interface{}, error)

type PEMChain

type PEMChain []interface{}

func DecodePEM

func DecodePEM(in io.Reader) (PEMChain, error)

func UnmarshalPEM

func UnmarshalPEM(data []byte) (PEMChain, error)

Jump to

Keyboard shortcuts

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