Documentation ¶
Index ¶
- type FakeGsmServer
- func (f *FakeGsmServer) AssertExpectations()
- func (f *FakeGsmServer) Close()
- func (f *FakeGsmServer) ExpectAccessSecretVersion(project string, secret string, version string, payload []byte)
- func (f *FakeGsmServer) ExpectCreateNewSecret(project string, secret string, ...)
- func (f *FakeGsmServer) ExpectCreateNewSecretVersion(project string, secret string, payload []byte, ...)
- func (f *FakeGsmServer) ExpectListSecretWithNameFilter(project string, secret string, result *secretmanagerpb.Secret)
- func (f *FakeGsmServer) NewClient() *secretmanager.Client
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
Click to show internal directories.
Click to hide internal directories.