(ctx context.Context)
| 789 | } |
| 790 | |
| 791 | func (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 | |
| 806 | func (a *caStoreAdapter) SetCAState(ctx context.Context, rec *ca.CAStateRecord) error { |
| 807 | return a.db.SetCAState(ctx, &store.CAState{ |
nothing calls this directly
no test coverage detected