aws

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package aws is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIn

func BuiltIn() catalog.Plugin

Types

type MockPCAClient

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

MockPCAClient is a mock of PCAClient interface

func NewMockPCAClient

func NewMockPCAClient(ctrl *gomock.Controller) *MockPCAClient

NewMockPCAClient creates a new mock instance

func (*MockPCAClient) DescribeCertificateAuthorityWithContext

func (m *MockPCAClient) DescribeCertificateAuthorityWithContext(arg0 aws.Context, arg1 *acmpca.DescribeCertificateAuthorityInput, arg2 ...request.Option) (*acmpca.DescribeCertificateAuthorityOutput, error)

DescribeCertificateAuthorityWithContext mocks base method

func (*MockPCAClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPCAClient) GetCertificateWithContext

func (m *MockPCAClient) GetCertificateWithContext(arg0 aws.Context, arg1 *acmpca.GetCertificateInput, arg2 ...request.Option) (*acmpca.GetCertificateOutput, error)

GetCertificateWithContext mocks base method

func (*MockPCAClient) IssueCertificateWithContext

func (m *MockPCAClient) IssueCertificateWithContext(arg0 aws.Context, arg1 *acmpca.IssueCertificateInput, arg2 ...request.Option) (*acmpca.IssueCertificateOutput, error)

IssueCertificateWithContext mocks base method

func (*MockPCAClient) WaitUntilCertificateIssuedWithContext

func (m *MockPCAClient) WaitUntilCertificateIssuedWithContext(arg0 aws.Context, arg1 *acmpca.GetCertificateInput, arg2 ...request.WaiterOption) error

WaitUntilCertificateIssuedWithContext mocks base method

type MockPCAClientMockRecorder

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

MockPCAClientMockRecorder is the mock recorder for MockPCAClient

func (*MockPCAClientMockRecorder) DescribeCertificateAuthorityWithContext

func (mr *MockPCAClientMockRecorder) DescribeCertificateAuthorityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DescribeCertificateAuthorityWithContext indicates an expected call of DescribeCertificateAuthorityWithContext

func (*MockPCAClientMockRecorder) GetCertificateWithContext

func (mr *MockPCAClientMockRecorder) GetCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetCertificateWithContext indicates an expected call of GetCertificateWithContext

func (*MockPCAClientMockRecorder) IssueCertificateWithContext

func (mr *MockPCAClientMockRecorder) IssueCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

IssueCertificateWithContext indicates an expected call of IssueCertificateWithContext

func (*MockPCAClientMockRecorder) WaitUntilCertificateIssuedWithContext

func (mr *MockPCAClientMockRecorder) WaitUntilCertificateIssuedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

WaitUntilCertificateIssuedWithContext indicates an expected call of WaitUntilCertificateIssuedWithContext

type PCAClient

type PCAClient interface {
	DescribeCertificateAuthorityWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityInput, ...request.Option) (*acmpca.DescribeCertificateAuthorityOutput, error)
	IssueCertificateWithContext(aws.Context, *acmpca.IssueCertificateInput, ...request.Option) (*acmpca.IssueCertificateOutput, error)
	WaitUntilCertificateIssuedWithContext(aws.Context, *acmpca.GetCertificateInput, ...request.WaiterOption) error
	GetCertificateWithContext(aws.Context, *acmpca.GetCertificateInput, ...request.Option) (*acmpca.GetCertificateOutput, error)
}

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

type PCAPlugin

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

PCAPlugin is the main representation of this upstreamca plugin

func New

func New() *PCAPlugin

New returns an instantiated plugin

func (*PCAPlugin) Configure

Configure sets up the plugin for use as an upstream CA

func (*PCAPlugin) GetPluginInfo

GetPluginInfo returns information about this plugin to Spire server

func (*PCAPlugin) SetLogger

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

func (*PCAPlugin) SubmitCSR

SubmitCSR submits the CSR to ACM to be signed by the certificate authority

type PCAPluginConfiguration

type PCAPluginConfiguration struct {
	Region                  string `hcl:"region" json:"region"`
	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"`
}

PCAPluginConfiguration provides configuration context for the plugin

Jump to

Keyboard shortcuts

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