application

package
v0.0.0-...-15ef477 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDb

func OpenDb(cfg *config.Application, name string) *bolt.DB

func ReadConfig

func ReadConfig() *config.Application

func ReadOrCreatePrivateKey

func ReadOrCreatePrivateKey(
	privateKeyPath string,
	name string,
	privateKeySize int,
	fingerprintLength uint,
	fingerprintChallengeLevel uint,
) (fileName string, privateKey *rsa.PrivateKey, err error)

func ReadOrCreateTLSCertFiles

func ReadOrCreateTLSCertFiles(
	certPath string,
	privateKeyPath string,
	name string,
	privateKeySize int,
	certificateValidFor time.Duration,
	hosts []string,
	fingerprintLength uint,
	fingerprintChallengeLevel uint,
) (rest.TLS, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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