From 2050e86f1cc11c6daa3b0a09cd0904cd02b2cea2 Mon Sep 17 00:00:00 2001 From: andream16 Date: Thu, 5 Dec 2024 14:47:59 +0000 Subject: [PATCH] Adding empty postgres remote store. --- .../store/remote/potsgresql/store.go | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sdk/component/store/remote/potsgresql/store.go diff --git a/sdk/component/store/remote/potsgresql/store.go b/sdk/component/store/remote/potsgresql/store.go new file mode 100644 index 000000000..8872d4001 --- /dev/null +++ b/sdk/component/store/remote/potsgresql/store.go @@ -0,0 +1,36 @@ +package potsgresql + +import ( + "context" + + "github.com/smithy-security/smithy/sdk/component/uuid" + ocsf "github.com/smithy-security/smithy/sdk/gen/com/github/ocsf/ocsf_schema/v1" +) + +// TODO: implement in next PR. +type manager struct{} + +func (m manager) Close(ctx context.Context) error { + //TODO implement me + panic("implement me") +} + +func (m manager) Validate(finding *ocsf.VulnerabilityFinding) error { + //TODO implement me + panic("implement me") +} + +func (m manager) Read(ctx context.Context, instanceID uuid.UUID) ([]*ocsf.VulnerabilityFinding, error) { + //TODO implement me + panic("implement me") +} + +func (m manager) Update(ctx context.Context, instanceID uuid.UUID, findings []*ocsf.VulnerabilityFinding) error { + //TODO implement me + panic("implement me") +} + +func (m manager) Write(ctx context.Context, instanceID uuid.UUID, findings []*ocsf.VulnerabilityFinding) error { + //TODO implement me + panic("implement me") +}