MCPcopy
hub / github.com/Infisical/agent-vault / CAStore

Interface CAStore

internal/ca/soft.go:43–46  ·  view source on GitHub ↗

CAStore is the narrow persistence interface the CA needs to load/save its root certificate and encrypted private key from a shared database. When set on Options, the CA uses DB storage instead of local files.

Source from the content-addressed store, hash-verified

41// its root certificate and encrypted private key from a shared database.
42// When set on Options, the CA uses DB storage instead of local files.
43type CAStore interface {
44 GetCAState(ctx context.Context) (*CAStateRecord, error)
45 SetCAState(ctx context.Context, state *CAStateRecord) error
46}
47
48// CAStateRecord holds the CA root cert and encrypted key for DB storage.
49type CAStateRecord struct {

Callers 4

initFromDBMethod · 0.65
GetCAStateMethod · 0.65
initFromDBMethod · 0.65
SetCAStateMethod · 0.65

Implementers 3

SQLStoreinternal/store/sql_store.go
mockStoreinternal/server/server_test.go
caStoreAdaptercmd/server.go

Calls

no outgoing calls

Tested by

no test coverage detected