Documentation ¶
Index ¶
- Constants
- type Options
- type Store
- func (c *Store) DeleteKeyPairs(ids []string) error
- func (c *Store) DeleteTrustGrantTokens(tokens []string) error
- func (c *Store) DeleteTrusts(ids []string) error
- func (c *Store) GetKeyPairs(ids []string) ([]*types.StoredData, error)
- func (c *Store) GetTrustGrantTokens(ids []string) ([]*types.StoredData, error)
- func (c *Store) GetTrusts(ids []string) ([]*types.StoredData, error)
- func (c *Store) Init() error
- func (c *Store) PutKeyPair(keypair *types.StoredData) (string, error)
- func (c *Store) PutTrust(trust *types.StoredData) (string, error)
- func (c *Store) PutTrustGrantToken(token *types.StoredData) (string, error)
- func (c *Store) Type() store.Type
- func (c *Store) WithLogFunc(logFunc func(level, message string, err error)) store.Store
- type TrustClientConfigData
Constants ¶
View Source
const ( DefaultTrustGrantBucket = "trustgrant" DefaultKeyPairBucket = "keypair" DefaultTrustBucket = "trust" LogLevelError = "error" LogLevelDebug = "debug" )
buckets and things
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Database string TrustGrantBucket string KeyPairBucket string TrustBucket string LogFunc func(level, message string, err error) }
Options store options
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store a boltdb store for the trust
func (*Store) DeleteKeyPairs ¶
DeleteKeyPairs deletes a list of key pairs
func (*Store) DeleteTrustGrantTokens ¶
DeleteTrustGrantTokens puts a registration token
func (*Store) DeleteTrusts ¶
DeleteTrusts deletes a list of trusts
func (*Store) GetKeyPairs ¶
func (c *Store) GetKeyPairs(ids []string) ([]*types.StoredData, error)
GetKeyPairs gets all keypairs
func (*Store) GetTrustGrantTokens ¶
func (c *Store) GetTrustGrantTokens(ids []string) ([]*types.StoredData, error)
GetTrustGrantTokens gets all the registration tokens
func (*Store) GetTrusts ¶
func (c *Store) GetTrusts(ids []string) ([]*types.StoredData, error)
GetTrusts gets all the trusts
func (*Store) PutKeyPair ¶
func (c *Store) PutKeyPair(keypair *types.StoredData) (string, error)
PutKeyPair puts a keypair
func (*Store) PutTrust ¶
func (c *Store) PutTrust(trust *types.StoredData) (string, error)
PutTrust puts a trust
func (*Store) PutTrustGrantToken ¶
func (c *Store) PutTrustGrantToken(token *types.StoredData) (string, error)
PutTrustGrantToken puts a registration token
type TrustClientConfigData ¶
type TrustClientConfigData struct {
Data string `json:"data" yaml:"data"`
}
TrustClientConfigData a json wrapper for putting config data
Click to show internal directories.
Click to hide internal directories.