package exlib

import "github.com/cloudflare/cfssl/transport/example/exlib"

Package exlib contains common library code for the examples.

Index

Variables

var Before = 5 * time.Minute

Before set to 5 minutes; certificates will attempt to auto-update 5 minutes before they expire.

Functions

func Err

func Err(exit int, err error, format string, a ...interface{})

Err displays a formatting error message to standard error, appending the error string, and exits with the status code from `exit`, à la err(3).

func Errx

func Errx(exit int, format string, a ...interface{})

Errx displays a formatted error message to standard error and exits with the status code from `exit`, à la errx(3).

func Pack

func Pack(w io.Writer, buf []byte) error

Pack writes a message to an io.Writer.

func Unpack

func Unpack(r io.Reader) ([]byte, error)

Unpack reads a message from an io.Reader.

func Warn

func Warn(err error, format string, a ...interface{}) (int, error)

Warn displays a formatted error message to standard output, appending the error string, à la warn(3).

Source Files

exlib.go

Version
v1.6.5 (latest)
Published
Mar 5, 2024
Platform
linux/amd64
Imports
7 packages
Last checked
6 days ago

Tools for package owners.