Documentation ¶
Index ¶
- type Store
- func (s *Store) Delete(ctx context.Context, charts ...*chart.Chart) (int, error)
- func (s *Store) Index(ctx context.Context) error
- func (s *Store) Load(ctx context.Context, charts ...*chart.Chart) ([]*chart.Chart, error)
- func (s *Store) Store(ctx context.Context, charts ...*chart.Chart) (int, error)
- func (s *Store) Swap(ctx context.Context, charts ...*chart.Chart) (int, error)
- func (s *Store) Watch(ctx context.Context, charts ...*chart.Chart) (secret.Stream, error)
- type Stream
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 manages storage and retrieval of Spec objects in a MongoDB collection.
func NewStore ¶
func NewStore(collection *mongo.Collection) *Store
NewStore creates a new Store with the specified MongoDB collection.
func (*Store) Index ¶
Index ensures the collection has the required indexes and updates them if necessary.
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream represents a MongoDB change stream for tracking Spec changes.
Click to show internal directories.
Click to hide internal directories.