github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/credentialmanager/state.go (about)

     1  // Copyright 2018 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package credentialmanager
     5  
     6  import (
     7  	"github.com/juju/juju/apiserver/common/credentialcommon"
     8  	"github.com/juju/juju/state"
     9  )
    10  
    11  type stateShim struct {
    12  	*state.State
    13  }
    14  
    15  func newStateShim(st *state.State) credentialcommon.StateBackend {
    16  	return &stateShim{st}
    17  }