tenant

package
v0.0.0-...-614ca16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlanFileName = "plan.yaml"
	DataDir      = "data"
)
View Source
const ConnectionsCollection = "metabase.connections"
View Source
const JobsCollection = "metabase.jobs"
View Source
const JobsVersionsCollection = "metabase.jobs.versions"
View Source
const SchemasCollection = "metabase.schemas"
View Source
const ShapesCollection = "metabase.shapes"
View Source
const ShapesVersionsCollection = "metabase.shapes.versions"
View Source
const WritebacksCollection = "sync.writebacks"

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ID   string `yaml:"id"`
	Name string `yaml:"name"`
}

type Plan

type Plan struct {
	FromTenant               string             `yaml:"fromTenant"`
	ToTenant                 string             `yaml:"toTenant"`
	MongoConnection          bmongo.Connection  `yaml:"mongoConnection"`
	GoBetweenMongoConnection *bmongo.Connection `yaml:"goBetweenMongoConnection,omitempty"`
	FromAgents               []Agent            `yaml:"fromAgents"`
	ToAgents                 []Agent            `yaml:"toAgents"`
	AgentMapping             map[string]string  `yaml:"agentMapping"`
}

type Planner

type Planner struct {
	Dir  string
	Plan *Plan
	// contains filtered or unexported fields
}

func NewPlanner

func NewPlanner(dir string, log *logrus.Entry) (*Planner, error)

func (*Planner) Dump

func (p *Planner) Dump()

func (*Planner) EditPlan

func (p *Planner) EditPlan() error

func (*Planner) Load

func (p *Planner) Load() error

func (*Planner) PerformExport

func (p *Planner) PerformExport() error

func (*Planner) PerformImport

func (p *Planner) PerformImport() error

func (*Planner) Save

func (p *Planner) Save() error

func (*Planner) ValidatePlan

func (p *Planner) ValidatePlan() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL