aws

package
v0.0.0-...-c3a0ff8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSIssuer

func NewAWSIssuer(cli *acmpca.Client, arn string) (*aws.Issuer, error)

NewAWSIssuer creates a new instance of AWS issuer

func NewAWSIssuerFromConfig

func NewAWSIssuerFromConfig(cfg AWSConfig) (*aws.Issuer, error)

NewAWSIssuerFromConfig create AWS issuer based on config

func NewAWSTLSConfig

func NewAWSTLSConfig(awsIssuer *aws.Issuer, options ...AWSOption) (*tls.Config, error)

NewAWSTLSConfig provides a tls config with AWS Private CAs

Types

type AWSConfig

type AWSConfig struct {
	Key                     string `json:"key" env:"AWS_CA_KEY"`
	Secret                  string `json:"secret" env:"AWS_CA_SECRET"`
	CertificateAuthorityARN string `json:"ca_arn" env:"AWS_CA_ARN"`
}

type AWSOption

type AWSOption interface {
	// contains filtered or unexported methods
}

AWSOption Options for the token

func Cache

func Cache(c certify.Cache) AWSOption

Cache add cache to options

func CommonName

func CommonName(cn string) AWSOption

CommonName add subject common name to options

func Context

func Context(ctx context.Context) AWSOption

Context add context to options

func IpSubjectAlternativeNames

func IpSubjectAlternativeNames(i []net.IP) AWSOption

IpSubjectAlternativeNames add alternative subject ip names to options

func Logger

func Logger(l certify.Logger) AWSOption

Logger add logger to options

func RenewBefore

func RenewBefore(t time.Duration) AWSOption

RenewBefore add time duration to option

func SubjectAlternativeNames

func SubjectAlternativeNames(n []string) AWSOption

SubjectAlternativeNames add alternative subject names to options

Jump to

Keyboard shortcuts

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