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 Change
- type ChangeLog
- 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) Delete(ctx context.Context, resourceModel *resource.Resource) error
- func (r Repository) GetChangelogs(ctx context.Context, projectName tenant.ProjectName, ...) ([]*resource.ChangeLog, 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, onlyActive bool) ([]*resource.Resource, error)
- func (r Repository) ReadByFullName(ctx context.Context, tnnt tenant.Tenant, store resource.Store, fullName string, ...) (*resource.Resource, error)
- func (r Repository) ReadByURN(ctx context.Context, tnnt tenant.Tenant, urn resource.URN) (*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 ChangeLog ¶ added in v0.15.0
func FromChangelogRow ¶ added in v0.15.0
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) GetChangelogs ¶ added in v0.15.0
func (r Repository) GetChangelogs(ctx context.Context, projectName tenant.ProjectName, resourceName resource.Name) ([]*resource.ChangeLog, error)
func (Repository) GetResources ¶
func (Repository) ReadByFullName ¶
func (Repository) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.