Documentation ¶
Index ¶
- Variables
- func AddVersion(ctx context.Context, client *secretmanager.Client, ...) (string, error)
- func FromCtx(ctx context.Context) *secretmanager.Client
- func GetSecret(ctx context.Context, client *secretmanager.Client, ...) (string, error)
- func PublishEvent(projectID, topicID string, data []byte, attributes map[string]string) (string, error)
- func WithCtx(ctx context.Context, l *secretmanager.Client) context.Context
- type FakeSecretManagerServer
- type FakeSecretManagerServerResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GcpSecretsCacheTTLInMinutes int = 5
)
Functions ¶
func AddVersion ¶
func PublishEvent ¶
Types ¶
type FakeSecretManagerServer ¶
type FakeSecretManagerServer struct { secretmanagerpb.UnimplementedSecretManagerServiceServer Responses map[string]FakeSecretManagerServerResponse }
func NewFakeServerAndClient ¶
func NewFakeServerAndClient(ctx context.Context, t *testing.T) (*FakeSecretManagerServer, *secretmanager.Client)
func (*FakeSecretManagerServer) AccessSecretVersion ¶
func (s *FakeSecretManagerServer) AccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest) (*secretmanagerpb.AccessSecretVersionResponse, error)
type FakeSecretManagerServerResponse ¶
type FakeSecretManagerServerResponse struct { Response *secretmanagerpb.AccessSecretVersionResponse Err error }
Click to show internal directories.
Click to hide internal directories.