client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateDetails

type CertificateDetails struct {
	CommonName string
	Group      string
	Hosts      []string
}

CertificateDetails details of the request

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client lambda PKI client

func New

func New(cfg Config) Client

New create a new client

func (Client) FetchCa

func (c Client) FetchCa() ([]byte, error)

FetchCa Request a signed certificate

func (Client) RequestCertificate

func (c Client) RequestCertificate(details CertificateDetails) (csrPEM []byte, keyPEM []byte, certPEM []byte, err error)

RequestCertificate Request a signed certificate

type Config

type Config struct {
	Lambda LambdaConfig
	Name   string
}

Config configures the lambada ca client

type LambdaConfig

type LambdaConfig struct {
	Region string
}

LambdaConfig Lambda function config

type NullLogger

type NullLogger struct {
}

func (NullLogger) Crit

func (n NullLogger) Crit(string)

func (NullLogger) Debug

func (n NullLogger) Debug(string)

func (NullLogger) Emerg

func (n NullLogger) Emerg(string)

func (NullLogger) Err

func (n NullLogger) Err(string)

func (NullLogger) Info

func (n NullLogger) Info(string)

func (NullLogger) Warning

func (n NullLogger) Warning(string)

Jump to

Keyboard shortcuts

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