models

package
v0.0.0-...-96f45e9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetId

type DatasetId struct {
	// contains filtered or unexported fields
}

func DatasetIntId

func DatasetIntId(intId int64) DatasetId

func DatasetNodeId

func DatasetNodeId(nodeId string) DatasetId

func (DatasetId) String

func (i DatasetId) String() string

type DatasetNotFoundError

type DatasetNotFoundError struct {
	OrgId int
	Id    DatasetId
}

func (DatasetNotFoundError) Error

func (e DatasetNotFoundError) Error() string

type Failure

type Failure struct {
	Id    string `json:"id"`
	Error string `json:"error"`
}

type PackageId

type PackageId struct {
	// contains filtered or unexported fields
}

func PackageIntId

func PackageIntId(intId int64) PackageId

func PackageNodeId

func PackageNodeId(nodeId string) PackageId

func (PackageId) String

func (i PackageId) String() string

type PackageNameUniquenessError

type PackageNameUniquenessError struct {
	OrgId    int
	Id       PackageId
	Name     string
	SQLError error
}

func (PackageNameUniquenessError) Error

func (PackageNameUniquenessError) Unwrap

func (e PackageNameUniquenessError) Unwrap() error

type PackageNotFoundError

type PackageNotFoundError struct {
	OrgId     int
	Id        PackageId
	DatasetId DatasetId
}

func (PackageNotFoundError) Error

func (e PackageNotFoundError) Error() string

type RestorePackageInfo

type RestorePackageInfo struct {
	Id       int64            `json:"id"`
	NodeId   string           `json:"nodeId"`
	Name     string           `json:"name"`
	ParentId *int64           `json:"parentId"`
	Type     packageType.Type `json:"type"`
}

func NewRestorePackageInfo

func NewRestorePackageInfo(p *pgdb.Package) RestorePackageInfo

type RestorePackageMessage

type RestorePackageMessage struct {
	OrgId     int                `json:"orgId"`
	DatasetId int64              `json:"datasetId"`
	UserId    string             `json:"userId"`
	Package   RestorePackageInfo `json:"package"`
}

func NewRestorePackageMessage

func NewRestorePackageMessage(orgId int, datasetId int64, userId string, toBeRestored *pgdb.Package) RestorePackageMessage

type RestoreRequest

type RestoreRequest struct {
	NodeIds []string `json:"nodeIds"`
	UserId  string   `json:"userId"`
}

type RestoreResponse

type RestoreResponse struct {
	Success  []string  `json:"success"`
	Failures []Failure `json:"failures"`
}

Jump to

Keyboard shortcuts

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