gcpvaulttest

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIAMServer

func NewIAMServer() *httptest.Server

NewIAMServer creates a test IAM server.

func NewMetadataServer

func NewMetadataServer(serviceAcctEmail string) *httptest.Server

NewMetadataServer creates a test metadata server that returns the given email.

func NewVaultServer

func NewVaultServer(secrets map[string]interface{}) *httptest.Server

NewVaultServer is a stub Vault server for testing. It can be initialized with secrets if they're expected to be read-only by the service. Any writes will override any existing secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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