Documentation ¶
Index ¶
- Constants
- func StatusForToCreate(status Status) bool
- func StatusForToDelete(status Status) bool
- func StatusForToUpdate(status Status) bool
- func StatusIsSuccess(status Status) bool
- type Backup
- func (b *Backup) Config() map[string]string
- func (b *Backup) CreatedAt() time.Time
- func (b *Backup) Description() string
- func (b *Backup) GetConfigOrDefaultFor(key, fallback string) string
- func (b *Backup) ID() BackupID
- func (b *Backup) ResourceNames() []string
- func (b *Backup) Store() Store
- func (b *Backup) Tenant() tenant.Tenant
- func (b *Backup) UpdateID(id uuid.UUID) error
- type BackupID
- type BackupResult
- type Change
- type ChangeLog
- type DeleteRequest
- type DeleteResponse
- type FromExistingOpt
- type IgnoredResource
- type Metadata
- type Name
- type Resource
- func (r *Resource) Equal(incoming *Resource) bool
- func (r *Resource) FullName() string
- func (r *Resource) GetUpdateImpact(incoming *Resource) UpdateImpact
- func (r *Resource) IsDeleted() bool
- func (r *Resource) Kind() string
- func (r *Resource) MarkDeleted() error
- func (r *Resource) MarkExistInStore() error
- func (r *Resource) MarkFailure() error
- func (r *Resource) MarkSkipped() error
- func (r *Resource) MarkSuccess() error
- func (r *Resource) MarkToCreate() error
- func (r *Resource) MarkToDelete() error
- func (r *Resource) MarkToUpdate() error
- func (r *Resource) MarkValidationFailure() error
- func (r *Resource) MarkValidationSuccess() error
- func (r *Resource) Metadata() *Metadata
- func (r *Resource) Name() Name
- func (r *Resource) Spec() map[string]any
- func (r *Resource) Status() Status
- func (r *Resource) Store() Store
- func (r *Resource) Tenant() tenant.Tenant
- func (r *Resource) URN() URN
- func (r *Resource) UpdateTenant(tnnt tenant.Tenant)
- func (r *Resource) UpdateURN(urn URN) error
- type Status
- type Store
- type SyncResponse
- type URN
- type UpdateImpact
Constants ¶
View Source
const ( EntityResourceChangelog = "resource_changelog" ChangelogChangeTypeCreate = "create" ChangelogChangeTypeUpdate = "update" ChangelogChangeTypeDelete = "delete" )
View Source
const (
EntityBackup = "backup"
)
Variables ¶
This section is empty.
Functions ¶
func StatusForToCreate ¶
func StatusForToDelete ¶ added in v0.12.0
func StatusForToUpdate ¶
func StatusIsSuccess ¶
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
func (*Backup) Description ¶
func (*Backup) GetConfigOrDefaultFor ¶
func (*Backup) ResourceNames ¶
type BackupID ¶
func BackupIDFrom ¶
type BackupResult ¶
type BackupResult struct { ID BackupID ResourceNames []string IgnoredResources []IgnoredResource }
type DeleteRequest ¶ added in v0.12.0
type DeleteResponse ¶ added in v0.12.0
type FromExistingOpt ¶
type FromExistingOpt func(r *Resource)
func ReplaceStatus ¶
func ReplaceStatus(status Status) FromExistingOpt
type IgnoredResource ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func FromExisting ¶
func FromExisting(existing *Resource, opts ...FromExistingOpt) *Resource
func NewResource ¶
func (*Resource) GetUpdateImpact ¶ added in v0.12.0
func (r *Resource) GetUpdateImpact(incoming *Resource) UpdateImpact
func (*Resource) MarkDeleted ¶ added in v0.12.0
func (*Resource) MarkExistInStore ¶
func (*Resource) MarkFailure ¶
func (*Resource) MarkSkipped ¶
func (*Resource) MarkSuccess ¶
func (*Resource) MarkToCreate ¶
func (*Resource) MarkToDelete ¶ added in v0.12.0
func (*Resource) MarkToUpdate ¶
func (*Resource) MarkValidationFailure ¶
func (*Resource) MarkValidationSuccess ¶
func (*Resource) UpdateTenant ¶ added in v0.8.0
type Status ¶
type Status string
const ( StatusUnknown Status = "unknown" StatusValidationFailure Status = "validation_failure" StatusValidationSuccess Status = "validation_success" StatusToCreate Status = "to_create" StatusToUpdate Status = "to_update" StatusToDelete Status = "to_delete" StatusDeleted Status = "deleted" StatusSkipped Status = "skipped" StatusCreateFailure Status = "create_failure" StatusUpdateFailure Status = "update_failure" StatusExistInStore Status = "exist_in_store" StatusSuccess Status = "success" StatusFailure Status = "failed" )
func FromStringToStatus ¶
type Store ¶
type Store string
Store represents the type of datasource, resource corresponds to
const (
Bigquery Store = "bigquery"
)
func FromStringToStore ¶
type SyncResponse ¶ added in v0.9.0
type SyncResponse struct { ResourceNames []string IgnoredResources []IgnoredResource }
type UpdateImpact ¶ added in v0.12.0
type UpdateImpact string
const ( EntityResource = "resource" UnspecifiedImpactChange UpdateImpact = "unspecified_impact" ResourceDataPipeLineImpact UpdateImpact = "data_impact" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.