certificate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoMatchingCert any matching certificate error
	ErrNoMatchingCert = errors.New("could not find any matching certificate")
)

Functions

This section is empty.

Types

type CertFilter

type CertFilter func(c Certificate) bool

CertFilter type represents a certificate filter interface

type Certificate

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

Certificate represents a basic certificate

func New

func New(arn, domainName string, alternativeNames []string) Certificate

New creates a Certificate

func (Certificate) ARN

func (c Certificate) ARN() string

ARN returns the certificate identifier

func (Certificate) AlternativeNames

func (c Certificate) AlternativeNames() []string

AlternativeNames returns a list of certificate subject alternative names

func (Certificate) DomainName

func (c Certificate) DomainName() string

DomainName returns the main certificate domain name

type Repository

type Repository interface {
	FindByFilter(CertFilter) ([]Certificate, error)
}

Repository provides methods for manipulating Custom domain names on AWS

func NewRepository

func NewRepository(c acmiface.ACMAPI) Repository

NewRepository creates a new Repository

type Service

type Service interface {
	DiscoverByHost(string) (Certificate, error)
}

Service handle the certificate actions as discovery

func NewService

func NewService(c Repository) Service

NewService creates a new Certificate Service

Jump to

Keyboard shortcuts

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