acmcerts

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "certs-acm",
	Precedence: bootstrap.TlsConfigPrecedence,
	Options: []fx.Option{
		fx.Provide(FxProvider()),
	},
}

Functions

func FxProvider

func FxProvider() fx.Annotated

func NewAcmProvider

func NewAcmProvider(ctx context.Context, acm *acm.Client, p SourceProperties) certs.Source

func Use

func Use()

Types

type AcmProvider

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

func (*AcmProvider) Close

func (a *AcmProvider) Close() error

func (*AcmProvider) Files

func (*AcmProvider) LazyInit

func (a *AcmProvider) LazyInit(ctx context.Context) error

func (*AcmProvider) RootCAs

func (a *AcmProvider) RootCAs(ctx context.Context) (*x509.CertPool, error)

func (*AcmProvider) TLSConfig

func (a *AcmProvider) TLSConfig(ctx context.Context, _ ...certs.TLSOptions) (*tls.Config, error)

type SourceProperties

type SourceProperties struct {
	MinTLSVersion    string         `json:"min-version"`
	ARN              string         `json:"arn"`
	Passphrase       string         `json:"passphrase"`
	MinRenewInterval utils.Duration `json:"min-renew-interval"`
	CachePath        string         `json:"cache-path"`
}

Jump to

Keyboard shortcuts

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