sentry

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	SentryAddress string
	SentryID      spiffeid.ID
	Security      security.Handler
}

Options contains the configuration options for connecting and requesting certificates from sentry.

type Requester

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

Requester is used to request certificates from the sentry service for any daprd identity.

func New

func New(ctx context.Context, opts Options) (*Requester, error)

New returns a new instance of the Requester.

func (*Requester) RequestCertificateFromSentry

func (r *Requester) RequestCertificateFromSentry(ctx context.Context, namespace string) ([]byte, []byte, error)

RequestCertificateFromSentry requests a certificate from sentry for a generic daprd identity in a namespace. Returns the signed certificate chain and leaf private key as a PEM encoded byte slice.

Jump to

Keyboard shortcuts

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