Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteMeta(repository string, name string) error
- func (s *Store) GetConfigs(product string) (configs []*pbgo.ConfigResponse, err error)
- func (s *Store) GetLastConfig(product string) (config *pbgo.ConfigResponse, err error)
- func (s *Store) GetMeta(repository string) (map[string]json.RawMessage, error)
- func (s *Store) GetProducts() ([]string, error)
- func (s *Store) Open(readWrite bool) error
- func (s *Store) SetMeta(repository string, name string, meta json.RawMessage) error
- func (s *Store) StoreConfig(product string, config *pbgo.ConfigResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store allows storing configuration in a boltdb database
func (*Store) DeleteMeta ¶
DeleteMeta deletes a metadata
func (*Store) GetConfigs ¶
func (s *Store) GetConfigs(product string) (configs []*pbgo.ConfigResponse, err error)
GetConfigs returns all the stored configurations for a product
func (*Store) GetLastConfig ¶
func (s *Store) GetLastConfig(product string) (config *pbgo.ConfigResponse, err error)
GetLastConfig returns the last configuration for a product
func (*Store) GetProducts ¶
GetProducts returns all the product
func (*Store) SetMeta ¶
SetMeta stores a metadata The meta store is unbounded but it isn't a problem as theclient always store metas with ROLE.json. We won't have an infinite number of delegations meta as we only add manually 1 by product and they don't need to be cleaned up.
func (*Store) StoreConfig ¶
func (s *Store) StoreConfig(product string, config *pbgo.ConfigResponse) error
StoreConfig inserts a configuration into the database
Click to show internal directories.
Click to hide internal directories.