pem

package
v0.2200.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pem provides handy wrappers for dealing with PEM files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(pemType string, data []byte) ([]byte, error)

Marshal encodes a blob into a PEM formatted buffer, with the PEM specified PEM type and data.

func Unmarshal

func Unmarshal(pemType string, data []byte) ([]byte, error)

Unmarshal decodes a raw PEM formatted buffer containing a PEM block with the given type, and returns the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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