gsm

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGsmServer

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

FakeGsmServer hand-rolled fake Google Secret Manager server that uses httptest and the GSM library's http support to intercept and fake requests. I really wish I could just generate a mock :'(

func NewFakeGsm

func NewFakeGsm(t *testing.T) *FakeGsmServer

func (*FakeGsmServer) AssertExpectations

func (f *FakeGsmServer) AssertExpectations()

func (*FakeGsmServer) Close

func (f *FakeGsmServer) Close()

func (*FakeGsmServer) ExpectAccessSecretVersion

func (f *FakeGsmServer) ExpectAccessSecretVersion(project string, secret string, version string, payload []byte)

func (*FakeGsmServer) ExpectCreateNewSecret

func (f *FakeGsmServer) ExpectCreateNewSecret(project string, secret string, requestMatcher func(*secretmanagerpb.Secret) bool, result *secretmanagerpb.Secret)

func (*FakeGsmServer) ExpectCreateNewSecretVersion

func (f *FakeGsmServer) ExpectCreateNewSecretVersion(project string, secret string, payload []byte, result *secretmanagerpb.SecretVersion)

func (*FakeGsmServer) ExpectListSecretWithNameFilter

func (f *FakeGsmServer) ExpectListSecretWithNameFilter(project string, secret string, result *secretmanagerpb.Secret)

func (*FakeGsmServer) NewClient

func (f *FakeGsmServer) NewClient() *secretmanager.Client

Jump to

Keyboard shortcuts

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