MCPcopy
hub / github.com/getsops/sops / mockKeyManagementServer

Struct mockKeyManagementServer

gcpkms/mock_kms_server_test.go:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35var _ status.Status
36
37type mockKeyManagementServer struct {
38 // Embed for forward compatibility.
39 // Tests will keep working if more methods are added
40 // in the future.
41 kmspb.KeyManagementServiceServer
42
43 reqs []proto.Message
44
45 // If set, all calls return this error.
46 err error
47
48 // responses to return if err == nil
49 resps []proto.Message
50}
51
52func (s *mockKeyManagementServer) ListKeyRings(ctx context.Context, req *kmspb.ListKeyRingsRequest) (*kmspb.ListKeyRingsResponse, error) {
53 md, _ := metadata.FromIncomingContext(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected