Documentation
¶
Index ¶
- Variables
- func Create(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, ...) error
- func Delete(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) error
- func ExistsInOlap(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) (bool, error)
- func GetDependencies(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) []string
- func IsEqual(ctx context.Context, cat1 *api.CatalogObject, cat2 *api.CatalogObject) bool
- func Register(name string, artifact EntityMigrator)
- func Rename(ctx context.Context, olap drivers.OLAPStore, from string, ...) error
- func Update(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, ...) error
- func Validate(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) error
- type EntityMigrator
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrators = make(map[string]EntityMigrator)
Functions ¶
func ExistsInOlap ¶
func GetDependencies ¶
func IsEqual ¶
func IsEqual(ctx context.Context, cat1 *api.CatalogObject, cat2 *api.CatalogObject) bool
IsEqual checks everything but the name
func Register ¶
func Register(name string, artifact EntityMigrator)
Types ¶
type EntityMigrator ¶
type EntityMigrator interface { Create(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, catalog *api.CatalogObject) error Update(ctx context.Context, olap drivers.OLAPStore, repo drivers.RepoStore, catalog *api.CatalogObject) error Rename(ctx context.Context, olap drivers.OLAPStore, from string, catalog *api.CatalogObject) error Delete(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) error GetDependencies(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) []string Validate(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) error // IsEqual checks everything but the name IsEqual(ctx context.Context, cat1 *api.CatalogObject, cat2 *api.CatalogObject) bool ExistsInOlap(ctx context.Context, olap drivers.OLAPStore, catalog *api.CatalogObject) (bool, error) }
Click to show internal directories.
Click to hide internal directories.