Documentation
¶
Index ¶
- type BackupWrapper
- func (bw BackupWrapper) DeleteBackup(ctx context.Context, backupID model.StableID) error
- func (bw BackupWrapper) DeleteWithModelStoreIDs(ctx context.Context, ids ...manifest.ID) error
- func (bw BackupWrapper) GetBackup(ctx context.Context, backupID model.StableID) (*backup.Backup, error)
- func (bw BackupWrapper) GetBackups(ctx context.Context, filters ...store.FilterOption) ([]*backup.Backup, error)
- type ModelStore
- func (mms *ModelStore) Delete(ctx context.Context, s model.Schema, id model.StableID) error
- func (mms *ModelStore) DeleteWithModelStoreIDs(ctx context.Context, ids ...manifest.ID) error
- func (mms *ModelStore) Get(ctx context.Context, s model.Schema, id model.StableID, data model.Model) error
- func (mms *ModelStore) GetIDsForType(ctx context.Context, s model.Schema, tags map[string]string) ([]*model.BaseModel, error)
- func (mms *ModelStore) GetWithModelStoreID(ctx context.Context, s model.Schema, id manifest.ID, data model.Model) error
- func (mms *ModelStore) Put(ctx context.Context, s model.Schema, m model.Model) error
- func (mms *ModelStore) Update(ctx context.Context, s model.Schema, m model.Model) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupWrapper ¶
func (BackupWrapper) DeleteBackup ¶
func (BackupWrapper) DeleteWithModelStoreIDs ¶
func (BackupWrapper) GetBackups ¶
func (bw BackupWrapper) GetBackups( ctx context.Context, filters ...store.FilterOption, ) ([]*backup.Backup, error)
type ModelStore ¶
type ModelStore struct {
// contains filtered or unexported fields
}
func NewModelStoreMock ¶
func NewModelStoreMock(b *backup.Backup, err error) *ModelStore
func (*ModelStore) DeleteWithModelStoreIDs ¶
func (*ModelStore) GetIDsForType ¶
func (*ModelStore) GetWithModelStoreID ¶
Click to show internal directories.
Click to hide internal directories.