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

Method GetCAState

cmd/server.go:791–804  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

789}
790
791func (a *caStoreAdapter) GetCAState(ctx context.Context) (*ca.CAStateRecord, error) {
792 state, err := a.db.GetCAState(ctx)
793 if err != nil {
794 return nil, err
795 }
796 if state == nil {
797 return nil, nil
798 }
799 return &ca.CAStateRecord{
800 RootCert: state.RootCert,
801 RootKeyCT: state.RootKeyCT,
802 RootKeyNonce: state.RootKeyNonce,
803 }, nil
804}
805
806func (a *caStoreAdapter) SetCAState(ctx context.Context, rec *ca.CAStateRecord) error {
807 return a.db.SetCAState(ctx, &store.CAState{

Callers

nothing calls this directly

Calls 1

GetCAStateMethod · 0.65

Tested by

no test coverage detected