awspca

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIn

func BuiltIn() catalog.BuiltIn

Types

type Configuration

type Configuration struct {
	Region                  string `hcl:"region" json:"region"`
	Endpoint                string `hcl:"endpoint" json:"endpoint"`
	CertificateAuthorityARN string `hcl:"certificate_authority_arn" json:"certificate_authority_arn"`
	SigningAlgorithm        string `hcl:"signing_algorithm" json:"signing_algorithm"`
	CASigningTemplateARN    string `hcl:"ca_signing_template_arn" json:"ca_signing_template_arn"`
	AssumeRoleARN           string `hcl:"assume_role_arn" json:"assume_role_arn"`
	SupplementalBundlePath  string `hcl:"supplemental_bundle_path" json:"supplemental_bundle_path"`
}

Configuration provides configuration context for the plugin

type PCAClient

PCAClient provides an interface which can be mocked to test the functionality of the plugin.

type PCAPlugin

type PCAPlugin struct {
	upstreamauthorityv1.UnsafeUpstreamAuthorityServer
	configv1.UnsafeConfigServer
	// contains filtered or unexported fields
}

PCAPlugin is the main representation of this upstreamauthority plugin

func New

func New() *PCAPlugin

New returns an instantiated plugin

func (*PCAPlugin) Configure

Configure sets up the plugin for use as an upstream authority

func (*PCAPlugin) MintX509CAAndSubscribe

MintX509CA mints an X509CA by submitting the CSR to ACM to be signed by the certificate authority

func (*PCAPlugin) PublishJWTKeyAndSubscribe

PublishJWTKey is not implemented by the wrapper and returns a codes.Unimplemented status

func (*PCAPlugin) SetLogger

func (p *PCAPlugin) SetLogger(log hclog.Logger)

Jump to

Keyboard shortcuts

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