acm

package
v0.0.1-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package acm provides a basic emulation of AWS Certificate Manager (ACM).

Implemented operations: RequestCertificate, DescribeCertificate, ListCertificates, DeleteCertificate, ListTagsForCertificate, AddTagsToCertificate, RemoveTagsFromCertificate.

Certificates are issued immediately in ISSUED state — no validation required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	CertificateArn          string   `json:"CertificateArn"`
	DomainName              string   `json:"DomainName"`
	SubjectAlternativeNames []string `json:"SubjectAlternativeNames,omitempty"`
	Status                  string   `json:"Status"`
	Type                    string   `json:"Type"`
	CreatedAt               float64  `json:"CreatedAt"`
	IssuedAt                float64  `json:"IssuedAt,omitempty"`
}

Certificate represents an ACM certificate.

type Handler

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

Handler holds ACM handler dependencies.

type Service

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

Service implements router.Service and router.TargetDispatcher for ACM.

func New

func New(cfg *config.Config, st state.Store, logger *zap.Logger, clk clock.Clock) *Service

New returns a configured ACM Service.

func (*Service) Dispatch

func (s *Service) Dispatch(w http.ResponseWriter, r *http.Request)

func (*Service) Name

func (s *Service) Name() string

func (*Service) Operations

func (s *Service) Operations() []op.Operation

func (*Service) RegisterRoutes

func (s *Service) RegisterRoutes(_ chi.Router)

func (*Service) SupportedProtocols

func (s *Service) SupportedProtocols() []codec.Codec

func (*Service) TargetPrefix

func (s *Service) TargetPrefix() string

type Tag

type Tag struct {
	Key   string `json:"Key"`
	Value string `json:"Value,omitempty"`
}

Tag is an ACM resource tag.

Jump to

Keyboard shortcuts

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