client

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 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   `json:"common_name,omitempty"`
	Group      string   `json:"group,omitempty"`
	Hosts      []string `json:"hosts,omitempty"`
	Profile    string   `json:"profile,omitempty"`
}

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 `json:"lambda,omitempty"`
	Name    string       `json:"name,omitempty"`
	Profile string       `json:"profile,omitempty"`
}

Config configures the lambada ca client

type LambdaConfig

type LambdaConfig struct {
	Region string
}

LambdaConfig Lambda function config

type NullLogger

type NullLogger struct {
}

NullLogger don't log anything when using as lib

func (NullLogger) Crit

func (n NullLogger) Crit(string)

Crit noop

func (NullLogger) Debug

func (n NullLogger) Debug(string)

Debug noop

func (NullLogger) Emerg

func (n NullLogger) Emerg(string)

Emerg noop

func (NullLogger) Err

func (n NullLogger) Err(string)

Err noop

func (NullLogger) Info

func (n NullLogger) Info(string)

Info noop

func (NullLogger) Warning

func (n NullLogger) Warning(string)

Warning noop

Jump to

Keyboard shortcuts

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