Documentation
¶
Index ¶
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶
type CatalogEntry ¶
type CatalogEntry struct {
Metadata state.ModelMetadata `json:"metadata"`
Download *DownloadSnapshot `json:"download,omitempty"`
}
type DownloadSnapshot ¶
type ImportEntryResult ¶
type ImportOptions ¶
type ImportOptions struct {
DryRun bool
}
type ImportResult ¶
type ImportResult struct {
DryRun bool `json:"dry_run"`
Creates int `json:"creates"`
Updates int `json:"updates"`
Skips int `json:"skips"`
Conflicts int `json:"conflicts"`
Entries []ImportEntryResult `json:"entries"`
}
func Import ¶
func Import(db *state.DB, r io.Reader, opts ImportOptions) (*ImportResult, error)
Click to show internal directories.
Click to hide internal directories.