Documentation ¶
Index ¶
- func FromModelToResource(r *Resource) (*resource.Resource, error)
- type Backup
- type BackupRepository
- func (repo BackupRepository) Create(ctx context.Context, resourceBackup *resource.Backup) error
- func (repo BackupRepository) GetAll(ctx context.Context, tnnt tenant.Tenant, store resource.Store) ([]*resource.Backup, error)
- func (repo BackupRepository) GetByID(ctx context.Context, id resource.BackupID) (*resource.Backup, error)
- type Repository
- func (r Repository) ChangeNamespace(ctx context.Context, res *resource.Resource, newTenant tenant.Tenant) error
- func (r Repository) Create(ctx context.Context, resourceModel *resource.Resource) error
- func (r Repository) GetResources(ctx context.Context, tnnt tenant.Tenant, store resource.Store, names []string) ([]*resource.Resource, error)
- func (r Repository) ReadAll(ctx context.Context, tnnt tenant.Tenant, store resource.Store) ([]*resource.Resource, error)
- func (r Repository) ReadByFullName(ctx context.Context, tnnt tenant.Tenant, store resource.Store, fullName string) (*resource.Resource, error)
- func (r Repository) Update(ctx context.Context, resourceModel *resource.Resource) error
- func (r Repository) UpdateStatus(ctx context.Context, resources ...*resource.Resource) error
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backup ¶
type BackupRepository ¶
type BackupRepository struct {
// contains filtered or unexported fields
}
func NewBackupRepository ¶
func NewBackupRepository(pool *pgxpool.Pool) *BackupRepository
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(pool *pgxpool.Pool) *Repository
func (Repository) ChangeNamespace ¶ added in v0.8.0
func (Repository) GetResources ¶
func (Repository) ReadByFullName ¶
func (Repository) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.