fix(store/s3api): remove vestigal experiment

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-09-07 05:14:47 +00:00
parent 22f45a4a79
commit 0e12bd327e

View File

@@ -6,11 +6,10 @@ import (
"fmt"
"io"
"strconv"
"time"
"strings"
"time"
"github.com/TecharoHQ/anubis/lib/store"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
@@ -19,21 +18,6 @@ type Store struct {
bucket string
}
// staticProvider is a minimal aws.CredentialsProvider implementation to avoid
// pulling a separate credentials module.
type staticProvider struct {
akid string
secret string
}
func (p staticProvider) Retrieve(ctx context.Context) (aws.Credentials, error) {
return aws.Credentials{
AccessKeyID: p.akid,
SecretAccessKey: p.secret,
Source: "static",
}, nil
}
func (s *Store) Delete(ctx context.Context, key string) error {
normKey := strings.ReplaceAll(key, ":", "/")
// Emulate not found by probing first.