io

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CACertPath

func CACertPath(dir string) string

CACertPath defines where to write the certificate for the certificate authority.

func CAKeyPath

func CAKeyPath(dir string) string

CAKeyPath defines where to write the private key for the certificate authority.

func ReadCA

func ReadCA(dir string) (rsa.KeyPair, error)

ReadCA reads the certificate authority contained with the directory.

func ReadCredentials

func ReadCredentials(dir string) (tls.TLS, error)

ReadCredentials reads the TLS credentials contained within the directory.

func SignedCertPath

func SignedCertPath(dir string) string

SignedCertPath defines where to write the certificate for the signed certificate.

func SignedKeyPath

func SignedKeyPath(dir string) string

SignedKeyPath defines where to write the private key for the signed certificate.

Types

type File

type File struct {
	Path    string
	Content string
	Mode    os.FileMode
}

File represents a file to be written to the filesystem.

func DaemonFiles

func DaemonFiles(dir string, ca, signed rsa.KeyPair) []File

DaemonFiles defines how files should be written to disk for use by the daemon.

func MinionFiles

func MinionFiles(dir string, ca, signed rsa.KeyPair) []File

MinionFiles defines how files should be written to disk for installation on minions.

Jump to

Keyboard shortcuts

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