cfssl: github.com/cloudflare/cfssl/transport/example/exlib Index | Files

package exlib

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

Package exlib contains common library code for the examples.

Index

Package Files

exlib.go

Variables

var Before = 5 * time.Minute

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

func Err Uses

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 Uses

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 Uses

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

Pack writes a message to an io.Writer.

func Unpack Uses

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

Unpack reads a message from an io.Reader.

func Warn Uses

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).

Package exlib imports 7 packages (graph) and is imported by 20 packages. Updated 2017-05-12. Refresh now. Tools for package owners.