Versions in this module Expand all Collapse all v0 v0.7.1 Jul 25, 2023 v0.7.0 Jul 20, 2023 Changes in this version + const EntityBackup + const EntityResource + func StatusForToCreate(status Status) bool + func StatusForToUpdate(status Status) bool + func StatusIsSuccess(status Status) bool + type Backup struct + func NewBackup(store Store, t tenant.Tenant, resNames []string, desc string, ...) (*Backup, error) + 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 uuid.UUID + func BackupIDFrom(id string) (BackupID, error) + func (i BackupID) IsInvalid() bool + func (i BackupID) String() string + func (i BackupID) UUID() uuid.UUID + type BackupResult struct + ID BackupID + IgnoredResources []IgnoredResource + ResourceNames []string + type FromExistingOpt func(r *Resource) + func ReplaceStatus(status Status) FromExistingOpt + type IgnoredResource struct + Name string + Reason string + type Metadata struct + Description string + Labels map[string]string + Version int32 + type Name string + func NameFrom(name string) (Name, error) + func (n Name) String() string + type Resource struct + func FromExisting(existing *Resource, opts ...FromExistingOpt) *Resource + func NewResource(fullName, kind string, store Store, tnnt tenant.Tenant, meta *Metadata, ...) (*Resource, error) + func (r *Resource) Equal(incoming *Resource) bool + func (r *Resource) FullName() string + func (r *Resource) Kind() string + 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) 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) NameSections() []string + 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() string + func (r *Resource) UpdateTenant(tnnt tenant.Tenant) + func (r *Resource) UpdateURN(urn string) error + type Status string + const StatusCreateFailure + const StatusExistInStore + const StatusSkipped + const StatusSuccess + const StatusToCreate + const StatusToUpdate + const StatusUnknown + const StatusUpdateFailure + const StatusValidationFailure + const StatusValidationSuccess + func FromStringToStatus(status string) Status + func (s Status) String() string + type Store string + const Bigquery + func FromStringToStore(name string) (Store, error) + func (s Store) String() string + type SyncResponse struct + IgnoredResources []IgnoredResource + ResourceNames []string