code: func (c *ConsulProvider) getState() (uint64, *structs.CAConsulProviderState, error) {
  	state := c.Delegate.State()
  	idx, providerState, err := state.CAProviderState(c.id)
  	if err != nil {
  		return 0, nil, err
  	}
  
  	if providerState == nil {
  		return 0, nil, ErrNotInitialized
  	}
  
  	return idx, providerState, nil
  }
docs: // getState returns the current provider state from the state delegate, and returns
  // ErrNotInitialized if no entry is found.