MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ObjectTokenStore

Struct ObjectTokenStore

internal/store/objectstore.go:45–52  ·  view source on GitHub ↗

ObjectTokenStore persists configuration and authentication metadata using an S3-compatible object storage backend. Files are mirrored to a local workspace so existing file-based flows continue to operate.

Source from the content-addressed store, hash-verified

43// ObjectTokenStore persists configuration and authentication metadata using an S3-compatible object storage backend.
44// Files are mirrored to a local workspace so existing file-based flows continue to operate.
45type ObjectTokenStore struct {
46 client *minio.Client
47 cfg ObjectStoreConfig
48 spoolRoot string
49 configPath string
50 authDir string
51 mu sync.Mutex
52}
53
54// NewObjectTokenStore initializes an object storage backed token store.
55func NewObjectTokenStore(cfg ObjectStoreConfig) (*ObjectTokenStore, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected