Documentation ¶
Index ¶
- Variables
- func Create(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, ...) error
- func CreateValidationError(filePath string, message string) []*runtimev1.ReconcileError
- func Delete(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) error
- func ExistsInOlap(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) (bool, error)
- func GetDependencies(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) []string
- func IsEqual(ctx context.Context, cat1 *drivers.CatalogEntry, cat2 *drivers.CatalogEntry) bool
- func Register(t drivers.ObjectType, artifact EntityMigrator)
- func Rename(ctx context.Context, olap drivers.OLAPStore, from string, ...) error
- func SetSchema(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) error
- func Update(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, ...) error
- func Validate(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) []*runtimev1.ReconcileError
- type EntityMigrator
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrators = make(map[drivers.ObjectType]EntityMigrator)
Functions ¶
func CreateValidationError ¶ added in v0.16.0
func CreateValidationError(filePath string, message string) []*runtimev1.ReconcileError
func ExistsInOlap ¶
func GetDependencies ¶
func IsEqual ¶
func IsEqual(ctx context.Context, cat1 *drivers.CatalogEntry, cat2 *drivers.CatalogEntry) bool
IsEqual checks everything but the name
func Register ¶
func Register(t drivers.ObjectType, artifact EntityMigrator)
func Validate ¶
func Validate(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) []*runtimev1.ReconcileError
Validate also returns list of dependents
Types ¶
type EntityMigrator ¶
type EntityMigrator interface { Create(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, catalog *drivers.CatalogEntry) error Update(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, catalog *drivers.CatalogEntry) error Rename(ctx context.Context, olap drivers.OLAPStore, from string, catalog *drivers.CatalogEntry) error Delete(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) error GetDependencies(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) []string Validate(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) []*runtimev1.ReconcileError // IsEqual checks everything but the name IsEqual(ctx context.Context, cat1 *drivers.CatalogEntry, cat2 *drivers.CatalogEntry) bool ExistsInOlap(ctx context.Context, olap drivers.OLAPStore, catalog *drivers.CatalogEntry) (bool, error) }
Click to show internal directories.
Click to hide internal directories.