Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
const ( ActionViewSync Action = "view_sync" ActionSyncCompleted Action = "sync_completed" ActionFileUndoPatch Action = "file_undo_patch" ActionFileUndoChange Action = "file_undo_change" ActionFileIgnore Action = "file_ignore" ActionFileRevert Action = "file_revert" ActionChangeLand Action = "change_land" ActionPreCheckoutOtherView Action = "pre_checkout_other_view" ActionPreCheckoutOtherWorkspace Action = "pre_checkout_other_workspace" ActionWorkspaceExtract Action = "workspace_extract" ActionChangeReverted Action = "change_reverted" ActionSuggestionApply Action = "suggestion_apply" )
type Snapshot ¶
type Snapshot struct { ID string `json:"id" db:"id"` // CommitID with the snapshotted content. I.E. to get a view state without the snapshot, soft reset it to the commitID's parent. CommitID string `json:"-" db:"commit_id"` CodebaseID string `json:"codebase_id" db:"codebase_id"` ViewID string `json:"view_id" db:"view_id"` // ViewID is optional. TODO: Make it nullable? WorkspaceID *string `json:"workspace_id" db:"workspace_id"` // Older entries might not have a workspace ID set CreatedAt time.Time `json:"-" db:"created_at"` NewFiles pq.StringArray `json:"new_files" db:"new_files"` // Unused, TODO: delete ChangedFiles pq.StringArray `json:"changed_files" db:"changed_files"` // Unused, TODO: delete DeletedFiles pq.StringArray `json:"deleted_files" db:"deleted_files"` // Unused, TODO: delete PreviousSnapshotID *string `json:"previous_snapshot_id" db:"previous_snapshot_id"` Action Action `json:"action" db:"action"` // The action that triggered the snapshot creations DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` // If the snapshot has been garbage collected }
func (*Snapshot) BranchName ¶
type SnapshotJSON ¶
Click to show internal directories.
Click to hide internal directories.