Documentation ¶
Index ¶
- func ValidateAlias(alias string) error
- func ValidateDomainName(domainName string) error
- type Certificate
- type CertificateResourceRecord
- type CertificateValidation
- type Certificates
- type Client
- type SDKClient
- func (acm SDKClient) DeleteCertificate(arn string) error
- func (acm SDKClient) ImportCertificate(certificate, privateKey, certificateChain []byte) (string, error)
- func (acm SDKClient) InflateCertificate(c *Certificate) error
- func (acm *SDKClient) ListCertificateDomainNames(certificateARNs []string) []string
- func (acm SDKClient) ListCertificates() (Certificates, error)
- func (acm SDKClient) RequestCertificate(domainName string, aliases []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAlias ¶
ValidateAlias checks an alias' length and number of octets for validity.
func ValidateDomainName ¶
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 ¶
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.0
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 (SDKClient) DeleteCertificate ¶ added in v0.3.0
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
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.