package mock

import "github.com/aws/aws-sdk-go-v2/internal/awstesting/mock"

Index

Variables

var RSAPrivateKey = &rsa.PrivateKey{
	PublicKey: rsa.PublicKey{
		N: fromBase10("" /* 619 byte string literal not displayed */),
		E: 3,
	},
	D: fromBase10("" /* 618 byte string literal not displayed */),
	Primes: []*big.Int{
		fromBase10("" /* 311 byte string literal not displayed */),
		fromBase10("" /* 311 byte string literal not displayed */),
	},
}

RSAPrivateKey is used for testing functionality that requires some sort of private key. Taken from crypto/rsa/rsa_test.go

Credit to golang 1.11

Functions

func Config

func Config() aws.Config

Config returns a copy of the mock configuration for tests.

func NewMockClient

func NewMockClient(cfg aws.Config) *aws.Client

NewMockClient creates and initializes a client that will connect to the mock server

Source Files

mock.go

Version
v0.11.0
Published
Aug 23, 2019
Platform
windows/amd64
Imports
6 packages
Last checked
7 minutes ago

Tools for package owners.