model

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 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")
	ErrInvalidDestination = errors.New("invalid destination")
	ErrRequestTimeout     = errors.New("request timeout")
	ErrDestNotSupported   = errors.New("destination not supported")
)

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{}
	DestDefConfig 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
	FailedAttempts int
}

type JobStatus

type JobStatus struct {
	Status Status
	Error  error
}

type Status added in v1.7.0

type Status string
const (
	JobStatusUndefined Status = ""
	JobStatusPending   Status = "pending"
	JobStatusRunning   Status = "running"
	JobStatusComplete  Status = "complete"
	JobStatusFailed    Status = "failed"
	JobStatusAborted   Status = "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