aws_role

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoleCertificate

func GetRoleCertificate(params Params) ([]byte, error)

GetRoleCertificate requests an AWS role identify certificate from the Keymaster server specified in params. It returns the certificate PEM.

func GetRoleCertificateTLS

func GetRoleCertificateTLS(params Params) (*tls.Certificate, error)

GetRoleCertificateTLS requests an AWS role identify certificate from the Keymaster server specified in params. It returns the certificate.

Types

type Manager

type Manager struct {
	Params
	// contains filtered or unexported fields
}

func NewManager

func NewManager(params Params) (*Manager, error)

NewManager returns a certificate manager which provides AWS role identity certificates from the Keymaster server specified in params. Certificates are refreshed in the background.

func (*Manager) GetClientCertificate

func (m *Manager) GetClientCertificate(cri *tls.CertificateRequestInfo) (
	*tls.Certificate, error)

GetClientCertificate returns a valid, cached certificate.

type Params

type Params struct {
	// Required parameters.
	KeymasterServer string
	Logger          log.DebugLogger
	// Optional parameters.
	Context    context.Context
	HttpClient *http.Client
	Signer     crypto.Signer
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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