pem

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pem provides a mockable wrapper for encoding/pem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Decode

func (*Impl) Decode(data []byte) (p *pem.Block, rest []byte)

func (*Impl) Encode

func (*Impl) Encode(out io.Writer, b *pem.Block) error

func (*Impl) EncodeToMemory

func (*Impl) EncodeToMemory(b *pem.Block) []byte

type Interface

type Interface interface {
	Decode(data []byte) (p *pem.Block, rest []byte)
	Encode(out io.Writer, b *pem.Block) error
	EncodeToMemory(b *pem.Block) []byte
}

Jump to

Keyboard shortcuts

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