awsclient

package
v0.0.0-...-eb6414f Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MockParamValue   = "secretStringValue"
	MockHostedZoneID = "/hostedzone/Z119WBBTVP5WFX"
	MockeZoneName    = "test.com."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockR53

type MockR53 struct{}

func (*MockR53) ChangeResourceRecordSets

func (cl *MockR53) ChangeResourceRecordSets(ctx context.Context, params *route53.ChangeResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error)

func (*MockR53) ListHostedZones

func (cl *MockR53) ListHostedZones(ctx context.Context, params *route53.ListHostedZonesInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesOutput, error)

type MockSSM

type MockSSM struct{}

func (*MockSSM) GetParameter

func (cl *MockSSM) GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)

type R53Client

type R53Client interface {
	ChangeResourceRecordSets(ctx context.Context, params *route53.ChangeResourceRecordSetsInput, optFns ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error)
	ListHostedZones(ctx context.Context, params *route53.ListHostedZonesInput, optFns ...func(*route53.Options)) (*route53.ListHostedZonesOutput, error)
}

R53 is an interface used to enable mock client for testing. The subset of methods the AWS route53 client implements that we use are specified here.

func R53

func R53(ctx context.Context) (R53Client, error)

R53 returns a configured AWS Route53 client

type SSMClient

type SSMClient interface {
	GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}

func SSM

func SSM(ctx context.Context) (SSMClient, error)

SSM returns a configured AWS SSM client

Jump to

Keyboard shortcuts

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