types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodedString

type EncodedString struct {
	Value    string `json:"value"`
	Encoding string `json:"encoding"`
}

type GitHttpHook

type GitHttpHook struct {
	HttpHook    `json:",inline"`
	GitProvider string
}

type HttpHook

type HttpHook struct {
	Body        []byte              `json:"body"`
	Headers     map[string][]string `json:"headers"`
	Url         string              `json:"url"`
	QueryParams []byte              `json:"queryParams,omitempty"`
	Metadata    map[string]string   `json:"metadata,omitempty"`
}

type M

type M map[string]interface{}

type Pagination

type Pagination struct {
	Page    int `json:"page,omitempty"`
	PerPage int `json:"per_page,omitempty"`
}

type SyncAction

type SyncAction string
const (
	SyncActionApply  SyncAction = "APPLY"
	SyncActionDelete SyncAction = "DELETE"
)

type SyncState

type SyncState string
const (
	SyncStateIdle            SyncState = "IDLE"
	SyncStateInQueue         SyncState = "IN_QUEUE"
	SyncStateAppliedAtAgent  SyncState = "APPLIED_AT_AGENT"
	SyncStateErroredAtAgent  SyncState = "ERRORED_AT_AGENT"
	SyncStateUpdatedAtAgent  SyncState = "UPDATED_AT_AGENT"
	SyncStateDeletingAtAgent SyncState = "DELETING_AT_AGENT"
	SyncStateDeletedAtAgent  SyncState = "DELETED_AT_AGENT"
)

type SyncStatus

type SyncStatus struct {
	SyncScheduledAt time.Time  `json:"syncScheduledAt,omitempty"`
	LastSyncedAt    time.Time  `json:"lastSyncedAt,omitempty"`
	Action          SyncAction `json:"action"`
	RecordVersion   int        `json:"recordVersion"`
	State           SyncState  `json:"state"`
	Error           *string    `json:"error,omitempty"`
}

func GenSyncStatus

func GenSyncStatus(action SyncAction, recordVersion int) SyncStatus

func GetSyncStatusForDeletion

func GetSyncStatusForDeletion(generation int64) SyncStatus

Jump to

Keyboard shortcuts

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