Documentation ¶
Index ¶
- Variables
- type APIToken
- type Account
- type AccountFeatures
- type AppProjectReadModelEventPayload
- type Application
- type ApplicationEdge
- type ApplicationPage
- type ApplicationReadModelEventPayload
- type ApplicationSlice
- type ArgoCDApplicationStatus
- type BaseEntity
- type CalendarEventPayloadData
- type CommonGitEventPayloadData
- type Component
- type ComponentEdge
- type ComponentPage
- type ComponentReadModelEventPayload
- type ComponentSlice
- type Customer
- type Edge
- type Entity
- type EntityReference
- type Error
- type ErrorContext
- type ErrorLevels
- type Event
- type EventPayload
- type EventPayloadData
- type EventPayloadEdge
- type EventPayloadPage
- type EventPayloadReadModelEventPayload
- type EventPayloadSlice
- type EventSource
- type EventSourceEdge
- type EventSourcePage
- type EventSourceReadModelEventPayload
- type EventSourceSlice
- type GenericEntity
- type GenericEntityEdge
- type GenericEntityPage
- type GenericEntitySlice
- type GitOpsEdge
- type GitOpsSlice
- type GitPRComment
- type GitPREventPayloadData
- type GitPr
- type GitPrFork
- type GitPush
- type GitPushCommit
- type GitPushCommitRevision
- type GitPushCommitTargetRevision
- type GitPushEventPayloadData
- type GitPushPayloadDataTypes
- type GitPushTag
- type GitPushTagRevision
- type GitRelease
- type GitReleaseEventPayloadData
- type GitSource
- type GitSourceEdge
- type GitSourcePage
- type GitSourceReadModelEventPayload
- type GitSourceSlice
- type GitUnknownEventPayloadData
- type GithubEvent
- type GitopsEntity
- type GitopsEntitySource
- type HealthError
- type HealthErrorCodes
- type HealthStatus
- type Initiator
- type InstallationStatus
- type K8sLogicEntity
- type K8sStandardEntity
- type Me
- type NamespacedFindOneArgs
- type NodeStatus
- type ObjectMeta
- type Page
- type PageInfo
- type PayloadDataTypes
- type Pipeline
- type PipelineAverageDurationStats
- type PipelineAverageDurationStatsData
- type PipelineAverageDurationStatsInfo
- type PipelineCommittersStats
- type PipelineCommittersStatsData
- type PipelineCommittersStatsInfo
- type PipelineEdge
- type PipelineExecutionsStats
- type PipelineExecutionsStatsData
- type PipelineExecutionsStatsInfo
- type PipelineHistoryArgs
- type PipelinePage
- type PipelineReadModelEventPayload
- type PipelineSlice
- type PipelineSpec
- type PipelineStatistics
- type PipelineStatisticsFilterTimeRange
- type PipelineSuccessRateStats
- type PipelineSuccessRateStatsData
- type PipelineSuccessRateStatsInfo
- type PipelinesFilterArgs
- type PipelinesStatisticsFilterArgs
- type Progress
- type Project
- type ProjectBasedEntity
- type ProjectEdge
- type ProjectPage
- type ProjectReadModelEventPayload
- type ProjectSlice
- type ReadModelEventPayload
- type ReadModelEventResponse
- type Release
- type Repository
- type ResourceAction
- type ResourceEvent
- type Runtime
- type RuntimeCreationResponse
- type RuntimeEdge
- type RuntimeInstallationArgs
- type RuntimePage
- type RuntimeReadModelEventPayload
- type RuntimeSlice
- type Sensor
- type SensorEdge
- type SensorPage
- type SensorReadModelEventPayload
- type SensorSlice
- type Slice
- type SliceInfo
- type SlicePaginationArgs
- type StatsTimePeriodData
- type StatusHistoryItem
- type StringPair
- type SwitchAccountResponse
- type SyncError
- type SyncErrorCodes
- type SyncStatus
- type SyncSuccess
- type UnknownEventPayloadData
- type UserDetails
- type UserInfo
- type UserRole
- type UserStatus
- type Workflow
- type WorkflowContainerSpec
- type WorkflowContainerTemplate
- type WorkflowDAGTask
- type WorkflowDAGTemplate
- type WorkflowEdge
- type WorkflowNodePhases
- type WorkflowPage
- type WorkflowPhases
- type WorkflowReadModelEventPayload
- type WorkflowResourceTemplate
- type WorkflowScriptTemplate
- type WorkflowSlice
- type WorkflowSpec
- type WorkflowSpecNameOnlyTemplate
- type WorkflowSpecTemplate
- type WorkflowStatus
- type WorkflowStep
- type WorkflowStepsTemplate
- type WorkflowSuspendedTemplate
- type WorkflowTemplate
- type WorkflowTemplateEdge
- type WorkflowTemplatePage
- type WorkflowTemplateReadModelEventPayload
- type WorkflowTemplateRef
- type WorkflowTemplateSlice
- type WorkflowsFilterArgs
Constants ¶
This section is empty.
Variables ¶
var AllErrorLevels = []ErrorLevels{ ErrorLevelsError, ErrorLevelsWarning, }
var AllGitPushPayloadDataTypes = []GitPushPayloadDataTypes{ GitPushPayloadDataTypesBranch, GitPushPayloadDataTypesTag, }
var AllHealthErrorCodes = []HealthErrorCodes{ HealthErrorCodesBrokenReference, HealthErrorCodesInsufficientResources, HealthErrorCodesTransitiveError, HealthErrorCodesUnknown, }
var AllHealthStatus = []HealthStatus{ HealthStatusDegraded, HealthStatusHealthy, HealthStatusMissing, HealthStatusProgressing, HealthStatusSuspended, HealthStatusUnknown, }
var AllInstallationStatus = []InstallationStatus{ InstallationStatusCompleted, InstallationStatusFailed, InstallationStatusInProgress, }
var AllPayloadDataTypes = []PayloadDataTypes{ PayloadDataTypesCalendar, PayloadDataTypesGit, PayloadDataTypesUnknown, }
var AllPipelineStatisticsFilterTimeRange = []PipelineStatisticsFilterTimeRange{ PipelineStatisticsFilterTimeRangeLast30Days, PipelineStatisticsFilterTimeRangeLast7Days, PipelineStatisticsFilterTimeRangeLast90Days, }
var AllResourceAction = []ResourceAction{ ResourceActionAdded, ResourceActionDeleted, ResourceActionUpdated, }
var AllSyncErrorCodes = []SyncErrorCodes{ SyncErrorCodesInvalidSpec, SyncErrorCodesUnknown, }
var AllSyncStatus = []SyncStatus{ SyncStatusOutOfSync, SyncStatusSynced, SyncStatusUnknown, }
var AllSyncSuccess = []SyncSuccess{ SyncSuccessFailure, SyncSuccessSuccess, }
var AllUserRole = []UserRole{ UserRoleAccountAdmin, UserRoleAdmin, UserRoleUser, }
var AllUserStatus = []UserStatus{ UserStatusNew, UserStatusPending, UserStatusSuspended, UserStatusUnverifed, }
var AllWorkflowNodePhases = []WorkflowNodePhases{ WorkflowNodePhasesError, WorkflowNodePhasesFailed, WorkflowNodePhasesOmitted, WorkflowNodePhasesPending, WorkflowNodePhasesRunning, WorkflowNodePhasesSkipped, WorkflowNodePhasesSucceeded, }
var AllWorkflowPhases = []WorkflowPhases{ WorkflowPhasesError, WorkflowPhasesFailed, WorkflowPhasesPending, WorkflowPhasesRunning, WorkflowPhasesSucceeded, }
Functions ¶
This section is empty.
Types ¶
type APIToken ¶
type APIToken struct { // The token to use in runtime installation and other requests Token *string `json:"token"` }
"Generate api token result
type Account ¶
type Account struct { // The account id ID string `json:"id"` // The account unique name Name string `json:"name"` // Show to feature flags status for this account Features *AccountFeatures `json:"features"` }
Account is logical entity that group together users pipeliens and more
type AccountFeatures ¶ added in v0.34.4
type AccountFeatures struct { // Support ability to toggle between dark and light mode ThemeToggle *bool `json:"themeToggle"` }
Account Features flags
type AppProjectReadModelEventPayload ¶ added in v0.34.6
type AppProjectReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
AppProjectReadModelEventPayload type
func (AppProjectReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (AppProjectReadModelEventPayload) IsReadModelEventPayload()
type Application ¶ added in v0.30.3
type Application struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // History of the application History *GitOpsSlice `json:"history"` // Version of the entity (generation) Version *int `json:"version"` // Is this the latest version of this entity Latest *bool `json:"latest"` // Entity source Source *GitopsEntitySource `json:"source"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Desired manifest DesiredManifest *string `json:"desiredManifest"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Projects Projects []string `json:"projects"` // Updated At UpdatedAt *string `json:"updatedAt"` // Path Path *string `json:"path"` // RepoURL RepoURL *string `json:"repoURL"` // Number of resources Size *int `json:"size"` // Revision Revision *string `json:"revision"` // Status Status *ArgoCDApplicationStatus `json:"status"` }
Application entity
func (Application) IsBaseEntity ¶ added in v0.30.3
func (Application) IsBaseEntity()
func (Application) IsEntity ¶ added in v0.30.3
func (Application) IsEntity()
func (Application) IsGitopsEntity ¶ added in v0.30.3
func (Application) IsGitopsEntity()
func (Application) IsProjectBasedEntity ¶ added in v0.30.3
func (Application) IsProjectBasedEntity()
type ApplicationEdge ¶ added in v0.30.3
type ApplicationEdge struct { // Node contains the actual application data Node *Application `json:"node"` // Cursor Cursor string `json:"cursor"` }
Application Edge
func (ApplicationEdge) IsEdge ¶ added in v0.30.3
func (ApplicationEdge) IsEdge()
type ApplicationPage ¶ added in v0.30.3
type ApplicationPage struct { // Total amount of applications TotalCount int `json:"totalCount"` // Application edges Edges []*ApplicationEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Application Page
func (ApplicationPage) IsPage ¶ added in v0.30.3
func (ApplicationPage) IsPage()
type ApplicationReadModelEventPayload ¶ added in v0.34.6
type ApplicationReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
ApplicationReadModelEventPayload type
func (ApplicationReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (ApplicationReadModelEventPayload) IsReadModelEventPayload()
type ApplicationSlice ¶ added in v0.30.3
type ApplicationSlice struct { // Application edges Edges []*ApplicationEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Application Slice
func (ApplicationSlice) IsSlice ¶ added in v0.30.3
func (ApplicationSlice) IsSlice()
type ArgoCDApplicationStatus ¶ added in v0.31.2
type ArgoCDApplicationStatus struct { // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Sync started at SyncStartedAt *string `json:"syncStartedAt"` // Sync finished at SyncFinishedAt *string `json:"syncFinishedAt"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Revision Revision string `json:"revision"` }
Argo CD Application status
type CalendarEventPayloadData ¶ added in v0.30.3
type CalendarEventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // TBD Schedule string `json:"schedule"` // TBD Interval string `json:"interval"` // TBD Timezone string `json:"timezone"` // TBD Metadata string `json:"metadata"` }
Calendar event payload data
func (CalendarEventPayloadData) IsEventPayloadData ¶ added in v0.30.3
func (CalendarEventPayloadData) IsEventPayloadData()
type CommonGitEventPayloadData ¶ added in v0.31.2
type CommonGitEventPayloadData interface {
IsCommonGitEventPayloadData()
}
"Common events properties
type Component ¶
type Component struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // Self entity reference for the real k8s entity in case of codefresh logical entity Self *Application `json:"self"` // History of the component History *GitOpsSlice `json:"history"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Projects Projects []string `json:"projects"` // Component's version Version string `json:"version"` }
Component entity
func (Component) IsBaseEntity ¶
func (Component) IsBaseEntity()
func (Component) IsK8sLogicEntity ¶ added in v0.30.3
func (Component) IsK8sLogicEntity()
func (Component) IsProjectBasedEntity ¶
func (Component) IsProjectBasedEntity()
type ComponentEdge ¶
type ComponentEdge struct { // Node contains the actual component data Node *Component `json:"node"` // Cursor Cursor string `json:"cursor"` }
Component Edge
func (ComponentEdge) IsEdge ¶
func (ComponentEdge) IsEdge()
type ComponentPage ¶
type ComponentPage struct { // Total amount of components TotalCount int `json:"totalCount"` // Component edges Edges []*ComponentEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Component Page
func (ComponentPage) IsPage ¶
func (ComponentPage) IsPage()
type ComponentReadModelEventPayload ¶ added in v0.34.6
type ComponentReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
ComponentReadModelEventPayload type
func (ComponentReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (ComponentReadModelEventPayload) IsReadModelEventPayload()
type ComponentSlice ¶
type ComponentSlice struct { // Component edges Edges []*ComponentEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Component Slice
func (ComponentSlice) IsSlice ¶
func (ComponentSlice) IsSlice()
type EntityReference ¶ added in v0.34.6
type EntityReference struct { // GVK/group Group *string `json:"group"` // GVK/version Version *string `json:"version"` // GVK/kind Kind *string `json:"kind"` // Resource name Name *string `json:"name"` // Resource namespace Namespace *string `json:"namespace"` }
Db Entity Reference
type ErrorContext ¶ added in v0.32.3
type ErrorContext struct { // Repo url RepoURL string `json:"repoURL"` // Related revision Revision string `json:"revision"` // Git commit message CommitMessage *string `json:"commitMessage"` // Git commit date CommitDate *string `json:"commitDate"` // Git commit author CommitAuthor *string `json:"commitAuthor"` // Path to related file Path string `json:"path"` // Related line Line *int `json:"line"` // Commit url CommitURL *string `json:"commitUrl"` // Commit url with file FileURL *string `json:"fileUrl"` }
Error Context
type ErrorLevels ¶ added in v0.32.3
type ErrorLevels string
Error severity levels
const ( // Error - The resource will not function correctly ErrorLevelsError ErrorLevels = "ERROR" // Warning - The resource may not function correctly ErrorLevelsWarning ErrorLevels = "WARNING" )
func (ErrorLevels) IsValid ¶ added in v0.32.3
func (e ErrorLevels) IsValid() bool
func (ErrorLevels) MarshalGQL ¶ added in v0.32.3
func (e ErrorLevels) MarshalGQL(w io.Writer)
func (ErrorLevels) String ¶ added in v0.32.3
func (e ErrorLevels) String() string
func (*ErrorLevels) UnmarshalGQL ¶ added in v0.32.3
func (e *ErrorLevels) UnmarshalGQL(v interface{}) error
type EventPayload ¶ added in v0.30.3
type EventPayload struct { // UID of event UID *string `json:"uid"` // Content of the event Data *string `json:"data"` // Time Time *string `json:"time"` // Event source EventSource *EventSource `json:"eventSource"` // Event name EventName *string `json:"eventName"` // Event type EventType *string `json:"eventType"` // Account Account *string `json:"account"` // Runtime Runtime *string `json:"runtime"` }
Event payload entity
func (EventPayload) IsEntity ¶ added in v0.30.3
func (EventPayload) IsEntity()
type EventPayloadData ¶ added in v0.30.3
type EventPayloadData interface {
IsEventPayloadData()
}
Event payload data types
type EventPayloadEdge ¶ added in v0.30.3
type EventPayloadEdge struct { // Node contains the actual event payload data Node *EventPayload `json:"node"` // Cursor Cursor string `json:"cursor"` }
EventPayload Edge
func (EventPayloadEdge) IsEdge ¶ added in v0.30.3
func (EventPayloadEdge) IsEdge()
type EventPayloadPage ¶ added in v0.30.3
type EventPayloadPage struct { // Total amount of EventPayload TotalCount int `json:"totalCount"` // EventPayload edges Edges []*EventPayloadEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
EventPayload Page
func (EventPayloadPage) IsPage ¶ added in v0.30.3
func (EventPayloadPage) IsPage()
type EventPayloadReadModelEventPayload ¶ added in v0.34.6
type EventPayloadReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
EventPayloadReadModelEventPayload type
func (EventPayloadReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (EventPayloadReadModelEventPayload) IsReadModelEventPayload()
type EventPayloadSlice ¶ added in v0.30.3
type EventPayloadSlice struct { // EventPayload edges Edges []*EventPayloadEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
EventPayload Slice
func (EventPayloadSlice) IsSlice ¶ added in v0.30.3
func (EventPayloadSlice) IsSlice()
type EventSource ¶
type EventSource struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // History of the event-source History *GitOpsSlice `json:"history"` // Version of the entity Version *int `json:"version"` // Is this the latest version of this entity Latest *bool `json:"latest"` // Entity source Source *GitopsEntitySource `json:"source"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Desired manifest DesiredManifest *string `json:"desiredManifest"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Projects Projects []string `json:"projects"` }
Event source entity
func (EventSource) IsBaseEntity ¶
func (EventSource) IsBaseEntity()
func (EventSource) IsEntity ¶
func (EventSource) IsEntity()
func (EventSource) IsGitopsEntity ¶
func (EventSource) IsGitopsEntity()
func (EventSource) IsProjectBasedEntity ¶
func (EventSource) IsProjectBasedEntity()
type EventSourceEdge ¶
type EventSourceEdge struct { // Node contains the actual event source data Node *EventSource `json:"node"` // Cursor Cursor string `json:"cursor"` }
Event source Edge
func (EventSourceEdge) IsEdge ¶
func (EventSourceEdge) IsEdge()
type EventSourcePage ¶
type EventSourcePage struct { // Total amount of event sources TotalCount int `json:"totalCount"` // Event source edges Edges []*EventSourceEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Event source Page
func (EventSourcePage) IsPage ¶
func (EventSourcePage) IsPage()
type EventSourceReadModelEventPayload ¶ added in v0.34.6
type EventSourceReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
EventSourceReadModelEventPayload type
func (EventSourceReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (EventSourceReadModelEventPayload) IsReadModelEventPayload()
type EventSourceSlice ¶
type EventSourceSlice struct { // Event source edges Edges []*EventSourceEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Event source Slice
func (EventSourceSlice) IsSlice ¶
func (EventSourceSlice) IsSlice()
type GenericEntity ¶ added in v0.34.11
type GenericEntity struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // History of the generic entity History *GitOpsSlice `json:"history"` // Version of the entity Version *int `json:"version"` // Is this the latest version of this entity Latest *bool `json:"latest"` // Entity source Source *GitopsEntitySource `json:"source"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Desired manifest DesiredManifest *string `json:"desiredManifest"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Projects Projects []string `json:"projects"` }
Generic entity
func (GenericEntity) IsBaseEntity ¶ added in v0.34.11
func (GenericEntity) IsBaseEntity()
func (GenericEntity) IsEntity ¶ added in v0.34.11
func (GenericEntity) IsEntity()
func (GenericEntity) IsGitopsEntity ¶ added in v0.34.11
func (GenericEntity) IsGitopsEntity()
func (GenericEntity) IsProjectBasedEntity ¶ added in v0.34.11
func (GenericEntity) IsProjectBasedEntity()
type GenericEntityEdge ¶ added in v0.34.11
type GenericEntityEdge struct { // Node contains the actual app-project data Node *GenericEntity `json:"node"` // Cursor Cursor string `json:"cursor"` }
GenericEntity Edge
func (GenericEntityEdge) IsEdge ¶ added in v0.34.11
func (GenericEntityEdge) IsEdge()
type GenericEntityPage ¶ added in v0.34.11
type GenericEntityPage struct { // Total amount of app-projects TotalCount int `json:"totalCount"` // App project edges Edges []*GenericEntityEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
GenericEntity Page
func (GenericEntityPage) IsPage ¶ added in v0.34.11
func (GenericEntityPage) IsPage()
type GenericEntitySlice ¶ added in v0.34.11
type GenericEntitySlice struct { // GenericEntity edges Edges []*GenericEntityEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
GenericEntity Slice
func (GenericEntitySlice) IsSlice ¶ added in v0.34.11
func (GenericEntitySlice) IsSlice()
type GitOpsEdge ¶ added in v0.34.6
type GitOpsEdge struct { // Node contains the actual component data Node GitopsEntity `json:"node"` // Cursor Cursor string `json:"cursor"` }
GitOps Edge
type GitOpsSlice ¶ added in v0.34.6
type GitOpsSlice struct { // GitOps edges Edges []*GitOpsEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
GitOps Slice
type GitPRComment ¶ added in v0.31.2
type GitPRComment struct { // Comment message Message string `json:"message"` // Comment author Author string `json:"author"` // Comment author association AuthorAssociation *string `json:"authorAssociation"` }
"PR Comment data
type GitPREventPayloadData ¶ added in v0.31.2
type GitPREventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // Name of the git event Event string `json:"event"` // Git provider Provider string `json:"provider"` // Repository Repository *Repository `json:"repository"` // Event initiator Initiator *Initiator `json:"initiator"` // PR data Pr *GitPr `json:"pr"` }
"PR event
func (GitPREventPayloadData) IsCommonGitEventPayloadData ¶ added in v0.31.2
func (GitPREventPayloadData) IsCommonGitEventPayloadData()
func (GitPREventPayloadData) IsEventPayloadData ¶ added in v0.31.2
func (GitPREventPayloadData) IsEventPayloadData()
type GitPr ¶ added in v0.31.2
type GitPr struct { // PR action Action string `json:"action"` // PR id ID string `json:"id"` // PR title Title string `json:"title"` // PR url URL string `json:"url"` // PR number Number int `json:"number"` // PR labels Labels []string `json:"labels"` // PR head Head *GitPushCommitRevision `json:"head"` // PR target Target *GitPushCommitTargetRevision `json:"target"` // Indicates if a PR was merged Merged *bool `json:"merged"` // Indicates if a PR comes from forked repo Fork *GitPrFork `json:"fork"` // PR comment Comment *GitPRComment `json:"comment"` // Modified files ModifiedFiles []string `json:"modifiedFiles"` }
"PR data
type GitPrFork ¶ added in v0.32.5
type GitPrFork struct { // Repository Repository *Repository `json:"repository"` }
"PR fork data
type GitPushCommit ¶ added in v0.32.5
type GitPushCommit struct { // Commit message Message string `json:"message"` // Commit url URL string `json:"url"` // Push revision Head *GitPushCommitRevision `json:"head"` // Push subject type SubjectType GitPushPayloadDataTypes `json:"subjectType"` // Modified files ModifiedFiles []string `json:"modifiedFiles"` }
"Push commit event data
func (GitPushCommit) IsGitPush ¶ added in v0.32.5
func (GitPushCommit) IsGitPush()
type GitPushCommitRevision ¶ added in v0.32.5
type GitPushCommitRevision struct { // Branch name Branch string `json:"branch"` // Branch URL BranchURL string `json:"branchURL"` // SHA Sha string `json:"sha"` // SHA URL ShaURL string `json:"shaURL"` }
"Commit revision data
type GitPushCommitTargetRevision ¶ added in v0.32.5
type GitPushCommitTargetRevision struct { // Branch name Branch string `json:"branch"` // Branch URL BranchURL string `json:"branchURL"` // SHA Sha *string `json:"sha"` // SHA URL ShaURL *string `json:"shaURL"` }
"PR target commit revision data
type GitPushEventPayloadData ¶ added in v0.32.5
type GitPushEventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // Name of the git event Event string `json:"event"` // Git provider Provider string `json:"provider"` // Repository Repository *Repository `json:"repository"` // Event initiator Initiator *Initiator `json:"initiator"` // Push data Push GitPush `json:"push"` }
"Push event
func (GitPushEventPayloadData) IsCommonGitEventPayloadData ¶ added in v0.32.5
func (GitPushEventPayloadData) IsCommonGitEventPayloadData()
func (GitPushEventPayloadData) IsEventPayloadData ¶ added in v0.32.5
func (GitPushEventPayloadData) IsEventPayloadData()
type GitPushPayloadDataTypes ¶ added in v0.32.5
type GitPushPayloadDataTypes string
Types of push event
const ( GitPushPayloadDataTypesBranch GitPushPayloadDataTypes = "branch" GitPushPayloadDataTypesTag GitPushPayloadDataTypes = "tag" )
func (GitPushPayloadDataTypes) IsValid ¶ added in v0.32.5
func (e GitPushPayloadDataTypes) IsValid() bool
func (GitPushPayloadDataTypes) MarshalGQL ¶ added in v0.32.5
func (e GitPushPayloadDataTypes) MarshalGQL(w io.Writer)
func (GitPushPayloadDataTypes) String ¶ added in v0.32.5
func (e GitPushPayloadDataTypes) String() string
func (*GitPushPayloadDataTypes) UnmarshalGQL ¶ added in v0.32.5
func (e *GitPushPayloadDataTypes) UnmarshalGQL(v interface{}) error
type GitPushTag ¶ added in v0.32.5
type GitPushTag struct { // Commit message Message string `json:"message"` // Commit url URL string `json:"url"` // Tag revision Head *GitPushTagRevision `json:"head"` // Push subject type SubjectType GitPushPayloadDataTypes `json:"subjectType"` // Modified files ModifiedFiles []string `json:"modifiedFiles"` }
"Push commit event data
func (GitPushTag) IsGitPush ¶ added in v0.32.5
func (GitPushTag) IsGitPush()
type GitPushTagRevision ¶ added in v0.32.5
type GitPushTagRevision struct { // Tag name Tag string `json:"tag"` // Tag URL TagURL string `json:"tagURL"` // SHA Sha string `json:"sha"` // SHA URL ShaURL string `json:"shaURL"` }
"Tag revision data
type GitRelease ¶ added in v0.31.2
type GitRelease struct { // Release action Action string `json:"action"` // Release id ID string `json:"id"` // Release name Name string `json:"name"` // Release tag name TagName string `json:"tagName"` // Indicates if current release is a pre release IsPreRelease bool `json:"isPreRelease"` }
"Release data
type GitReleaseEventPayloadData ¶ added in v0.31.2
type GitReleaseEventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // Name of the git event Event string `json:"event"` // Git provider Provider string `json:"provider"` // Repository Repository *Repository `json:"repository"` // Event initiator Initiator *Initiator `json:"initiator"` // Release data Release *GitRelease `json:"release"` }
"Release event
func (GitReleaseEventPayloadData) IsCommonGitEventPayloadData ¶ added in v0.31.2
func (GitReleaseEventPayloadData) IsCommonGitEventPayloadData()
func (GitReleaseEventPayloadData) IsEventPayloadData ¶ added in v0.31.2
func (GitReleaseEventPayloadData) IsEventPayloadData()
type GitSource ¶
type GitSource struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // Self entity reference for the real k8s entity in case of codefresh logical entity Self *Application `json:"self"` // History of the GitSource History *GitOpsSlice `json:"history"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Projects Projects []string `json:"projects"` }
Git source entity
func (GitSource) IsBaseEntity ¶
func (GitSource) IsBaseEntity()
func (GitSource) IsK8sLogicEntity ¶ added in v0.30.3
func (GitSource) IsK8sLogicEntity()
func (GitSource) IsProjectBasedEntity ¶
func (GitSource) IsProjectBasedEntity()
type GitSourceEdge ¶
type GitSourceEdge struct { // Node contains the actual git source data Node *GitSource `json:"node"` // Cursor Cursor string `json:"cursor"` }
Git source Edge
func (GitSourceEdge) IsEdge ¶
func (GitSourceEdge) IsEdge()
type GitSourcePage ¶
type GitSourcePage struct { // Total amount of git sources TotalCount int `json:"totalCount"` // Git source edges Edges []*GitSourceEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Git source Page
func (GitSourcePage) IsPage ¶
func (GitSourcePage) IsPage()
type GitSourceReadModelEventPayload ¶ added in v0.34.6
type GitSourceReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
GitSourceReadModelEventPayload type
func (GitSourceReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (GitSourceReadModelEventPayload) IsReadModelEventPayload()
type GitSourceSlice ¶
type GitSourceSlice struct { // Git source edges Edges []*GitSourceEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Git source Slice
func (GitSourceSlice) IsSlice ¶
func (GitSourceSlice) IsSlice()
type GitUnknownEventPayloadData ¶ added in v0.32.3
type GitUnknownEventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // Name of the git event Event string `json:"event"` // Git provider Provider string `json:"provider"` // Repository Repository *Repository `json:"repository"` // Event initiator Initiator *Initiator `json:"initiator"` }
"Unknown Git event
func (GitUnknownEventPayloadData) IsCommonGitEventPayloadData ¶ added in v0.32.3
func (GitUnknownEventPayloadData) IsCommonGitEventPayloadData()
func (GitUnknownEventPayloadData) IsEventPayloadData ¶ added in v0.32.3
func (GitUnknownEventPayloadData) IsEventPayloadData()
type GithubEvent ¶
type GithubEvent struct { // Name Name string `json:"name"` // Repository owner Owner string `json:"owner"` // Repository names Repositories []string `json:"repositories"` // Webhook events Events []string `json:"events"` }
Github event
func (GithubEvent) IsEvent ¶
func (GithubEvent) IsEvent()
type GitopsEntitySource ¶
type GitopsEntitySource struct { // Entity source GitSource *GitSource `json:"gitSource"` // Repo URL RepoURL *string `json:"repoURL"` // Path Path string `json:"path"` // Full web url to file in commit FileURL string `json:"fileURL"` // Git revision Revision string `json:"revision"` // Git commit message CommitMessage *string `json:"commitMessage"` // Git commit date CommitDate *string `json:"commitDate"` // Git commit web url CommitURL string `json:"commitURL"` // Git commit author CommitAuthor *string `json:"commitAuthor"` // Author web profile url ProfileURL *string `json:"profileURL"` // Author avatar url AvatarURL *string `json:"avatarURL"` // Git manifest GitManifest string `json:"gitManifest"` // The resource action ResourceAction ResourceAction `json:"resourceAction"` }
Gitops entity source
type HealthError ¶ added in v0.32.3
type HealthError struct { // Level Level ErrorLevels `json:"level"` // Title Title string `json:"title"` // Message Message string `json:"message"` // Suggestion Suggestion *string `json:"suggestion"` // The entity related to this error Object BaseEntity `json:"object"` // Error code Code HealthErrorCodes `json:"code"` // Last time this error has been seen LastSeen string `json:"lastSeen"` }
Health Error
func (HealthError) IsError ¶ added in v0.32.3
func (HealthError) IsError()
type HealthErrorCodes ¶ added in v0.32.3
type HealthErrorCodes string
Health Error codes
const ( // The resource has a reference to a non-existing resource HealthErrorCodesBrokenReference HealthErrorCodes = "BROKEN_REFERENCE" // The resource has insufficient resources HealthErrorCodesInsufficientResources HealthErrorCodes = "INSUFFICIENT_RESOURCES" // Transitive health error that originates from one of referenced entities HealthErrorCodesTransitiveError HealthErrorCodes = "TRANSITIVE_ERROR" // Uknown sync error HealthErrorCodesUnknown HealthErrorCodes = "UNKNOWN" )
func (HealthErrorCodes) IsValid ¶ added in v0.32.3
func (e HealthErrorCodes) IsValid() bool
func (HealthErrorCodes) MarshalGQL ¶ added in v0.32.3
func (e HealthErrorCodes) MarshalGQL(w io.Writer)
func (HealthErrorCodes) String ¶ added in v0.32.3
func (e HealthErrorCodes) String() string
func (*HealthErrorCodes) UnmarshalGQL ¶ added in v0.32.3
func (e *HealthErrorCodes) UnmarshalGQL(v interface{}) error
type HealthStatus ¶
type HealthStatus string
Health Status
const ( // resource status indicates failure HealthStatusDegraded HealthStatus = "DEGRADED" // resource is healthy HealthStatusHealthy HealthStatus = "HEALTHY" // resource is missing from the cluster HealthStatusMissing HealthStatus = "MISSING" // resource not yet healthy but has a chance to become healthy HealthStatusProgressing HealthStatus = "PROGRESSING" // resource is suspended (for example: cronjob) HealthStatusSuspended HealthStatus = "SUSPENDED" // health assessment failed HealthStatusUnknown HealthStatus = "UNKNOWN" )
func (HealthStatus) IsValid ¶
func (e HealthStatus) IsValid() bool
func (HealthStatus) MarshalGQL ¶
func (e HealthStatus) MarshalGQL(w io.Writer)
func (HealthStatus) String ¶
func (e HealthStatus) String() string
func (*HealthStatus) UnmarshalGQL ¶
func (e *HealthStatus) UnmarshalGQL(v interface{}) error
type Initiator ¶ added in v0.31.2
type Initiator struct { // Git user username UserName string `json:"userName"` // Git user id UserID string `json:"userId"` // Git user email UserEmail string `json:"userEmail"` // Link to the user avatar image UserAvatarURL string `json:"userAvatarUrl"` // Link to the user git profile UserProfileURL string `json:"userProfileUrl"` }
"Event initiator
type InstallationStatus ¶ added in v0.34.4
type InstallationStatus string
Installation Status
const ( // installation is completed InstallationStatusCompleted InstallationStatus = "COMPLETED" // installation failed InstallationStatusFailed InstallationStatus = "FAILED" // installation is in progress InstallationStatusInProgress InstallationStatus = "IN_PROGRESS" )
func (InstallationStatus) IsValid ¶ added in v0.34.4
func (e InstallationStatus) IsValid() bool
func (InstallationStatus) MarshalGQL ¶ added in v0.34.4
func (e InstallationStatus) MarshalGQL(w io.Writer)
func (InstallationStatus) String ¶ added in v0.34.4
func (e InstallationStatus) String() string
func (*InstallationStatus) UnmarshalGQL ¶ added in v0.34.4
func (e *InstallationStatus) UnmarshalGQL(v interface{}) error
type K8sLogicEntity ¶ added in v0.30.3
type K8sLogicEntity interface {
IsK8sLogicEntity()
}
K8s logic entity
type K8sStandardEntity ¶ added in v0.30.3
type K8sStandardEntity interface {
IsK8sStandardEntity()
}
Base entity
type Me ¶
type Me struct { // The user id ID string `json:"id"` // The roles of the user provide specific permission for the current user Roles []*UserRole `json:"roles"` // The accounts the this user have acsess to Accounts []*Account `json:"accounts"` // The default account for this user ActiveAccount *Account `json:"activeAccount"` // The customers that this user is in Customers []Customer `json:"customers"` // The current status of this user Status *UserStatus `json:"status"` // Provide details about this user Details *UserDetails `json:"details"` // Provide info on user Info *UserInfo `json:"info"` }
Me
type NamespacedFindOneArgs ¶ added in v0.34.4
type NamespacedFindOneArgs struct { // Runtime name Runtime string `json:"runtime"` // Name Name string `json:"name"` // Namespace Namespace string `json:"namespace"` }
Unique args for retriving single entity
type NodeStatus ¶ added in v0.30.3
type NodeStatus struct { // Type Type string `json:"type"` // Name Name string `json:"name"` // Display name DisplayName string `json:"displayName"` // Template Name TemplateName string `json:"templateName"` // Node children Children []*string `json:"children"` // Current step phase Phase *WorkflowNodePhases `json:"phase"` // Progress Progress *Progress `json:"progress"` // Message Message *string `json:"message"` // Start time StartedAt *string `json:"startedAt"` // Finish time FinishedAt *string `json:"finishedAt"` // Inputs Inputs *string `json:"inputs"` // Previous statuses Statuses []*StatusHistoryItem `json:"statuses"` }
Node status
type ObjectMeta ¶
type ObjectMeta struct { // Group Group string `json:"group"` // Version Version string `json:"version"` // Kind Kind string `json:"kind"` // Name Name string `json:"name"` // Description Description *string `json:"description"` // Namespace Namespace *string `json:"namespace"` // Runtime Runtime string `json:"runtime"` // Account name Account string `json:"account"` // Labels Labels []*StringPair `json:"labels"` // Annotations Annotations []*StringPair `json:"annotations"` // Last updated LastUpdated *string `json:"lastUpdated"` // Created Created *string `json:"created"` // K8s object uid UID *string `json:"uid"` }
Object metadata
type PageInfo ¶
type PageInfo struct { // Cursor for the first result in the page StartCursor *string `json:"startCursor"` // Cursor for the last result in the page EndCursor *string `json:"endCursor"` // Indicate if there is next page HasNextPage bool `json:"hasNextPage"` // Indicate if there is previous page HasPrevPage bool `json:"hasPrevPage"` }
Information about current page
type PayloadDataTypes ¶ added in v0.31.2
type PayloadDataTypes string
Types of event payload
const ( PayloadDataTypesCalendar PayloadDataTypes = "calendar" PayloadDataTypesGit PayloadDataTypes = "git" PayloadDataTypesUnknown PayloadDataTypes = "unknown" )
func (PayloadDataTypes) IsValid ¶ added in v0.31.2
func (e PayloadDataTypes) IsValid() bool
func (PayloadDataTypes) MarshalGQL ¶ added in v0.31.2
func (e PayloadDataTypes) MarshalGQL(w io.Writer)
func (PayloadDataTypes) String ¶ added in v0.31.2
func (e PayloadDataTypes) String() string
func (*PayloadDataTypes) UnmarshalGQL ¶ added in v0.31.2
func (e *PayloadDataTypes) UnmarshalGQL(v interface{}) error
type Pipeline ¶
type Pipeline struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // Self entity reference for the real k8s entity in case of codefresh logical entity Self *Sensor `json:"self"` // History of the pipeline History *GitOpsSlice `json:"history"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Projects Projects []string `json:"projects"` // Trigger name Spec *PipelineSpec `json:"spec"` // Statistics Statistics *PipelineStatistics `json:"statistics"` // List of last N workflows RecentActivity *WorkflowSlice `json:"recentActivity"` }
Pipeline entity
func (Pipeline) IsBaseEntity ¶
func (Pipeline) IsBaseEntity()
func (Pipeline) IsK8sLogicEntity ¶ added in v0.30.3
func (Pipeline) IsK8sLogicEntity()
func (Pipeline) IsProjectBasedEntity ¶
func (Pipeline) IsProjectBasedEntity()
type PipelineAverageDurationStats ¶ added in v0.32.3
type PipelineAverageDurationStats struct { // Info Info *PipelineAverageDurationStatsInfo `json:"info"` // Data Data []*PipelineAverageDurationStatsData `json:"data"` }
Pipeline statistics for average duration
type PipelineAverageDurationStatsData ¶ added in v0.32.3
type PipelineAverageDurationStatsData struct { // Time Time *string `json:"time"` // Average duration AverageDuration *float64 `json:"averageDuration"` }
Stats data for pipline average duration
type PipelineAverageDurationStatsInfo ¶ added in v0.32.3
type PipelineAverageDurationStatsInfo struct { // Time period data TimePeriodData *StatsTimePeriodData `json:"timePeriodData"` // Total average duration for the all time period AverageDuration float64 `json:"averageDuration"` // Diff in avarages between the current time period and the previous time period PctDiffFromLastTimeFrame *float64 `json:"pctDiffFromLastTimeFrame"` }
Stats info for pipeline success rate.
type PipelineCommittersStats ¶ added in v0.34.10
type PipelineCommittersStats struct { // Info Info *PipelineCommittersStatsInfo `json:"info"` // Data Data []*PipelineCommittersStatsData `json:"data"` }
Pipeline statistics for pipline success rate
type PipelineCommittersStatsData ¶ added in v0.34.10
type PipelineCommittersStatsData struct { // Time Time *string `json:"time"` // Committers Committers *int `json:"committers"` }
Stats data for pipline committers
type PipelineCommittersStatsInfo ¶ added in v0.34.10
type PipelineCommittersStatsInfo struct { // Time period data TimePeriodData *StatsTimePeriodData `json:"timePeriodData"` // Total number of committers for the all time period TotalCommitters int `json:"totalCommitters"` // Diff in totals between the current time period and the previous time period PctDiffFromLastTimeFrame *float64 `json:"pctDiffFromLastTimeFrame"` }
Stats info for pipeline committers.
type PipelineEdge ¶
type PipelineEdge struct { // Node contains the actual pipeline data Node *Pipeline `json:"node"` // Cursor Cursor string `json:"cursor"` }
Pipeline Edge
func (PipelineEdge) IsEdge ¶
func (PipelineEdge) IsEdge()
type PipelineExecutionsStats ¶ added in v0.32.3
type PipelineExecutionsStats struct { // Info Info *PipelineExecutionsStatsInfo `json:"info"` // Data Data []*PipelineExecutionsStatsData `json:"data"` }
Pipeline statistics for pipline executions
type PipelineExecutionsStatsData ¶ added in v0.32.3
type PipelineExecutionsStatsData struct { // Time Time *string `json:"time"` // Executions Executions *int `json:"executions"` }
Stats data for pipline executions
type PipelineExecutionsStatsInfo ¶ added in v0.32.3
type PipelineExecutionsStatsInfo struct { // Time period data TimePeriodData *StatsTimePeriodData `json:"timePeriodData"` // Total number of executions for the all time period TotalExecutions int `json:"totalExecutions"` // Diff in totals between the current time period and the previous time period PctDiffFromLastTimeFrame *float64 `json:"pctDiffFromLastTimeFrame"` }
Stats info for pipeline executions.
type PipelineHistoryArgs ¶ added in v0.34.10
type PipelineHistoryArgs struct { // History Pagination arguments Pagination *SlicePaginationArgs `json:"pagination"` // Sync Success - SUCCESS/FAILURE SyncSuccess *SyncSuccess `json:"syncSuccess"` // Kinds to return Kinds []string `json:"kinds"` // Repo Repo *string `json:"repo"` }
Pipeline history arguments
type PipelinePage ¶
type PipelinePage struct { // Total amount of pipelines TotalCount int `json:"totalCount"` // Pipeline edges Edges []*PipelineEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Pipeline Page
func (PipelinePage) IsPage ¶
func (PipelinePage) IsPage()
type PipelineReadModelEventPayload ¶ added in v0.34.6
type PipelineReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
PipelineReadModelEventPayload type
func (PipelineReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (PipelineReadModelEventPayload) IsReadModelEventPayload()
type PipelineSlice ¶
type PipelineSlice struct { // Pipeline edges Edges []*PipelineEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Pipeline Slice
func (PipelineSlice) IsSlice ¶
func (PipelineSlice) IsSlice()
type PipelineSpec ¶ added in v0.32.3
type PipelineSpec struct { // Trigger Trigger string `json:"trigger"` }
Pipeline Spec
type PipelineStatistics ¶ added in v0.32.3
type PipelineStatistics struct { // Success Rate stats SuccessRateStats *PipelineSuccessRateStats `json:"successRateStats"` // Average duration stats AverageDurationStats *PipelineAverageDurationStats `json:"averageDurationStats"` // Execution stats ExecutionsStats *PipelineExecutionsStats `json:"executionsStats"` // Committers stats CommittersStats *PipelineCommittersStats `json:"committersStats"` }
Pipeline statistics to be used in analytics module
type PipelineStatisticsFilterTimeRange ¶ added in v0.34.6
type PipelineStatisticsFilterTimeRange string
Pipeline time range filter possible values
const ( PipelineStatisticsFilterTimeRangeLast30Days PipelineStatisticsFilterTimeRange = "LAST_30_DAYS" PipelineStatisticsFilterTimeRangeLast7Days PipelineStatisticsFilterTimeRange = "LAST_7_DAYS" PipelineStatisticsFilterTimeRangeLast90Days PipelineStatisticsFilterTimeRange = "LAST_90_DAYS" )
func (PipelineStatisticsFilterTimeRange) IsValid ¶ added in v0.34.6
func (e PipelineStatisticsFilterTimeRange) IsValid() bool
func (PipelineStatisticsFilterTimeRange) MarshalGQL ¶ added in v0.34.6
func (e PipelineStatisticsFilterTimeRange) MarshalGQL(w io.Writer)
func (PipelineStatisticsFilterTimeRange) String ¶ added in v0.34.6
func (e PipelineStatisticsFilterTimeRange) String() string
func (*PipelineStatisticsFilterTimeRange) UnmarshalGQL ¶ added in v0.34.6
func (e *PipelineStatisticsFilterTimeRange) UnmarshalGQL(v interface{}) error
type PipelineSuccessRateStats ¶ added in v0.32.3
type PipelineSuccessRateStats struct { // Info Info *PipelineSuccessRateStatsInfo `json:"info"` // Data Data []*PipelineSuccessRateStatsData `json:"data"` }
Pipeline statistics for pipline success rate
type PipelineSuccessRateStatsData ¶ added in v0.32.3
type PipelineSuccessRateStatsData struct { // Time Time *string `json:"time"` // Success rate SuccessRate *int `json:"successRate"` }
Stats data for pipline success rate
type PipelineSuccessRateStatsInfo ¶ added in v0.32.3
type PipelineSuccessRateStatsInfo struct { // Time period data TimePeriodData *StatsTimePeriodData `json:"timePeriodData"` // Total average success rate for the all time period AverageSuccessRate int `json:"averageSuccessRate"` // Diff in avarages between the current time period and the previous time period PctDiffFromLastTimeFrame *float64 `json:"pctDiffFromLastTimeFrame"` }
Stats info for pipeline success rate.
type PipelinesFilterArgs ¶ added in v0.32.3
type PipelinesFilterArgs struct { // Filter pipelines from a specific project Project *string `json:"project"` // Filter pipelines from a specific runtime Runtime *string `json:"runtime"` // Filter pipelines from a specific runtime Namespace *string `json:"namespace"` // Filter pipelines from a specific pipeline Name *string `json:"name"` }
Pipeline filter arguments
type PipelinesStatisticsFilterArgs ¶ added in v0.34.6
type PipelinesStatisticsFilterArgs struct { // Filter pipelines from a specific pipeline TimeRange PipelineStatisticsFilterTimeRange `json:"timeRange"` // Repository name RepoName []*string `json:"repoName"` // workflow status Status []*WorkflowPhases `json:"status"` // Git Event Type GitEventType []*string `json:"gitEventType"` // Initiator Initiator []*string `json:"initiator"` // Brnach Name Branch []*string `json:"branch"` }
Pipeline filter arguments
type Project ¶
type Project struct { // Project name Name string `json:"name"` // Project description Description *string `json:"description"` }
Project entity
type ProjectBasedEntity ¶
type ProjectBasedEntity interface {
IsProjectBasedEntity()
}
Project based entity
type ProjectEdge ¶
type ProjectEdge struct { // Node contains the actual project data Node *Project `json:"node"` // Cursor Cursor string `json:"cursor"` }
Project Edge
func (ProjectEdge) IsEdge ¶
func (ProjectEdge) IsEdge()
type ProjectPage ¶
type ProjectPage struct { // Total amount of Projects TotalCount int `json:"totalCount"` // Project edges Edges []*ProjectEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Project Page
func (ProjectPage) IsPage ¶
func (ProjectPage) IsPage()
type ProjectReadModelEventPayload ¶ added in v0.34.6
type ProjectReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
ProjectReadModelEventPayload type
func (ProjectReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (ProjectReadModelEventPayload) IsReadModelEventPayload()
type ProjectSlice ¶
type ProjectSlice struct { // Project edges Edges []*ProjectEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Project Slice
func (ProjectSlice) IsSlice ¶
func (ProjectSlice) IsSlice()
type ReadModelEventPayload ¶ added in v0.34.6
type ReadModelEventPayload interface {
IsReadModelEventPayload()
}
ReadModelEventPayload base interface
type ReadModelEventResponse ¶ added in v0.34.6
type ReadModelEventResponse struct { // Account ID AccountID string `json:"accountId"` // Time of event Time string `json:"time"` // Payload of event Payload ReadModelEventPayload `json:"payload"` }
ReadModelEventResponse
type Release ¶ added in v0.30.3
type Release struct { // Release version Version string `json:"version"` }
Release Entity
type Repository ¶ added in v0.31.2
type Repository struct { // Repository name Name string `json:"name"` // Repository owner Owner string `json:"owner"` // Repository name in format {owner}/{name} FullName string `json:"fullName"` // Repository URL URL string `json:"url"` }
"Repository
type ResourceAction ¶ added in v0.34.10
type ResourceAction string
Resource action
const ( // Added ResourceActionAdded ResourceAction = "ADDED" // Deleted ResourceActionDeleted ResourceAction = "DELETED" // Updated ResourceActionUpdated ResourceAction = "UPDATED" )
func (ResourceAction) IsValid ¶ added in v0.34.10
func (e ResourceAction) IsValid() bool
func (ResourceAction) MarshalGQL ¶ added in v0.34.10
func (e ResourceAction) MarshalGQL(w io.Writer)
func (ResourceAction) String ¶ added in v0.34.10
func (e ResourceAction) String() string
func (*ResourceAction) UnmarshalGQL ¶ added in v0.34.10
func (e *ResourceAction) UnmarshalGQL(v interface{}) error
type ResourceEvent ¶
type ResourceEvent struct { // Name Name string `json:"name"` // Group Group string `json:"group"` // Version Version string `json:"version"` // Kind Kind string `json:"kind"` // Namespace Namespace string `json:"namespace"` }
Resource event
func (ResourceEvent) IsEvent ¶
func (ResourceEvent) IsEvent()
type Runtime ¶
type Runtime struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // Self entity reference for the real k8s entity in case of codefresh logical entity Self *GenericEntity `json:"self"` // History of the runtime History *GitOpsSlice `json:"history"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Projects Projects []string `json:"projects"` // K8s cluster where the runtime is running Cluster *string `json:"cluster"` // Ingress host of the runtime IngressHost *string `json:"ingressHost"` // Runtime version RuntimeVersion *string `json:"runtimeVersion"` // Last Updated LastUpdated *string `json:"lastUpdated"` // Installation Status InstallationStatus InstallationStatus `json:"installationStatus"` // Repo URL with optional path and branch info Repo *string `json:"repo"` }
Runtime entity
func (Runtime) IsBaseEntity ¶
func (Runtime) IsBaseEntity()
func (Runtime) IsK8sLogicEntity ¶ added in v0.30.3
func (Runtime) IsK8sLogicEntity()
func (Runtime) IsProjectBasedEntity ¶
func (Runtime) IsProjectBasedEntity()
type RuntimeCreationResponse ¶
type RuntimeCreationResponse struct { // The runtime access token that will be used for requests from the runtime NewAccessToken string `json:"newAccessToken"` // The name of the newly created runtime Name string `json:"name"` }
Response for creating a runtime
type RuntimeEdge ¶
type RuntimeEdge struct { // Node contains the actual runtime data Node *Runtime `json:"node"` // Cursor Cursor string `json:"cursor"` }
Runtime Edge
func (RuntimeEdge) IsEdge ¶
func (RuntimeEdge) IsEdge()
type RuntimeInstallationArgs ¶ added in v0.34.6
type RuntimeInstallationArgs struct { // Name of the Runtime RuntimeName string `json:"runtimeName"` // Cluster Cluster string `json:"cluster"` // Runtime Version RuntimeVersion string `json:"runtimeVersion"` // The names of the components to be installed as placeholders ComponentNames []string `json:"componentNames"` // Ingress Host IngressHost *string `json:"ingressHost"` // Repo URL with optional path and branch info Repo *string `json:"repo"` }
Runtime Installation Arguments
type RuntimePage ¶
type RuntimePage struct { // Total amount of runtimes TotalCount int `json:"totalCount"` // Runtime edges Edges []*RuntimeEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Runtime Page
func (RuntimePage) IsPage ¶
func (RuntimePage) IsPage()
type RuntimeReadModelEventPayload ¶ added in v0.34.6
type RuntimeReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
RuntimeReadModelEventPayload type
func (RuntimeReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (RuntimeReadModelEventPayload) IsReadModelEventPayload()
type RuntimeSlice ¶
type RuntimeSlice struct { // Runtime edges Edges []*RuntimeEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Runtime Slice
func (RuntimeSlice) IsSlice ¶
func (RuntimeSlice) IsSlice()
type Sensor ¶
type Sensor struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // History of the sensor History *GitOpsSlice `json:"history"` // Version of the entity Version *int `json:"version"` // Is this the latest version of this entity Latest *bool `json:"latest"` // Entity source Source *GitopsEntitySource `json:"source"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Desired manifest DesiredManifest *string `json:"desiredManifest"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Projects Projects []string `json:"projects"` }
Sensor entity
func (Sensor) IsBaseEntity ¶
func (Sensor) IsBaseEntity()
func (Sensor) IsGitopsEntity ¶
func (Sensor) IsGitopsEntity()
func (Sensor) IsProjectBasedEntity ¶
func (Sensor) IsProjectBasedEntity()
type SensorEdge ¶
type SensorEdge struct { // Node contains the actual sensor data Node *Sensor `json:"node"` // Cursor Cursor string `json:"cursor"` }
Sensor Edge
func (SensorEdge) IsEdge ¶
func (SensorEdge) IsEdge()
type SensorPage ¶
type SensorPage struct { // Total amount of sensors TotalCount int `json:"totalCount"` // Sensor edges Edges []*SensorEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Sensor Page
func (SensorPage) IsPage ¶
func (SensorPage) IsPage()
type SensorReadModelEventPayload ¶ added in v0.34.6
type SensorReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
SensorReadModelEventPayload type
func (SensorReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (SensorReadModelEventPayload) IsReadModelEventPayload()
type SensorSlice ¶
type SensorSlice struct { // Sensor edges Edges []*SensorEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Sensor Slice
func (SensorSlice) IsSlice ¶
func (SensorSlice) IsSlice()
type SliceInfo ¶
type SliceInfo struct { // Cursor for the first result in the slice StartCursor *string `json:"startCursor"` // Cursor for the last result in the slice EndCursor *string `json:"endCursor"` // Indicate if there is next slice HasNextPage bool `json:"hasNextPage"` // Indicate if there is previous slice HasPrevPage bool `json:"hasPrevPage"` }
Information about current slice
type SlicePaginationArgs ¶
type SlicePaginationArgs struct { // Returns entities after the provided cursor After *string `json:"after"` // Returns entities before the provided cursor Before *string `json:"before"` // Returns the first X entities First *int `json:"first"` // Returns the last X entities Last *int `json:"last"` }
Pagination arguments to request slice
type StatsTimePeriodData ¶ added in v0.32.3
type StatsTimePeriodData struct { // Granularity for the graph X Axis Granularity *string `json:"granularity"` // Date range for the statistics DateRange []*string `json:"dateRange"` }
Statistics time period meta data
type StatusHistoryItem ¶ added in v0.30.3
type StatusHistoryItem struct { // The time the status started Since string `json:"since"` // Phase Phase WorkflowNodePhases `json:"phase"` // Message Message *string `json:"message"` }
Workflow status history item
type StringPair ¶
Lable
type SwitchAccountResponse ¶
type SwitchAccountResponse struct { // The token to use for the next requests NewAccessToken *string `json:"newAccessToken"` }
"response for request to switch account
type SyncError ¶ added in v0.32.3
type SyncError struct { // Level Level ErrorLevels `json:"level"` // Title Title string `json:"title"` // Message Message string `json:"message"` // Suggestion Suggestion *string `json:"suggestion"` // The entity related to this error Object BaseEntity `json:"object"` // Error code Code SyncErrorCodes `json:"code"` // Last time this error has been seen LastSeen string `json:"lastSeen"` // Error gitops context Context *ErrorContext `json:"context"` }
Sync Error
type SyncErrorCodes ¶ added in v0.32.3
type SyncErrorCodes string
Sync Error codes
const ( // The resource desired state has an invalid state and cannot be synced to the cluster SyncErrorCodesInvalidSpec SyncErrorCodes = "INVALID_SPEC" // Uknown sync error SyncErrorCodesUnknown SyncErrorCodes = "UNKNOWN" )
func (SyncErrorCodes) IsValid ¶ added in v0.32.3
func (e SyncErrorCodes) IsValid() bool
func (SyncErrorCodes) MarshalGQL ¶ added in v0.32.3
func (e SyncErrorCodes) MarshalGQL(w io.Writer)
func (SyncErrorCodes) String ¶ added in v0.32.3
func (e SyncErrorCodes) String() string
func (*SyncErrorCodes) UnmarshalGQL ¶ added in v0.32.3
func (e *SyncErrorCodes) UnmarshalGQL(v interface{}) error
type SyncStatus ¶
type SyncStatus string
Sync status
const ( // Out of sync SyncStatusOutOfSync SyncStatus = "OUT_OF_SYNC" // Synced SyncStatusSynced SyncStatus = "SYNCED" // Unknown SyncStatusUnknown SyncStatus = "UNKNOWN" )
func (SyncStatus) IsValid ¶
func (e SyncStatus) IsValid() bool
func (SyncStatus) MarshalGQL ¶
func (e SyncStatus) MarshalGQL(w io.Writer)
func (SyncStatus) String ¶
func (e SyncStatus) String() string
func (*SyncStatus) UnmarshalGQL ¶
func (e *SyncStatus) UnmarshalGQL(v interface{}) error
type SyncSuccess ¶ added in v0.34.10
type SyncSuccess string
Sync success/failure
const ( // FAILURE - when SyncStatus is OUT_OF_SYNC or UNKNOWN SyncSuccessFailure SyncSuccess = "FAILURE" // SUCCESS - when SyncStatus is SYNCED SyncSuccessSuccess SyncSuccess = "SUCCESS" )
func (SyncSuccess) IsValid ¶ added in v0.34.10
func (e SyncSuccess) IsValid() bool
func (SyncSuccess) MarshalGQL ¶ added in v0.34.10
func (e SyncSuccess) MarshalGQL(w io.Writer)
func (SyncSuccess) String ¶ added in v0.34.10
func (e SyncSuccess) String() string
func (*SyncSuccess) UnmarshalGQL ¶ added in v0.34.10
func (e *SyncSuccess) UnmarshalGQL(v interface{}) error
type UnknownEventPayloadData ¶ added in v0.31.2
type UnknownEventPayloadData struct { // Event payload type Type PayloadDataTypes `json:"type"` // Event name Event string `json:"event"` }
Calendar event payload data
func (UnknownEventPayloadData) IsEventPayloadData ¶ added in v0.31.2
func (UnknownEventPayloadData) IsEventPayloadData()
type UserDetails ¶
type UserDetails struct { // The user name Name string `json:"name"` // User image url Image *string `json:"image"` }
"User Details
type UserInfo ¶
type UserInfo struct { // The user name Name *string `json:"name"` // Register date RegisterDate *string `json:"registerDate"` // Last time user logged in to the system LastLoginDate *string `json:"lastLoginDate"` }
"User statistics
type UserRole ¶
type UserRole string
"User role provide specific permission for the current user
func (UserRole) MarshalGQL ¶
func (*UserRole) UnmarshalGQL ¶
type UserStatus ¶
type UserStatus string
"User status active or disable
const ( // New user UserStatusNew UserStatus = "NEW" // Pending user UserStatusPending UserStatus = "PENDING" // Suspended UserStatusSuspended UserStatus = "SUSPENDED" // Unverifed user UserStatusUnverifed UserStatus = "UNVERIFED" )
func (UserStatus) IsValid ¶
func (e UserStatus) IsValid() bool
func (UserStatus) MarshalGQL ¶
func (e UserStatus) MarshalGQL(w io.Writer)
func (UserStatus) String ¶
func (e UserStatus) String() string
func (*UserStatus) UnmarshalGQL ¶
func (e *UserStatus) UnmarshalGQL(v interface{}) error
type Workflow ¶
type Workflow struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // Projects Projects []string `json:"projects"` // Workflow spec Spec *WorkflowSpec `json:"spec"` // Workflow status Status *WorkflowStatus `json:"status"` // Events payload Data EventsPayloadData []EventPayloadData `json:"eventsPayloadData"` // Events payload references EventsPayload []*EventPayload `json:"eventsPayload"` // Pipeline refernece Pipeline *Pipeline `json:"pipeline"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Workflow URL URL *string `json:"url"` }
Workflow entity
func (Workflow) IsBaseEntity ¶
func (Workflow) IsBaseEntity()
func (Workflow) IsK8sStandardEntity ¶ added in v0.30.3
func (Workflow) IsK8sStandardEntity()
func (Workflow) IsProjectBasedEntity ¶
func (Workflow) IsProjectBasedEntity()
type WorkflowContainerSpec ¶
type WorkflowContainerSpec struct { // Name Name *string `json:"name"` // Image Image *string `json:"image"` // Command array Command []*string `json:"command"` // Args Args []*string `json:"args"` // Env map Env []*StringPair `json:"env"` }
Workflow step
type WorkflowContainerTemplate ¶ added in v0.30.3
type WorkflowContainerTemplate struct { // Name Name string `json:"name"` // Daemon Daemon *bool `json:"daemon"` // Container Container *WorkflowContainerSpec `json:"container"` }
Workflow container template
func (WorkflowContainerTemplate) IsWorkflowSpecTemplate ¶ added in v0.30.3
func (WorkflowContainerTemplate) IsWorkflowSpecTemplate()
type WorkflowDAGTask ¶
type WorkflowDAGTask struct { // Name Name string `json:"name"` // Template to execute TemplateName *string `json:"templateName"` // Workflow template ref WorkflowTemplateRef *WorkflowTemplateRef `json:"workflowTemplateRef"` }
Workflow DAG task
type WorkflowDAGTemplate ¶
type WorkflowDAGTemplate struct { // Name Name string `json:"name"` // Tasks Tasks []*WorkflowDAGTask `json:"tasks"` // Fail on first failed task FailFast *bool `json:"failFast"` }
Workflow DAG template
func (WorkflowDAGTemplate) IsWorkflowSpecTemplate ¶
func (WorkflowDAGTemplate) IsWorkflowSpecTemplate()
type WorkflowEdge ¶
type WorkflowEdge struct { // Node contains the actual workflow data Node *Workflow `json:"node"` // Cursor Cursor string `json:"cursor"` }
Workflow Edge
func (WorkflowEdge) IsEdge ¶
func (WorkflowEdge) IsEdge()
type WorkflowNodePhases ¶ added in v0.34.6
type WorkflowNodePhases string
Workflow nodes WorkflowPhases
const ( // Error WorkflowNodePhasesError WorkflowNodePhases = "Error" // Failed WorkflowNodePhasesFailed WorkflowNodePhases = "Failed" // Omitted WorkflowNodePhasesOmitted WorkflowNodePhases = "Omitted" // Pending WorkflowNodePhasesPending WorkflowNodePhases = "Pending" // Running WorkflowNodePhasesRunning WorkflowNodePhases = "Running" // Skipped WorkflowNodePhasesSkipped WorkflowNodePhases = "Skipped" // Succeeded WorkflowNodePhasesSucceeded WorkflowNodePhases = "Succeeded" )
func (WorkflowNodePhases) IsValid ¶ added in v0.34.6
func (e WorkflowNodePhases) IsValid() bool
func (WorkflowNodePhases) MarshalGQL ¶ added in v0.34.6
func (e WorkflowNodePhases) MarshalGQL(w io.Writer)
func (WorkflowNodePhases) String ¶ added in v0.34.6
func (e WorkflowNodePhases) String() string
func (*WorkflowNodePhases) UnmarshalGQL ¶ added in v0.34.6
func (e *WorkflowNodePhases) UnmarshalGQL(v interface{}) error
type WorkflowPage ¶
type WorkflowPage struct { // Total amount of workflows TotalCount int `json:"totalCount"` // Workflow edges Edges []*WorkflowEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
Workflow Page
func (WorkflowPage) IsPage ¶
func (WorkflowPage) IsPage()
type WorkflowPhases ¶
type WorkflowPhases string
Workflow WorkflowPhases
const ( // Error WorkflowPhasesError WorkflowPhases = "Error" // Failed WorkflowPhasesFailed WorkflowPhases = "Failed" // Pending WorkflowPhasesPending WorkflowPhases = "Pending" // Running WorkflowPhasesRunning WorkflowPhases = "Running" // Succeeded WorkflowPhasesSucceeded WorkflowPhases = "Succeeded" )
func (WorkflowPhases) IsValid ¶
func (e WorkflowPhases) IsValid() bool
func (WorkflowPhases) MarshalGQL ¶
func (e WorkflowPhases) MarshalGQL(w io.Writer)
func (WorkflowPhases) String ¶
func (e WorkflowPhases) String() string
func (*WorkflowPhases) UnmarshalGQL ¶
func (e *WorkflowPhases) UnmarshalGQL(v interface{}) error
type WorkflowReadModelEventPayload ¶ added in v0.34.6
type WorkflowReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
WorkflowReadModelEventPayload type
func (WorkflowReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (WorkflowReadModelEventPayload) IsReadModelEventPayload()
type WorkflowResourceTemplate ¶ added in v0.30.3
type WorkflowResourceTemplate struct { // Name Name string `json:"name"` }
Workflow Resource template
func (WorkflowResourceTemplate) IsWorkflowSpecTemplate ¶ added in v0.30.3
func (WorkflowResourceTemplate) IsWorkflowSpecTemplate()
type WorkflowScriptTemplate ¶ added in v0.30.3
type WorkflowScriptTemplate struct { // Name Name string `json:"name"` }
Workflow script template
func (WorkflowScriptTemplate) IsWorkflowSpecTemplate ¶ added in v0.30.3
func (WorkflowScriptTemplate) IsWorkflowSpecTemplate()
type WorkflowSlice ¶
type WorkflowSlice struct { // Workflow edges Edges []*WorkflowEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
Workflow Slice
func (WorkflowSlice) IsSlice ¶
func (WorkflowSlice) IsSlice()
type WorkflowSpec ¶
type WorkflowSpec struct { // Entrypoint Entrypoint *string `json:"entrypoint"` // Templates Templates []WorkflowSpecTemplate `json:"templates"` // Workflow template reference WorkflowTemplateRef *WorkflowTemplateRef `json:"workflowTemplateRef"` }
Workflow spec
type WorkflowSpecNameOnlyTemplate ¶ added in v0.31.2
type WorkflowSpecNameOnlyTemplate struct { // Name Name string `json:"name"` }
Workflow spec name only template
func (WorkflowSpecNameOnlyTemplate) IsWorkflowSpecTemplate ¶ added in v0.31.2
func (WorkflowSpecNameOnlyTemplate) IsWorkflowSpecTemplate()
type WorkflowSpecTemplate ¶
type WorkflowSpecTemplate interface {
IsWorkflowSpecTemplate()
}
Workflow spec template
type WorkflowStatus ¶
type WorkflowStatus struct { // Start time StartedAt *string `json:"startedAt"` // Finish time FinishedAt *string `json:"finishedAt"` // Current workflow phase Phase WorkflowPhases `json:"phase"` // Progress Progress *Progress `json:"progress"` // Current workflow nodes status Nodes []*NodeStatus `json:"nodes"` // Message Message *string `json:"message"` // Previous statuses Statuses []*StatusHistoryItem `json:"statuses"` }
Workflow status
type WorkflowStep ¶
type WorkflowStep struct { // Name Name string `json:"name"` // Template to execute TemplateName *string `json:"templateName"` // Workflow template ref WorkflowTemplateRef *WorkflowTemplateRef `json:"workflowTemplateRef"` }
Workflow step
type WorkflowStepsTemplate ¶
type WorkflowStepsTemplate struct { // Name Name string `json:"name"` // Steps Steps [][]*WorkflowStep `json:"steps"` }
Workflow steps template
func (WorkflowStepsTemplate) IsWorkflowSpecTemplate ¶
func (WorkflowStepsTemplate) IsWorkflowSpecTemplate()
type WorkflowSuspendedTemplate ¶ added in v0.30.3
type WorkflowSuspendedTemplate struct { // Name Name string `json:"name"` }
Workflow Resource template
func (WorkflowSuspendedTemplate) IsWorkflowSpecTemplate ¶ added in v0.30.3
func (WorkflowSuspendedTemplate) IsWorkflowSpecTemplate()
type WorkflowTemplate ¶
type WorkflowTemplate struct { // Object metadata Metadata *ObjectMeta `json:"metadata"` // Errors Errors []Error `json:"errors"` // Entities referencing this entity ReferencedBy []BaseEntity `json:"referencedBy"` // Entities referenced by this enitity References []BaseEntity `json:"references"` // History of the workflow-template History *GitOpsSlice `json:"history"` // Version of the entity Version *int `json:"version"` // Is this the latest version of this entity Latest *bool `json:"latest"` // Entity source Source *GitopsEntitySource `json:"source"` // Sync status SyncStatus SyncStatus `json:"syncStatus"` // Health status HealthStatus *HealthStatus `json:"healthStatus"` // Health message HealthMessage *string `json:"healthMessage"` // Desired manifest DesiredManifest *string `json:"desiredManifest"` // Actual manifest ActualManifest *string `json:"actualManifest"` // Projects Projects []string `json:"projects"` // Workflow spec Spec *WorkflowSpec `json:"spec"` }
Workflow template entity
func (WorkflowTemplate) IsBaseEntity ¶
func (WorkflowTemplate) IsBaseEntity()
func (WorkflowTemplate) IsEntity ¶
func (WorkflowTemplate) IsEntity()
func (WorkflowTemplate) IsGitopsEntity ¶
func (WorkflowTemplate) IsGitopsEntity()
func (WorkflowTemplate) IsProjectBasedEntity ¶
func (WorkflowTemplate) IsProjectBasedEntity()
type WorkflowTemplateEdge ¶
type WorkflowTemplateEdge struct { // Node contains the actual workflow template data Node *WorkflowTemplate `json:"node"` // Cursor Cursor string `json:"cursor"` }
Workflow template Edge
func (WorkflowTemplateEdge) IsEdge ¶
func (WorkflowTemplateEdge) IsEdge()
type WorkflowTemplatePage ¶
type WorkflowTemplatePage struct { // Total amount of workflow templates TotalCount int `json:"totalCount"` // Workflow template edges Edges []*WorkflowTemplateEdge `json:"edges"` // Page information PageInfo *PageInfo `json:"pageInfo"` }
WorkflowTemplate Page
func (WorkflowTemplatePage) IsPage ¶
func (WorkflowTemplatePage) IsPage()
type WorkflowTemplateReadModelEventPayload ¶ added in v0.34.6
type WorkflowTemplateReadModelEventPayload struct { // Type of DB entity EntityType *string `json:"entityType"` // Type of DB event upsert/delete EventType *string `json:"eventType"` // Reference to old entity OldItem *EntityReference `json:"oldItem"` // Reference to new entity NewItem *EntityReference `json:"newItem"` }
WorkflowTemplateReadModelEventPayload type
func (WorkflowTemplateReadModelEventPayload) IsReadModelEventPayload ¶ added in v0.34.6
func (WorkflowTemplateReadModelEventPayload) IsReadModelEventPayload()
type WorkflowTemplateRef ¶ added in v0.30.3
type WorkflowTemplateRef struct { // Name Name *string `json:"name"` // Group Group string `json:"group"` // Kind Kind string `json:"kind"` // Version Version string `json:"version"` // Namespace Namespace *string `json:"namespace"` }
Workflow template ref
type WorkflowTemplateSlice ¶
type WorkflowTemplateSlice struct { // Workflow template edges Edges []*WorkflowTemplateEdge `json:"edges"` // Slice information PageInfo *SliceInfo `json:"pageInfo"` }
WorkflowTemplate Slice
func (WorkflowTemplateSlice) IsSlice ¶
func (WorkflowTemplateSlice) IsSlice()
type WorkflowsFilterArgs ¶ added in v0.30.3
type WorkflowsFilterArgs struct { // Filter workflows from a specific project Project *string `json:"project"` // Filter workflows from a specific runtime Runtime *string `json:"runtime"` // Filter workflows from a specific namespace Namespace *string `json:"namespace"` // Filter workflows from a specific pipeline Pipeline *NamespacedFindOneArgs `json:"pipeline"` // Filter workflows from a specific repositories Repositories []*string `json:"repositories"` // Filter workflows from a specific branches Branches []*string `json:"branches"` // Filter workflows from a specific event types EventTypes []*string `json:"eventTypes"` // Filter workflows from a specific initiators Initiators []*string `json:"initiators"` // Filter workflows from a specific statuses Statuses []*WorkflowPhases `json:"statuses"` // Filter workflows from a specific start date StartDateFrom *string `json:"startDateFrom"` // Filter workflows to a specific start date StartDateTo *string `json:"startDateTo"` }
Workflow filter arguments