types

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitState

type CommitState string
const (
	CommitStatePending CommitState = "pending"
	CommitStateSuccess CommitState = "success"
	CommitStateError   CommitState = "error"
	CommitStateFailed  CommitState = "failed"
)

type CommitStatus

type CommitStatus struct {
	sqlg.ObjectMeta

	ProjectID   string      `json:"project_id"`
	State       CommitState `json:"status"`
	CommitSHA   string      `json:"commit_sha"`
	RunCounter  uint64      `json:"run_counter"`
	Description string      `json:"description"`
	Context     string      `json:"context"`
}

func NewCommitStatus

func NewCommitStatus(tx *sql.Tx) *CommitStatus

type CommitStatusDelivery

type CommitStatusDelivery struct {
	sqlg.ObjectMeta

	Sequence uint64 `json:"sequence"`

	CommitStatusID string         `json:"commit_status_id"`
	DeliveryStatus DeliveryStatus `json:"delivery_status"`
	DeliveredAt    *time.Time     `json:"delivered_at"`
}

func NewCommitStatusDelivery

func NewCommitStatusDelivery(tx *sql.Tx) *CommitStatusDelivery

type DeliveryStatus

type DeliveryStatus string
const (
	DeliveryStatusNotDelivered  DeliveryStatus = "notDelivered"
	DeliveryStatusDelivered     DeliveryStatus = "delivered"
	DeliveryStatusDeliveryError DeliveryStatus = "deliveryError"
)

func DeliveryStatusFromStringSlice

func DeliveryStatusFromStringSlice(slice []string) ([]DeliveryStatus, error)

type LastRunEventSequence

type LastRunEventSequence struct {
	sqlg.ObjectMeta

	Value uint64 `json:"value"`
}

func NewLastRunEventSequence

func NewLastRunEventSequence(tx *sql.Tx) *LastRunEventSequence

type RunWebhook

type RunWebhook struct {
	sqlg.ObjectMeta

	Payload   []byte `json:"payload"`
	ProjectID string `json:"project_id"`
}

func NewRunWebhook

func NewRunWebhook(tx *sql.Tx) *RunWebhook

type RunWebhookDelivery

type RunWebhookDelivery struct {
	sqlg.ObjectMeta

	Sequence uint64 `json:"sequence"`

	RunWebhookID   string         `json:"run_webhook_id"`
	DeliveryStatus DeliveryStatus `json:"delivery_status"`
	DeliveredAt    *time.Time     `json:"delivered_at"`
	StatusCode     int            `json:"status_code"`
}

func NewRunWebhookDelivery

func NewRunWebhookDelivery(tx *sql.Tx) *RunWebhookDelivery

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "asc"
	SortDirectionDesc SortDirection = "desc"
)

Jump to

Keyboard shortcuts

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