Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusRequested = Status("requested") StatusInProgress = Status("in progress") StatusCompleted = Status("completed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
type Errors map[string]*SchemaErrors
func (Errors) GetSchemaErrors ¶ added in v0.6.6
func (e Errors) GetSchemaErrors(schema string) *SchemaErrors
type Request ¶
type Request struct {
Schema string
Tables []string
Status Status
Errors *SchemaErrors
}
func (*Request) HasFailedForTable ¶
func (*Request) MarkCompleted ¶
func (*Request) MarkInProgress ¶
func (r *Request) MarkInProgress()
type SchemaErrors ¶ added in v0.6.6
type SchemaErrors struct {
Schema string `json:"schema,omitempty"`
GlobalErrors []string `json:"snapshot,omitempty"`
TableErrors map[string]string `json:"tables,omitempty"`
}
func NewSchemaErrors ¶ added in v0.6.6
func NewSchemaErrors(schema string, err error) *SchemaErrors
func (*SchemaErrors) AddGlobalError ¶ added in v0.6.6
func (e *SchemaErrors) AddGlobalError(err error)
func (*SchemaErrors) AddTableError ¶ added in v0.6.6
func (e *SchemaErrors) AddTableError(table string, err error)
func (*SchemaErrors) Error ¶ added in v0.6.6
func (e *SchemaErrors) Error() string
func (*SchemaErrors) GetFailedTables ¶ added in v0.6.6
func (e *SchemaErrors) GetFailedTables() []string
func (*SchemaErrors) IsGlobalError ¶ added in v0.6.6
func (e *SchemaErrors) IsGlobalError() bool
func (*SchemaErrors) IsTableError ¶ added in v0.6.6
func (e *SchemaErrors) IsTableError(table string) bool
type Snapshot ¶
func (*Snapshot) GetSchemas ¶ added in v0.6.6
Click to show internal directories.
Click to hide internal directories.