Documentation ¶
Index ¶
- Variables
- func FxProvider() fx.Annotated
- func NewVaultProvider(ctx context.Context, vc *vault.Client, p SourceProperties) certs.Source
- func Use()
- type IssueCertificateRequest
- type SourceProperties
- type VaultProvider
- func (v *VaultProvider) Close() error
- func (v *VaultProvider) Files(ctx context.Context) (*certs.CertificateFiles, error)
- func (v *VaultProvider) LazyInit(ctx context.Context) error
- func (v *VaultProvider) RootCAs(ctx context.Context) (*x509.CertPool, error)
- func (v *VaultProvider) TLSConfig(ctx context.Context, _ ...certs.TLSOptions) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = &bootstrap.Module{ Name: "certs-vault", Precedence: bootstrap.TlsConfigPrecedence, Options: []fx.Option{ fx.Provide(FxProvider()), }, }
Functions ¶
func FxProvider ¶
func NewVaultProvider ¶
Types ¶
type IssueCertificateRequest ¶
type SourceProperties ¶
type SourceProperties struct { MinTLSVersion string `json:"min-version"` Path string `json:"path"` Role string `json:"role"` CN string `json:"cn"` IpSans string `json:"ip-sans"` AltNames string `json:"alt-names"` TTL utils.Duration `json:"ttl"` MinRenewInterval utils.Duration `json:"min-renew-interval"` CachePath string `json:"cache-path"` }
type VaultProvider ¶
type VaultProvider struct {
// contains filtered or unexported fields
}
func (*VaultProvider) Close ¶
func (v *VaultProvider) Close() error
func (*VaultProvider) Files ¶
func (v *VaultProvider) Files(ctx context.Context) (*certs.CertificateFiles, error)
func (*VaultProvider) TLSConfig ¶
func (v *VaultProvider) TLSConfig(ctx context.Context, _ ...certs.TLSOptions) (*tls.Config, error)
Click to show internal directories.
Click to hide internal directories.