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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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