acm

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAlias

func ValidateAlias(alias string) error

ValidateAlias checks an alias' length and number of octets for validity.

func ValidateDomainName

func ValidateDomainName(domainName string) error

ValidateDomainName checks a domain names length and number of octets for validity.

Types

type Certificate

type Certificate struct {
	ARN                     string
	Status                  string
	SubjectAlternativeNames []string
	DomainName              string
	Validations             []CertificateValidation
	Type                    string
}

Certificate is a certificate hosted in AWS Certificate Manager.

func (*Certificate) AddValidation

func (c *Certificate) AddValidation(v CertificateValidation)

AddValidation adds a certificate validation to a certificate.

func (Certificate) IsIssued

func (c Certificate) IsIssued() bool

IsIssued returns true if the certificate's status is ISSUED.

func (Certificate) IsPendingValidation

func (c Certificate) IsPendingValidation() bool

IsPendingValidation returns true if the certificate's status is PENDING_VALIDATION.

type CertificateResourceRecord

type CertificateResourceRecord struct {
	Type  string
	Name  string
	Value string
}

CertificateResourceRecord contains the DNS record used to validate a certificate.

type CertificateValidation

type CertificateValidation struct {
	Status         string
	DomainName     string
	ResourceRecord CertificateResourceRecord
}

CertificateValidation holds details about how to validate a certificate.

func (CertificateValidation) IsFailed

func (v CertificateValidation) IsFailed() bool

IsFailed returns true if a certificate validation's status is FAILED.

func (CertificateValidation) IsPendingValidation

func (v CertificateValidation) IsPendingValidation() bool

IsPendingValidation returns true if a certificate validation's status is PENDING_VALIDATION.

func (CertificateValidation) IsSuccess

func (v CertificateValidation) IsSuccess() bool

IsSuccess returns true if a certificate validation's status is SUCCESS

func (CertificateValidation) ResourceRecordString added in v0.2.1

func (v CertificateValidation) ResourceRecordString() string

ResourceRecordString returns the resource record for display.

type Certificates added in v0.3.0

type Certificates []Certificate

Certificates is a collection of certificates.

func (Certificates) GetCertificates added in v0.3.0

func (cs Certificates) GetCertificates(domainName string) Certificates

GetCertificates returns certificates for the given domain name.

type Client added in v0.3.0

type Client interface {
	DeleteCertificate(string) error
	InflateCertificate(*Certificate) error
	ListCertificates() (Certificates, error)
	RequestCertificate(string, []string) (string, error)
	ImportCertificate([]byte, []byte, []byte) (string, error)
}

Client represents a method for accessing AWS Certificate Manager.

type SDKClient added in v0.3.0

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

SDKClient implements access to AWS Certificate Manager via the AWS SDK.

func New

func New(sess *session.Session) SDKClient

New returns an SDKClient configured with the given session.

func (SDKClient) DeleteCertificate added in v0.3.0

func (acm SDKClient) DeleteCertificate(arn string) error

DeleteCertificate deletes the certificate identified by the given ARN.

func (SDKClient) ImportCertificate added in v0.3.0

func (acm SDKClient) ImportCertificate(certificate, privateKey, certificateChain []byte) (string, error)

ImportCertificate creates a new certificate from the provided certificate, private key, and optional certificate chain.

func (SDKClient) InflateCertificate added in v0.3.0

func (acm SDKClient) InflateCertificate(c *Certificate) error

InflateCertificate uses a partially hydrated certificate to fetch the rest of its details and set them on the certificate.

func (*SDKClient) ListCertificateDomainNames added in v0.3.0

func (acm *SDKClient) ListCertificateDomainNames(certificateARNs []string) []string

ListCertificateDomainNames is bunk and will be refactored out of existence soon.

func (SDKClient) ListCertificates added in v0.3.0

func (acm SDKClient) ListCertificates() (Certificates, error)

ListCertificates returns all certificates associated with the caller's account.

func (SDKClient) RequestCertificate added in v0.3.0

func (acm SDKClient) RequestCertificate(domainName string, aliases []string) (string, error)

RequestCertificate creates a new certificate.

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
sdk
Package sdk is a generated GoMock package.
Package sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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