model

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDestTypeNotFound   = errors.New("destination type not found for the destination ID")
	ErrDestDetail         = errors.New("error while getting destination details")
	ErrNoRunnableJob      = errors.New("no runnable job found")
	ErrDestNotImplemented = errors.New("job deletion not implemented for the destination")
	ErrInvalidDestination = errors.New("invalid destination")
)

Functions

This section is empty.

Types

type APIReqErr

type APIReqErr struct {
	StatusCode int
	Body       string
	Err        error
}

type Destination

type Destination struct {
	Config        map[string]interface{}
	DestinationID string
	Name          string
}

type Job

type Job struct {
	ID            int
	WorkspaceID   string
	DestinationID string
	Status        JobStatus
	Users         []User
	UpdatedAt     time.Time
}

type JobStatus

type JobStatus string
const (
	JobStatusUndefined    JobStatus = ""
	JobStatusPending      JobStatus = "pending"
	JobStatusRunning      JobStatus = "running"
	JobStatusComplete     JobStatus = "complete"
	JobStatusFailed       JobStatus = "failed"
	JobStatusNotSupported JobStatus = "unsupported"
	JobStatusAborted      JobStatus = "aborted"
)

type User added in v1.2.0

type User struct {
	ID         string
	Attributes map[string]string
}

Jump to

Keyboard shortcuts

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