Documentation ¶
Index ¶
- Constants
- func StatusForToCreate(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 FromExistingOpt
- type IgnoredResource
- type Metadata
- type Name
- type Resource
- 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
- type Store
- type SyncResponse
Constants ¶
View Source
const (
EntityBackup = "backup"
)
View Source
const (
EntityResource = "resource"
)
Variables ¶
This section is empty.
Functions ¶
func StatusForToCreate ¶
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 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) MarkExistInStore ¶
func (*Resource) MarkFailure ¶
func (*Resource) MarkSkipped ¶
func (*Resource) MarkSuccess ¶
func (*Resource) MarkToCreate ¶
func (*Resource) MarkToUpdate ¶
func (*Resource) MarkValidationFailure ¶
func (*Resource) MarkValidationSuccess ¶
func (*Resource) NameSections ¶
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" StatusSkipped Status = "skipped" StatusCreateFailure Status = "create_failure" StatusUpdateFailure Status = "update_failure" StatusExistInStore Status = "exist_in_store" StatusSuccess Status = "success" )
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 }
Click to show internal directories.
Click to hide internal directories.