Documentation
¶
Index ¶
- Variables
- type APIToken
- type Account
- type AccountFeatures
- type AddGitIntegrationArgs
- type AddUserToAccountArgs
- type AppProxyVersionInfo
- type Application
- type ApplicationEdge
- type ApplicationRef
- type ApplicationSlice
- type AppsRelations
- type ArgoCDApplicationStatus
- type BaseEntity
- type CalendarEventPayloadData
- type CalendarSourceArgs
- type ClientIP
- type Commit
- type CommitFilesArgs
- type Committer
- type CommonGitEventPayloadData
- type Comparator
- type Component
- type ComponentEdge
- type ComponentSlice
- type CompositeSlice
- type CompositeSliceInfo
- type CompositeSlicePaginationArgs
- type CreatePipelineArgs
- type CustomDataFilter
- type Customer
- type DataFilter
- type DeleteFilesArgs
- type Edge
- type EditGitIntegrationArgs
- type EditUserToAccountArgs
- type Entity
- type Error
- type ErrorContext
- type ErrorLevels
- type Event
- type EventDependencyFilter
- type EventPayload
- type EventPayloadData
- type EventPayloadEdge
- type EventPayloadSlice
- type EventSource
- type EventSourceEdge
- type EventSourceSlice
- type Events
- type Favorable
- type FavoriteInfoArgs
- type File
- type GenericEntity
- type GenericEntityEdge
- type GenericEntitySlice
- type GitIntegration
- type GitOpsEdge
- type GitOpsSlice
- type GitPRComment
- type GitPREventPayloadData
- type GitPr
- type GitPrFork
- type GitProviders
- type GitPush
- type GitPushCommit
- type GitPushCommitRevision
- type GitPushCommitTargetRevision
- type GitPushEventPayloadData
- type GitPushPayloadDataTypes
- type GitPushTag
- type GitPushTagRevision
- type GitRelease
- type GitReleaseEventPayloadData
- type GitRepositoriesArgs
- type GitSource
- type GitSourceEdge
- type GitSourceNotification
- type GitSourceSlice
- type GitUnknownEventPayloadData
- type GithubEvent
- type GithubSourceArgs
- type GitopsEntity
- type GitopsEntitySource
- type HealthError
- type HealthErrorCodes
- type HealthErrorInput
- type HealthStatus
- type Initiator
- type InstallationStatus
- type Integration
- type JSONTypes
- type K8sLogicEntity
- type K8sStandardEntity
- type MetricWithTrend
- type NodeStatus
- type Notification
- type NotificationEdge
- type NotificationInfo
- type NotificationSlice
- type NotificationType
- type ObjectMeta
- type PayloadDataTypes
- type Pipeline
- type PipelineAverageDurationStats
- type PipelineAverageDurationStatsData
- type PipelineAverageDurationStatsInfo
- type PipelineCommittersStats
- type PipelineCommittersStatsData
- type PipelineCommittersStatsInfo
- type PipelineCreationData
- type PipelineEdge
- type PipelineExecutionsStats
- type PipelineExecutionsStatsData
- type PipelineExecutionsStatsInfo
- type PipelineOrderedStatistics
- type PipelineSlice
- type PipelineSpec
- type PipelineStatistics
- type PipelineStepStatistics
- type PipelineSuccessRateStats
- type PipelineSuccessRateStatsData
- type PipelineSuccessRateStatsInfo
- type PipelinesFilterArgs
- type PredefinedDataFilter
- type Project
- type ProjectBasedEntity
- type ProjectEdge
- type ProjectSlice
- type ReadFileArgs
- type RegisterToGitIntegrationArgs
- type Release
- type ReportRuntimeErrorsArgs
- type RepositoriesFilterArgs
- type RepositoriesPage
- type Repository
- type ResourceAction
- type ResourceEvent
- type Runtime
- type RuntimeCreationResponse
- type RuntimeEdge
- type RuntimeInstallationArgs
- type RuntimeNotification
- type RuntimeSlice
- type SecurityInfo
- type SecurityInfoArgs
- type Sensor
- type SensorEdge
- type SensorSlice
- type ServiceEntity
- type ServiceEntityEdge
- type ServiceEntitySlice
- type ServicePort
- type ServiceSpec
- type ServiceType
- type SessionAffinityConfig
- type SetAccountAllowedDomainsArgs
- type SharingPolicy
- type Slice
- type SliceInfo
- type SlicePaginationArgs
- type SortingField
- type SortingOrder
- type SourceArgs
- type Sso
- type StatsTimePeriodData
- type StatusHistoryItem
- type StringPair
- type SwitchAccountResponse
- type SyncError
- type SyncErrorCodes
- type SyncStatus
- type TriggerParameter
- type TriggerParameterSource
- type Tuple
- type UnknownEventPayloadData
- type User
- type Workflow
- type WorkflowContainerSpec
- type WorkflowContainerTemplate
- type WorkflowDAGTask
- type WorkflowDAGTemplate
- type WorkflowEdge
- type WorkflowNodePhases
- type WorkflowPhases
- type WorkflowRepository
- type WorkflowResourceTemplate
- type WorkflowScriptTemplate
- type WorkflowSlice
- type WorkflowSpec
- type WorkflowSpecNameOnlyTemplate
- type WorkflowSpecTemplate
- type WorkflowStatus
- type WorkflowStep
- type WorkflowStepsTemplate
- type WorkflowSuspendedTemplate
- type WorkflowTemplate
- type WorkflowTemplateArgs
- type WorkflowTemplateEdge
- type WorkflowTemplateRef
- type WorkflowTemplateSlice
Constants ¶
This section is empty.
Variables ¶
var AllComparator = []Comparator{ ComparatorGt, ComparatorGte, ComparatorEq, ComparatorNe, ComparatorLt, ComparatorLte, }
var AllErrorLevels = []ErrorLevels{ ErrorLevelsError, ErrorLevelsWarning, }
var AllGitProviders = []GitProviders{ GitProvidersGithub, GitProvidersGitlab, }
var AllGitPushPayloadDataTypes = []GitPushPayloadDataTypes{ GitPushPayloadDataTypesBranch, GitPushPayloadDataTypesTag, }
var AllHealthErrorCodes = []HealthErrorCodes{ HealthErrorCodesBrokenReference, HealthErrorCodesInactiveRuntime, HealthErrorCodesInsufficientResources, HealthErrorCodesRuntimeInstallationError, HealthErrorCodesTransitiveError, HealthErrorCodesUnknown, }
var AllHealthStatus = []HealthStatus{ HealthStatusDegraded, HealthStatusHealthy, HealthStatusMissing, HealthStatusProgressing, HealthStatusSuspended, HealthStatusUnknown, }
var AllInstallationStatus = []InstallationStatus{ InstallationStatusCompleted, InstallationStatusFailed, InstallationStatusInProgress, }
var AllJSONTypes = []JSONTypes{ JSONTypesArray, JSONTypesBoolean, JSONTypesNumber, JSONTypesObject, JSONTypesString, }
var AllNotificationType = []NotificationType{ NotificationTypeComponentHealthProgressing, NotificationTypeComponentHealthUnhealthy, NotificationTypeComponentSyncFail, NotificationTypeComponentSyncSuccess, NotificationTypeComponentSyncSyncing, NotificationTypeGsCreated, NotificationTypeGsRemoved, NotificationTypeGsSyncFail, NotificationTypeGsSyncSuccess, NotificationTypeGsSyncSyncing, NotificationTypeRuntimeInstallFail, NotificationTypeRuntimeInstallProgressing, NotificationTypeRuntimeInstallSuccess, NotificationTypeRuntimeUninstallFail, NotificationTypeRuntimeUninstallProgressing, NotificationTypeRuntimeUninstallSuccess, NotificationTypeRuntimeUpgradeFail, NotificationTypeRuntimeUpgradeProgressing, NotificationTypeRuntimeUpgradeSuccess, }
var AllPayloadDataTypes = []PayloadDataTypes{ PayloadDataTypesCalendar, PayloadDataTypesGit, PayloadDataTypesUnknown, }
var AllResourceAction = []ResourceAction{ ResourceActionAdded, ResourceActionDeleted, ResourceActionUpdated, }
var AllServiceType = []ServiceType{ ServiceTypeClusterIP, ServiceTypeExternalName, ServiceTypeLoadBalancer, ServiceTypeNodePort, }
var AllSharingPolicy = []SharingPolicy{ SharingPolicyAccountAdmins, SharingPolicyAllUsersInAccount, }
var AllSortingField = []SortingField{ SortingFieldHealthStatus, SortingFieldKind, SortingFieldLastUpdated, SortingFieldName, SortingFieldRuntime, SortingFieldSyncStatus, }
var AllSortingOrder = []SortingOrder{ SortingOrderAsc, SortingOrderDesc, }
var AllSyncErrorCodes = []SyncErrorCodes{ SyncErrorCodesInvalidSpec, SyncErrorCodesUnknown, }
var AllSyncStatus = []SyncStatus{ SyncStatusOutOfSync, SyncStatusSynced, SyncStatusSyncing, SyncStatusUnknown, }
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 SSO integrations
SsoIntegrations []*Sso `json:"ssoIntegrations"`
// Users that are attached to this account
Users []*User `json:"users"`
// Ids of all users that have account admin premission to this account
Admins []string `json:"admins"`
// Controls if this account can edit its allowedDomains
EnabledAllowedDomains *bool `json:"enabledAllowedDomains"`
// All allowed domains for this account
AllowedDomains []string `json:"allowedDomains"`
// Account security
Security *SecurityInfo `json:"security"`
}
Account is logical entity that group together users pipeliens and more
type AccountFeatures ¶
type AccountFeatures struct {
// Support ability to toggle between dark and light mode
ThemeToggle *bool `json:"themeToggle"`
}
Account Features flags
type AddGitIntegrationArgs ¶
type AddGitIntegrationArgs struct {
// Git integration name
Name *string `json:"name"`
// Git provider
Provider GitProviders `json:"provider"`
// The address of the git provider api
APIURL string `json:"apiUrl"`
// Sharing policy
SharingPolicy SharingPolicy `json:"sharingPolicy"`
}
Git integration creation args
type AddUserToAccountArgs ¶
type AddUserToAccountArgs struct {
// User email
UserEmail string `json:"userEmail"`
// Is user Admin
IsAdmin bool `json:"isAdmin"`
// Users chosen sso id
Sso *string `json:"sso"`
}
Args to add user to account
type AppProxyVersionInfo ¶
type AppProxyVersionInfo struct {
// The version of the app-proxy
Version string `json:"version"`
// The address of the platform the app-proxy is working with
PlatformHost string `json:"platformHost"`
// The version of the platform this app-proxy was built against
PlatformVersion string `json:"platformVersion"`
}
App Proxy version information
type Application ¶
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"`
// Relations between parents and child applications in tree
AppsRelations *AppsRelations `json:"appsRelations"`
// 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"`
// Cluster from runtime
Cluster *string `json:"cluster"`
// Favorites
Favorites []string `json:"favorites"`
}
Application entity
func (Application) IsBaseEntity ¶
func (Application) IsBaseEntity()
func (Application) IsEntity ¶
func (Application) IsEntity()
func (Application) IsFavorable ¶ added in v0.37.0
func (Application) IsFavorable()
func (Application) IsGitopsEntity ¶
func (Application) IsGitopsEntity()
func (Application) IsProjectBasedEntity ¶
func (Application) IsProjectBasedEntity()
type ApplicationEdge ¶
type ApplicationEdge struct {
// Node contains the actual application data
Node *Application `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
Application Edge
func (ApplicationEdge) IsEdge ¶
func (ApplicationEdge) IsEdge()
type ApplicationRef ¶
type ApplicationRef 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"`
// Is reference was cut during tree normalizing
IsReferenceCut *bool `json:"isReferenceCut"`
}
Application ref
type ApplicationSlice ¶
type ApplicationSlice struct {
// Application edges
Edges []*ApplicationEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
Application Slice
func (ApplicationSlice) IsSlice ¶
func (ApplicationSlice) IsSlice()
type AppsRelations ¶
type AppsRelations struct {
// Entities referencing this entity
ReferencedBy []*ApplicationRef `json:"referencedBy"`
// Entities referenced by this enitity
References []*ApplicationRef `json:"references"`
}
Application relations
type ArgoCDApplicationStatus ¶
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"`
// Version
Version string `json:"version"`
}
Argo CD Application status
type CalendarEventPayloadData ¶
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 ¶
func (CalendarEventPayloadData) IsEventPayloadData()
type CalendarSourceArgs ¶ added in v0.37.0
type CalendarSourceArgs struct {
// Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron
Schedule string `json:"schedule"`
// Interval is a string that describes an interval duration, e.g. 1s, 30m, 2h…
Interval string `json:"interval"`
// Exclusion dates for running job
ExclusionDates []*string `json:"exclusionDates"`
// Timezone in which to run the schedule
Timezone *string `json:"timezone"`
}
Calenar source arguments
type ClientIP ¶ added in v0.37.0
type ClientIP struct {
// TimeoutSeconds
TimeoutSeconds *int `json:"timeoutSeconds"`
}
ClientIP
type Commit ¶ added in v0.37.0
type Commit struct {
// Commit sha
Sha string `json:"sha"`
// Committer
Committer *Committer `json:"committer"`
}
Commit
type CommitFilesArgs ¶ added in v0.37.0
type CommitFilesArgs struct {
// Git integration name, if not provided will use the default one
IntegrationName *string `json:"integrationName"`
// Branch name
BranchName string `json:"branchName"`
// Repository full name in format {owner}/{name}
Repo string `json:"repo"`
// Files to commit
Files []*File `json:"files"`
// Commit messege
Msg *string `json:"msg"`
// Description messege
Description *string `json:"description"`
}
Commit files to a git repository args
type Committer ¶ added in v0.37.0
type Committer struct {
// Committer name
Name string `json:"name"`
// Committer email
Email *string `json:"email"`
// Committer avatar url
AvatarURL *string `json:"avatarUrl"`
// Committer page url
ProfileURL *string `json:"profileUrl"`
}
Git committer profile
type CommonGitEventPayloadData ¶
type CommonGitEventPayloadData interface {
IsCommonGitEventPayloadData()
}
"Common events properties
type Comparator ¶ added in v0.37.0
type Comparator string
Comparator values - “>=”, “>”, “=”, “!=”, “<”, or “<=”.
const ( ComparatorGt Comparator = "GT" ComparatorGte Comparator = "GTE" ComparatorEq Comparator = "EQ" ComparatorNe Comparator = "NE" ComparatorLt Comparator = "LT" ComparatorLte Comparator = "LTE" )
func (Comparator) IsValid ¶ added in v0.37.0
func (e Comparator) IsValid() bool
func (Comparator) MarshalGQL ¶ added in v0.37.0
func (e Comparator) MarshalGQL(w io.Writer)
func (Comparator) String ¶ added in v0.37.0
func (e Comparator) String() string
func (*Comparator) UnmarshalGQL ¶ added in v0.37.0
func (e *Comparator) UnmarshalGQL(v interface{}) error
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 *CompositeSlice `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 ¶
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 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 CompositeSlice ¶
type CompositeSlice struct {
// GitOps edges
Edges []*GitOpsEdge `json:"edges"`
// Slice information
PageInfo []*CompositeSliceInfo `json:"pageInfo"`
// Indicate if there is next slice
HasNextPage bool `json:"hasNextPage"`
// Indicate if there is previous slice
HasPrevPage bool `json:"hasPrevPage"`
}
Composite Slice
type CompositeSliceInfo ¶
type CompositeSliceInfo struct {
// Key of the slice
Key string `json:"key"`
// Cursor for the first result in the slice
StartCursor *string `json:"startCursor"`
// Cursor for the last result in the slice
EndCursor *string `json:"endCursor"`
}
Infomration about a slice of a specific kind
type CompositeSlicePaginationArgs ¶
type CompositeSlicePaginationArgs struct {
// References a specific key
Key string `json:"key"`
// 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 kind-slice
type CreatePipelineArgs ¶ added in v0.37.0
type CreatePipelineArgs struct {
// Sensor name
SensorName *string `json:"sensorName"`
// Trigger name
TriggerName *string `json:"triggerName"`
// Source arguments
SourcesArgs *SourceArgs `json:"SourcesArgs"`
// Workflow template arguments
WorkflowTemplateArgs *WorkflowTemplateArgs `json:"workflowTemplateArgs"`
}
Pipeline creation arguments
type CustomDataFilter ¶ added in v0.37.0
type CustomDataFilter struct {
// Path is the JSONPath of the event’s (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters and ‘?’. To access an array value use the index as the key. The dot and wildcard characters can be escaped with ‘’. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this. in addition you can pass a predefined varibles as the following ${{ VAR }} - assuming VAR is predefiend varaible
Path string `json:"path"`
// Type contains the JSON type of the data
Type JSONTypes `json:"type"`
// Value is the allowed string values for this key Booleans are passed using strconv.ParseBool() Numbers are parsed using as float64 using strconv.ParseFloat() Strings are taken as is Nils this value is ignored
Value []*string `json:"value"`
// Comparator compares the event data with a user given value. if left blank treated as equality
Comparator *Comparator `json:"comparator"`
// Template is a go-template for extracting a string from the event’s data. A Template is evaluated with provided path, type and value. The templating follows the standard go-template syntax as well as sprig’s extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/
Template *string `json:"template"`
}
Custom Date filter
type DataFilter ¶ added in v0.37.0
type DataFilter struct {
// Filters from pre defined list
PredefinedDataFilter *PredefinedDataFilter `json:"predefinedDataFilter"`
// Custom filters
CustomDataFilter *CustomDataFilter `json:"customDataFilter"`
}
Date filters
type DeleteFilesArgs ¶ added in v0.37.0
type DeleteFilesArgs struct {
// Git integration name, if not provided will use the default one
IntegrationName *string `json:"integrationName"`
// Branch name
BranchName string `json:"branchName"`
// Repository name in format {owner}/{name}
Repo string `json:"repo"`
// File paths to delete
Paths []string `json:"paths"`
// Commit messege
Msg *string `json:"msg"`
// Description messege
Description *string `json:"description"`
}
Delete files from a git repository args
type EditGitIntegrationArgs ¶
type EditGitIntegrationArgs struct {
// Git integration name
Name *string `json:"name"`
// The address of the git provider api
APIURL string `json:"apiUrl"`
// Sharing policy
SharingPolicy SharingPolicy `json:"sharingPolicy"`
}
Git integration edit args
type EditUserToAccountArgs ¶
type EditUserToAccountArgs struct {
// User email
UserEmail string `json:"userEmail"`
// Is user Admin
IsAdmin bool `json:"isAdmin"`
// Users chosen sso id
Sso *string `json:"sso"`
// The user id
ID string `json:"id"`
// The current status of this user
Status string `json:"status"`
}
Args to edit user to account
type ErrorContext ¶
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 ¶
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 ¶
func (e ErrorLevels) IsValid() bool
func (ErrorLevels) MarshalGQL ¶
func (e ErrorLevels) MarshalGQL(w io.Writer)
func (ErrorLevels) String ¶
func (e ErrorLevels) String() string
func (*ErrorLevels) UnmarshalGQL ¶
func (e *ErrorLevels) UnmarshalGQL(v interface{}) error
type EventDependencyFilter ¶ added in v0.37.0
type EventDependencyFilter struct {
// Data filter constraints with escalation
Data []*DataFilter `json:"data"`
}
Event dependency filter
type EventPayload ¶
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 ¶
func (EventPayload) IsEntity()
type EventPayloadData ¶
type EventPayloadData interface {
IsEventPayloadData()
}
Event payload data types
type EventPayloadEdge ¶
type EventPayloadEdge struct {
// Node contains the actual event payload data
Node *EventPayload `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
EventPayload Edge
func (EventPayloadEdge) IsEdge ¶
func (EventPayloadEdge) IsEdge()
type EventPayloadSlice ¶
type EventPayloadSlice struct {
// EventPayload edges
Edges []*EventPayloadEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
EventPayload Slice
func (EventPayloadSlice) IsSlice ¶
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 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 Events ¶ added in v0.37.0
type Events struct {
Action *string `json:"action"`
Filters []*EventDependencyFilter `json:"filters"`
Parameters []*TriggerParameter `json:"parameters"`
}
Events
type FavoriteInfoArgs ¶ added in v0.37.0
type FavoriteInfoArgs struct {
// Event-source kind
Kind string `json:"kind"`
// Event-source group
Group string `json:"group"`
// Event-source group
Version string `json:"version"`
// Event-source runtime name
Runtime string `json:"runtime"`
// Event-source name
Name string `json:"name"`
// Event-source namespace
Namespace *string `json:"namespace"`
}
Args to set favorite for entity
type File ¶ added in v0.37.0
type File struct {
// File full path
Path string `json:"path"`
// File data
Data string `json:"data"`
}
File
type GenericEntity ¶
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 ¶
func (GenericEntity) IsBaseEntity()
func (GenericEntity) IsEntity ¶
func (GenericEntity) IsEntity()
func (GenericEntity) IsGitopsEntity ¶
func (GenericEntity) IsGitopsEntity()
func (GenericEntity) IsProjectBasedEntity ¶
func (GenericEntity) IsProjectBasedEntity()
type GenericEntityEdge ¶
type GenericEntityEdge struct {
// Node contains the actual app-project data
Node *GenericEntity `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
GenericEntity Edge
func (GenericEntityEdge) IsEdge ¶
func (GenericEntityEdge) IsEdge()
type GenericEntitySlice ¶
type GenericEntitySlice struct {
// GenericEntity edges
Edges []*GenericEntityEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
GenericEntity Slice
func (GenericEntitySlice) IsSlice ¶
func (GenericEntitySlice) IsSlice()
type GitIntegration ¶
type GitIntegration struct {
// Git integration name
Name string `json:"name"`
// Sharing policy
SharingPolicy SharingPolicy `json:"sharingPolicy"`
// Git provider
Provider GitProviders `json:"provider"`
// The address of the git provider api
APIURL string `json:"apiUrl"`
// List of user ids that registered themselves to this git integration
RegisteredUsers []string `json:"registeredUsers"`
}
Git integration
func (GitIntegration) IsIntegration ¶
func (GitIntegration) IsIntegration()
type GitOpsEdge ¶
type GitOpsEdge struct {
// Node contains the actual component data
Node GitopsEntity `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
GitOps Edge
type GitOpsSlice ¶
type GitOpsSlice struct {
// GitOps edges
Edges []*GitOpsEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
GitOps Slice
type GitPRComment ¶
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 ¶
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 *WorkflowRepository `json:"repository"`
// Event initiator
Initiator *Initiator `json:"initiator"`
// PR data
Pr *GitPr `json:"pr"`
}
"PR event
func (GitPREventPayloadData) IsCommonGitEventPayloadData ¶
func (GitPREventPayloadData) IsCommonGitEventPayloadData()
func (GitPREventPayloadData) IsEventPayloadData ¶
func (GitPREventPayloadData) IsEventPayloadData()
type GitPr ¶
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 ¶
type GitPrFork struct {
// Repository
Repository *WorkflowRepository `json:"repository"`
}
"PR fork data
type GitProviders ¶
type GitProviders string
Git providers
const ( // Github GitProvidersGithub GitProviders = "GITHUB" // Gitlab GitProvidersGitlab GitProviders = "GITLAB" )
func (GitProviders) IsValid ¶
func (e GitProviders) IsValid() bool
func (GitProviders) MarshalGQL ¶
func (e GitProviders) MarshalGQL(w io.Writer)
func (GitProviders) String ¶
func (e GitProviders) String() string
func (*GitProviders) UnmarshalGQL ¶
func (e *GitProviders) UnmarshalGQL(v interface{}) error
type GitPushCommit ¶
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 ¶
func (GitPushCommit) IsGitPush()
type GitPushCommitRevision ¶
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 ¶
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 ¶
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 *WorkflowRepository `json:"repository"`
// Event initiator
Initiator *Initiator `json:"initiator"`
// Push data
Push GitPush `json:"push"`
}
"Push event
func (GitPushEventPayloadData) IsCommonGitEventPayloadData ¶
func (GitPushEventPayloadData) IsCommonGitEventPayloadData()
func (GitPushEventPayloadData) IsEventPayloadData ¶
func (GitPushEventPayloadData) IsEventPayloadData()
type GitPushPayloadDataTypes ¶
type GitPushPayloadDataTypes string
Types of push event
const ( GitPushPayloadDataTypesBranch GitPushPayloadDataTypes = "branch" GitPushPayloadDataTypesTag GitPushPayloadDataTypes = "tag" )
func (GitPushPayloadDataTypes) IsValid ¶
func (e GitPushPayloadDataTypes) IsValid() bool
func (GitPushPayloadDataTypes) MarshalGQL ¶
func (e GitPushPayloadDataTypes) MarshalGQL(w io.Writer)
func (GitPushPayloadDataTypes) String ¶
func (e GitPushPayloadDataTypes) String() string
func (*GitPushPayloadDataTypes) UnmarshalGQL ¶
func (e *GitPushPayloadDataTypes) UnmarshalGQL(v interface{}) error
type GitPushTag ¶
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 ¶
func (GitPushTag) IsGitPush()
type GitPushTagRevision ¶
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 ¶
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 ¶
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 *WorkflowRepository `json:"repository"`
// Event initiator
Initiator *Initiator `json:"initiator"`
// Release data
Release *GitRelease `json:"release"`
}
"Release event
func (GitReleaseEventPayloadData) IsCommonGitEventPayloadData ¶
func (GitReleaseEventPayloadData) IsCommonGitEventPayloadData()
func (GitReleaseEventPayloadData) IsEventPayloadData ¶
func (GitReleaseEventPayloadData) IsEventPayloadData()
type GitRepositoriesArgs ¶ added in v0.37.0
type GitRepositoriesArgs struct {
// Git integration name, if not provided will use the default one
IntegrationName *string `json:"integrationName"`
// If empty will return first page
Page *int `json:"page"`
// Default 100, max 200 results per page
Limit *int `json:"limit"`
}
Git Repositories Args
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 *CompositeSlice `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 ¶
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 GitSourceNotification ¶ added in v0.37.0
type GitSourceNotification struct {
// Commit information that triggered sync
Source *GitopsEntitySource `json:"source"`
// Link to the git-source in git provider
GsRepoLink *string `json:"gsRepoLink"`
// Sync status
GsSyncStatus SyncStatus `json:"gsSyncStatus"`
}
Git source notification
func (GitSourceNotification) IsNotificationInfo ¶ added in v0.37.0
func (GitSourceNotification) IsNotificationInfo()
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 ¶
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 *WorkflowRepository `json:"repository"`
// Event initiator
Initiator *Initiator `json:"initiator"`
}
"Unknown Git event
func (GitUnknownEventPayloadData) IsCommonGitEventPayloadData ¶
func (GitUnknownEventPayloadData) IsCommonGitEventPayloadData()
func (GitUnknownEventPayloadData) IsEventPayloadData ¶
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 GithubSourceArgs ¶ added in v0.37.0
type GithubSourceArgs struct {
Repository *string `json:"repository"`
Events []*Events `json:"events"`
}
Github source arguments
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 ¶
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 ¶
func (HealthError) IsError()
type HealthErrorCodes ¶
type HealthErrorCodes string
Health Error codes
const ( // The resource has a reference to a non-existing resource HealthErrorCodesBrokenReference HealthErrorCodes = "BROKEN_REFERENCE" // The runtime is not active HealthErrorCodesInactiveRuntime HealthErrorCodes = "INACTIVE_RUNTIME" // The resource has insufficient resources HealthErrorCodesInsufficientResources HealthErrorCodes = "INSUFFICIENT_RESOURCES" // Runtime Installation error HealthErrorCodesRuntimeInstallationError HealthErrorCodes = "RUNTIME_INSTALLATION_ERROR" // Transitive health error that originates from one of referenced entities HealthErrorCodesTransitiveError HealthErrorCodes = "TRANSITIVE_ERROR" // Uknown sync error HealthErrorCodesUnknown HealthErrorCodes = "UNKNOWN" )
func (HealthErrorCodes) IsValid ¶
func (e HealthErrorCodes) IsValid() bool
func (HealthErrorCodes) MarshalGQL ¶
func (e HealthErrorCodes) MarshalGQL(w io.Writer)
func (HealthErrorCodes) String ¶
func (e HealthErrorCodes) String() string
func (*HealthErrorCodes) UnmarshalGQL ¶
func (e *HealthErrorCodes) UnmarshalGQL(v interface{}) error
type HealthErrorInput ¶
type HealthErrorInput struct {
// Level
Level ErrorLevels `json:"level"`
// Message
Message string `json:"message"`
}
Health Error Input
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 ¶
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 ¶
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 ¶
func (e InstallationStatus) IsValid() bool
func (InstallationStatus) MarshalGQL ¶
func (e InstallationStatus) MarshalGQL(w io.Writer)
func (InstallationStatus) String ¶
func (e InstallationStatus) String() string
func (*InstallationStatus) UnmarshalGQL ¶
func (e *InstallationStatus) UnmarshalGQL(v interface{}) error
type JSONTypes ¶ added in v0.37.0
type JSONTypes string
jSON types
func (JSONTypes) MarshalGQL ¶ added in v0.37.0
func (*JSONTypes) UnmarshalGQL ¶ added in v0.37.0
type MetricWithTrend ¶
type MetricWithTrend struct {
// Metric value
Value int `json:"value"`
// Percent Diff between the current time period and the previous time period
PctDiffFromLastTimeFrame *float64 `json:"pctDiffFromLastTimeFrame"`
}
Pipeline metric with trend
type NodeStatus ¶
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 *string `json:"progress"`
// Message
Message *string `json:"message"`
// Start time
StartedAt *string `json:"startedAt"`
// Finish time
FinishedAt *string `json:"finishedAt"`
// Inputs
Inputs *string `json:"inputs"`
// Outputs
Outputs *string `json:"outputs"`
// Script
Script *string `json:"script"`
// Previous statuses
Statuses []*StatusHistoryItem `json:"statuses"`
// Id
ID *string `json:"id"`
// Resources Duration
ResourcesDuration *string `json:"resourcesDuration"`
// Template Ref
TemplateRef *string `json:"templateRef"`
// Host node name
HostNodeName *string `json:"hostNodeName"`
// Template
Template *string `json:"template"`
// Template scope
TemplateScope *string `json:"templateScope"`
}
Node status
type Notification ¶ added in v0.37.0
type Notification struct {
// Object metadata
Metadata *ObjectMeta `json:"metadata"`
// Errors
Errors []Error `json:"errors"`
// Relevant notification info according to the notification type
NotificationInfo NotificationInfo `json:"notificationInfo"`
// The specific notification type, to use for the notification icon
NotificationType *NotificationType `json:"notificationType"`
// Timestamp of notification
Timestamp string `json:"timestamp"`
// Projects
Projects []string `json:"projects"`
}
Notification source entity
type NotificationEdge ¶ added in v0.37.0
type NotificationEdge struct {
// Node contains the actual notification data
Node *Notification `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
Notification Edge
type NotificationInfo ¶ added in v0.37.0
type NotificationInfo interface {
IsNotificationInfo()
}
Notification information kinds
type NotificationSlice ¶ added in v0.37.0
type NotificationSlice struct {
// Notification edges
Edges []*NotificationEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
Notification Slice
type NotificationType ¶ added in v0.37.0
type NotificationType string
Notification type
const ( // Component health status is in progress NotificationTypeComponentHealthProgressing NotificationType = "COMPONENT_HEALTH_PROGRESSING" // Component health status is unhealthy NotificationTypeComponentHealthUnhealthy NotificationType = "COMPONENT_HEALTH_UNHEALTHY" // Component sync failed NotificationTypeComponentSyncFail NotificationType = "COMPONENT_SYNC_FAIL" // Component sync completed successfully NotificationTypeComponentSyncSuccess NotificationType = "COMPONENT_SYNC_SUCCESS" // Component sync is in progress NotificationTypeComponentSyncSyncing NotificationType = "COMPONENT_SYNC_SYNCING" // Git-source created NotificationTypeGsCreated NotificationType = "GS_CREATED" // Git-source sync removed NotificationTypeGsRemoved NotificationType = "GS_REMOVED" // Git-source sync failed NotificationTypeGsSyncFail NotificationType = "GS_SYNC_FAIL" // Git-source sync completed successfully NotificationTypeGsSyncSuccess NotificationType = "GS_SYNC_SUCCESS" // Git-source sync is in progress NotificationTypeGsSyncSyncing NotificationType = "GS_SYNC_SYNCING" // Runtime install failed NotificationTypeRuntimeInstallFail NotificationType = "RUNTIME_INSTALL_FAIL" // Runtime install is in progress NotificationTypeRuntimeInstallProgressing NotificationType = "RUNTIME_INSTALL_PROGRESSING" // Runtime install completed successfully NotificationTypeRuntimeInstallSuccess NotificationType = "RUNTIME_INSTALL_SUCCESS" // Runtime uninstall failed NotificationTypeRuntimeUninstallFail NotificationType = "RUNTIME_UNINSTALL_FAIL" // Runtime uninstall is in progress NotificationTypeRuntimeUninstallProgressing NotificationType = "RUNTIME_UNINSTALL_PROGRESSING" // Runtime uninstall completed successfully NotificationTypeRuntimeUninstallSuccess NotificationType = "RUNTIME_UNINSTALL_SUCCESS" // Runtime upgrade failed NotificationTypeRuntimeUpgradeFail NotificationType = "RUNTIME_UPGRADE_FAIL" // Runtime upgrade is in progress NotificationTypeRuntimeUpgradeProgressing NotificationType = "RUNTIME_UPGRADE_PROGRESSING" // Runtime upgrade completed successfully NotificationTypeRuntimeUpgradeSuccess NotificationType = "RUNTIME_UPGRADE_SUCCESS" )
func (NotificationType) IsValid ¶ added in v0.37.0
func (e NotificationType) IsValid() bool
func (NotificationType) MarshalGQL ¶ added in v0.37.0
func (e NotificationType) MarshalGQL(w io.Writer)
func (NotificationType) String ¶ added in v0.37.0
func (e NotificationType) String() string
func (*NotificationType) UnmarshalGQL ¶ added in v0.37.0
func (e *NotificationType) UnmarshalGQL(v interface{}) error
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"`
// Favorite
Favorite *bool `json:"favorite"`
}
Object metadata
type PayloadDataTypes ¶
type PayloadDataTypes string
Types of event payload
const ( PayloadDataTypesCalendar PayloadDataTypes = "calendar" PayloadDataTypesGit PayloadDataTypes = "git" PayloadDataTypesUnknown PayloadDataTypes = "unknown" )
func (PayloadDataTypes) IsValid ¶
func (e PayloadDataTypes) IsValid() bool
func (PayloadDataTypes) MarshalGQL ¶
func (e PayloadDataTypes) MarshalGQL(w io.Writer)
func (PayloadDataTypes) String ¶
func (e PayloadDataTypes) String() string
func (*PayloadDataTypes) UnmarshalGQL ¶
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 *CompositeSlice `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 ¶
func (Pipeline) IsK8sLogicEntity()
func (Pipeline) IsProjectBasedEntity ¶
func (Pipeline) IsProjectBasedEntity()
type PipelineAverageDurationStats ¶
type PipelineAverageDurationStats struct {
// Info
Info *PipelineAverageDurationStatsInfo `json:"info"`
// Data
Data []*PipelineAverageDurationStatsData `json:"data"`
}
Pipeline statistics for average duration
type PipelineAverageDurationStatsData ¶
type PipelineAverageDurationStatsData struct {
// Time
Time *string `json:"time"`
// Average duration
AverageDuration *float64 `json:"averageDuration"`
}
Stats data for pipline average duration
type PipelineAverageDurationStatsInfo ¶
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 ¶
type PipelineCommittersStats struct {
// Info
Info *PipelineCommittersStatsInfo `json:"info"`
// Data
Data []*PipelineCommittersStatsData `json:"data"`
}
Pipeline statistics for pipline success rate
type PipelineCommittersStatsData ¶
type PipelineCommittersStatsData struct {
// Time
Time *string `json:"time"`
// Committers
Committers *int `json:"committers"`
}
Stats data for pipline committers
type PipelineCommittersStatsInfo ¶
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 PipelineCreationData ¶ added in v0.37.0
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 ¶
type PipelineExecutionsStats struct {
// Info
Info *PipelineExecutionsStatsInfo `json:"info"`
// Data
Data []*PipelineExecutionsStatsData `json:"data"`
}
Pipeline statistics for pipline executions
type PipelineExecutionsStatsData ¶
type PipelineExecutionsStatsData struct {
// Time
Time *string `json:"time"`
// Executions
Executions *int `json:"executions"`
}
Stats data for pipline executions
type PipelineExecutionsStatsInfo ¶
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 PipelineOrderedStatistics ¶
type PipelineOrderedStatistics struct {
// Pipeline name
PipelineName string `json:"pipelineName"`
// Pipeline namespace
PipelineNamespace string `json:"pipelineNamespace"`
// Runtime
Runtime string `json:"runtime"`
// Position
Position int `json:"position"`
// Position Diff from last time frame
PositionDiffFromLastTimeFrame *int `json:"positionDiffFromLastTimeFrame"`
// Success Rate stats
SuccessRateStats *MetricWithTrend `json:"successRateStats"`
// Average duration stats
AverageDurationStats *MetricWithTrend `json:"averageDurationStats"`
// Execution stats
ExecutionsStats *MetricWithTrend `json:"executionsStats"`
}
Pipeline Ordered statistics
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 ¶
type PipelineSpec struct {
// Trigger
Trigger string `json:"trigger"`
}
Pipeline Spec
type PipelineStatistics ¶
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 PipelineStepStatistics ¶
type PipelineStepStatistics struct {
// Step Name
StepName *string `json:"stepName"`
// Template Name
TemplateName *string `json:"templateName"`
// Workflow Template
WorkflowTemplate *string `json:"workflowTemplate"`
// Step Average duration
AverageDurationStats *MetricWithTrend `json:"averageDurationStats"`
// Step Executions count
ExecutionsStats *MetricWithTrend `json:"executionsStats"`
// Step Average CPU usage
CPUStats *MetricWithTrend `json:"cpuStats"`
// Step Average Memory
MemoryStats *MetricWithTrend `json:"memoryStats"`
// Step Errors count
ErrorsCountStats *MetricWithTrend `json:"errorsCountStats"`
}
Pipeline Step
type PipelineSuccessRateStats ¶
type PipelineSuccessRateStats struct {
// Info
Info *PipelineSuccessRateStatsInfo `json:"info"`
// Data
Data []*PipelineSuccessRateStatsData `json:"data"`
}
Pipeline statistics for pipline success rate
type PipelineSuccessRateStatsData ¶
type PipelineSuccessRateStatsData struct {
// Time
Time *string `json:"time"`
// Success rate
SuccessRate *int `json:"successRate"`
}
Stats data for pipline success rate
type PipelineSuccessRateStatsInfo ¶
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 ¶
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 PredefinedDataFilter ¶ added in v0.37.0
type PredefinedDataFilter struct {
// Predefined variable key
Key string `json:"key"`
// Value is the allowed string values for this key Booleans are passed using strconv.ParseBool() Numbers are parsed using as float64 using strconv.ParseFloat() Strings are taken as is Nils this value is ignored
Value []*string `json:"value"`
// Comparator compares the event data with a user given value. if left blank treated as equality
Comparator *Comparator `json:"comparator"`
}
Predefined Date filter
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 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 ReadFileArgs ¶ added in v0.37.0
type ReadFileArgs struct {
// Git integration name, if not provided will use the default one
IntegrationName *string `json:"integrationName"`
// Git reference name (branch/revision)
Ref string `json:"ref"`
// Repository full name in format {owner}/{name}
Repo string `json:"repo"`
// File full path
Path string `json:"path"`
}
Read file from a git repository args
type RegisterToGitIntegrationArgs ¶
type RegisterToGitIntegrationArgs struct {
// Git integration name, if not provided will use the default one
Name *string `json:"name"`
// Token
Token string `json:"token"`
}
Register to Git integration args
type Release ¶
type Release struct {
// Release version
Version string `json:"version"`
}
Release Entity
type ReportRuntimeErrorsArgs ¶
type ReportRuntimeErrorsArgs struct {
// Name of the Runtime
Runtime string `json:"runtime"`
// Errors
Errors []*HealthErrorInput `json:"errors"`
}
Runtime Errors Report Arguments
type RepositoriesFilterArgs ¶ added in v0.37.0
type RepositoriesFilterArgs struct {
// Filter repository by name
Name *string `json:"name"`
}
Repositories filter arguments
type RepositoriesPage ¶ added in v0.37.0
type RepositoriesPage struct {
// An aray of Repositories in the page
Data []*Repository `json:"data"`
// Page number
Page int `json:"page"`
// How many repo in a page
Count int `json:"count"`
// Has next page?
HasNext bool `json:"hasNext"`
}
Repositories Page
type Repository ¶
type Repository struct {
// Repo id
ID string `json:"id"`
// Git provider
Provider GitProviders `json:"provider"`
// Repository full name in format {owner}/{name}
FullName string `json:"fullName"`
// Is the repo private ?
IsRepoPrivate bool `json:"isRepoPrivate"`
// Last time a commit was pushed to one of the branches
PushedAt string `json:"pushedAt"`
// Number of open issues
OpenIssues int `json:"openIssues"`
// Clone url
CloneURL string `json:"cloneUrl"`
// ssh url
SSHURL string `json:"sshUrl"`
// Repo owner login
OwnerLogin string `json:"ownerLogin"`
// Repo owner avatar url
OwnerAvatarURL string `json:"ownerAvatarUrl"`
// Repo creator
RepoCreator *string `json:"repoCreator"`
// Organization name
Org *string `json:"org"`
// Default branch name
DefaultBranch string `json:"defaultBranch"`
// Has admin permissions ?
IsRepoAdmin *bool `json:"isRepoAdmin"`
// Repository url
WebURL string `json:"webUrl"`
// Project name
Project *string `json:"project"`
}
Repository
type ResourceAction ¶
type ResourceAction string
Resource action
const ( // Added ResourceActionAdded ResourceAction = "ADDED" // Deleted ResourceActionDeleted ResourceAction = "DELETED" // Updated ResourceActionUpdated ResourceAction = "UPDATED" )
func (ResourceAction) IsValid ¶
func (e ResourceAction) IsValid() bool
func (ResourceAction) MarshalGQL ¶
func (e ResourceAction) MarshalGQL(w io.Writer)
func (ResourceAction) String ¶
func (e ResourceAction) String() string
func (*ResourceAction) UnmarshalGQL ¶
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 *CompositeSlice `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 ¶
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 ¶
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 RuntimeNotification ¶ added in v0.37.0
type RuntimeNotification struct {
// Runtime component name
ModifiedComponent *string `json:"modifiedComponent"`
// Sync status
RuntimeSyncStatus *SyncStatus `json:"runtimeSyncStatus"`
// Health status
HealthStatus *HealthStatus `json:"healthStatus"`
}
Runtime notification
func (RuntimeNotification) IsNotificationInfo ¶ added in v0.37.0
func (RuntimeNotification) IsNotificationInfo()
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 SecurityInfo ¶
type SecurityInfo struct {
// Security duration limit in minutes, before inactive user will be logged out of the app
InactivityThreshold *int `json:"inactivityThreshold"`
}
Security info for account
type SecurityInfoArgs ¶
type SecurityInfoArgs struct {
// Security duration limit in minutes, before inactive user will be logged out of the app
InactivityThreshold *int `json:"inactivityThreshold"`
}
Args to set security for account
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 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 ServiceEntity ¶ added in v0.37.0
type ServiceEntity 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"`
// Service Entity
Spec *ServiceSpec `json:"spec"`
}
Service entity
func (ServiceEntity) IsBaseEntity ¶ added in v0.37.0
func (ServiceEntity) IsBaseEntity()
func (ServiceEntity) IsEntity ¶ added in v0.37.0
func (ServiceEntity) IsEntity()
func (ServiceEntity) IsGitopsEntity ¶ added in v0.37.0
func (ServiceEntity) IsGitopsEntity()
func (ServiceEntity) IsProjectBasedEntity ¶ added in v0.37.0
func (ServiceEntity) IsProjectBasedEntity()
type ServiceEntityEdge ¶ added in v0.37.0
type ServiceEntityEdge struct {
// Node contains the actual Service data
Node *ServiceEntity `json:"node"`
// Cursor
Cursor string `json:"cursor"`
}
Service Entity Edge
func (ServiceEntityEdge) IsEdge ¶ added in v0.37.0
func (ServiceEntityEdge) IsEdge()
type ServiceEntitySlice ¶ added in v0.37.0
type ServiceEntitySlice struct {
// Service edges
Edges []*ServiceEntityEdge `json:"edges"`
// Slice information
PageInfo *SliceInfo `json:"pageInfo"`
}
Service Slice
func (ServiceEntitySlice) IsSlice ¶ added in v0.37.0
func (ServiceEntitySlice) IsSlice()
type ServicePort ¶ added in v0.37.0
type ServicePort struct {
// AppProtocol
AppProtocol *string `json:"appProtocol"`
// Name
Name *string `json:"name"`
// NodePort
NodePort *int `json:"nodePort"`
// Port
Port *int `json:"port"`
// Protocol
Protocol *string `json:"protocol"`
// TargetPort
TargetPort *string `json:"targetPort"`
}
ServicePort
type ServiceSpec ¶ added in v0.37.0
type ServiceSpec struct {
// AllocateLoadBalancerNodePorts
AllocateLoadBalancerNodePorts *bool `json:"allocateLoadBalancerNodePorts"`
// ClusterIP
ClusterIP *string `json:"clusterIP"`
// ClusterIPs
ClusterIPs []*string `json:"clusterIPs"`
// ExternalIPs
ExternalIPs []*string `json:"externalIPs"`
// ExternalName
ExternalName *string `json:"externalName"`
// ExternalTrafficPolicy
ExternalTrafficPolicy *string `json:"externalTrafficPolicy"`
// HealthCheckNodePort
HealthCheckNodePort *int `json:"healthCheckNodePort"`
// InternalTrafficPolicy
InternalTrafficPolicy *string `json:"internalTrafficPolicy"`
// IpFamilies
IPFamilies []*string `json:"ipFamilies"`
// IpFamilyPolicy
IPFamilyPolicy *string `json:"ipFamilyPolicy"`
// LoadBalancerClass
LoadBalancerClass *string `json:"loadBalancerClass"`
// LoadBalancerIP
LoadBalancerIP *string `json:"loadBalancerIP"`
// LoadBalancerSourceRanges
LoadBalancerSourceRanges []*string `json:"loadBalancerSourceRanges"`
// Ports
Ports []*ServicePort `json:"ports"`
// PublishNotReadyAddresses
PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses"`
// Selector
Selector []*Tuple `json:"selector"`
// SessionAffinity
SessionAffinity *string `json:"sessionAffinity"`
// SessionAffinityConfig
SessionAffinityConfig *SessionAffinityConfig `json:"sessionAffinityConfig"`
// Type
Type *ServiceType `json:"type"`
}
ServiceSpec
type ServiceType ¶ added in v0.37.0
type ServiceType string
ServiceType
const ( ServiceTypeClusterIP ServiceType = "ClusterIP" ServiceTypeExternalName ServiceType = "ExternalName" ServiceTypeLoadBalancer ServiceType = "LoadBalancer" ServiceTypeNodePort ServiceType = "NodePort" )
func (ServiceType) IsValid ¶ added in v0.37.0
func (e ServiceType) IsValid() bool
func (ServiceType) MarshalGQL ¶ added in v0.37.0
func (e ServiceType) MarshalGQL(w io.Writer)
func (ServiceType) String ¶ added in v0.37.0
func (e ServiceType) String() string
func (*ServiceType) UnmarshalGQL ¶ added in v0.37.0
func (e *ServiceType) UnmarshalGQL(v interface{}) error
type SessionAffinityConfig ¶ added in v0.37.0
type SessionAffinityConfig struct {
// ClientIP
ClientIP *ClientIP `json:"clientIP"`
}
SessionAffinityConfig
type SetAccountAllowedDomainsArgs ¶
type SetAccountAllowedDomainsArgs struct {
// Controls if this account can edit its allowedDomains
EnabledAllowedDomains *bool `json:"enabledAllowedDomains"`
// All allowed domains for this account
AllowedDomains []string `json:"allowedDomains"`
}
Args to set allowed domains for account
type SharingPolicy ¶
type SharingPolicy string
Sharing policy
const ( // Only account admins see this integration SharingPolicyAccountAdmins SharingPolicy = "ACCOUNT_ADMINS" // All users in account can see this integration SharingPolicyAllUsersInAccount SharingPolicy = "ALL_USERS_IN_ACCOUNT" )
func (SharingPolicy) IsValid ¶
func (e SharingPolicy) IsValid() bool
func (SharingPolicy) MarshalGQL ¶
func (e SharingPolicy) MarshalGQL(w io.Writer)
func (SharingPolicy) String ¶
func (e SharingPolicy) String() string
func (*SharingPolicy) UnmarshalGQL ¶
func (e *SharingPolicy) UnmarshalGQL(v interface{}) error
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 SortingField ¶ added in v0.37.0
type SortingField string
Sorting field
const ( // healthStatus SortingFieldHealthStatus SortingField = "healthStatus" // kind SortingFieldKind SortingField = "kind" // last deployment date SortingFieldLastUpdated SortingField = "lastUpdated" // name SortingFieldName SortingField = "name" // runtime SortingFieldRuntime SortingField = "runtime" // syncStatus SortingFieldSyncStatus SortingField = "syncStatus" )
func (SortingField) IsValid ¶ added in v0.37.0
func (e SortingField) IsValid() bool
func (SortingField) MarshalGQL ¶ added in v0.37.0
func (e SortingField) MarshalGQL(w io.Writer)
func (SortingField) String ¶ added in v0.37.0
func (e SortingField) String() string
func (*SortingField) UnmarshalGQL ¶ added in v0.37.0
func (e *SortingField) UnmarshalGQL(v interface{}) error
type SortingOrder ¶ added in v0.37.0
type SortingOrder string
Sorting order
const ( // ascending SortingOrderAsc SortingOrder = "asc" // descending SortingOrderDesc SortingOrder = "desc" )
func (SortingOrder) IsValid ¶ added in v0.37.0
func (e SortingOrder) IsValid() bool
func (SortingOrder) MarshalGQL ¶ added in v0.37.0
func (e SortingOrder) MarshalGQL(w io.Writer)
func (SortingOrder) String ¶ added in v0.37.0
func (e SortingOrder) String() string
func (*SortingOrder) UnmarshalGQL ¶ added in v0.37.0
func (e *SortingOrder) UnmarshalGQL(v interface{}) error
type SourceArgs ¶ added in v0.37.0
type SourceArgs struct {
Github []*GithubSourceArgs `json:"github"`
Calendar []*CalendarSourceArgs `json:"calendar"`
}
Source arguments
type Sso ¶
type Sso struct {
// The sso id
ID string `json:"id"`
// Client type name
ClientType *string `json:"clientType"`
// Display name
DisplayName *string `json:"displayName"`
}
Sso
type StatsTimePeriodData ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (e SyncErrorCodes) IsValid() bool
func (SyncErrorCodes) MarshalGQL ¶
func (e SyncErrorCodes) MarshalGQL(w io.Writer)
func (SyncErrorCodes) String ¶
func (e SyncErrorCodes) String() string
func (*SyncErrorCodes) UnmarshalGQL ¶
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" // Syncing SyncStatusSyncing SyncStatus = "SYNCING" // 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 TriggerParameter ¶ added in v0.37.0
type TriggerParameter struct {
// Src contains a source reference to the value of the parameter from a dependency
Src *TriggerParameterSource `json:"src"`
// Dest is the argument parameter in the workflowTemplate
Dest string `json:"dest"`
// Operation is what to do with the existing value at Dest, whether to ‘prepend’, ‘overwrite’, or ‘append’ it
Operation string `json:"operation"`
}
Trigger parameter
type TriggerParameterSource ¶ added in v0.37.0
type TriggerParameterSource struct {
// DataTemplate is a go-template for extracting a string from the event’s data. If a DataTemplate is provided with a DataKey, the template will be evaluated first and fallback to the DataKey. The templating follows the standard go-template syntax as well as sprig’s extra functions. See https://pkg.go.dev/text/template and https://masterminds.github.io/sprig/. in addition you can pass a predefined varibles as the following ${{ VAR }} - assuming VAR is predefiend varaible or just a simple value as 'var'
DataTemplate string `json:"dataTemplate"`
// Value is the default literal value to use for this parameter source This is only used if the DataKey is invalid. If the DataKey is invalid and this is not defined, this param source will produce an error
Value *string `json:"value"`
}
Trigger parameter source
type UnknownEventPayloadData ¶
type UnknownEventPayloadData struct {
// Event payload type
Type PayloadDataTypes `json:"type"`
// Event name
Event string `json:"event"`
}
Calendar event payload data
func (UnknownEventPayloadData) IsEventPayloadData ¶
func (UnknownEventPayloadData) IsEventPayloadData()
type User ¶
type User struct {
// The user id
ID string `json:"id"`
// The user name
Name string `json:"name"`
// The user email
Email string `json:"email"`
// User image url
AvatarURL *string `json:"avatarUrl"`
// Is the user have system admin permission
IsAdmin *bool `json:"isAdmin"`
// 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 string `json:"status"`
// Register date
RegisterDate *string `json:"registerDate"`
// Last time user logged in to the system
LastLoginDate *string `json:"lastLoginDate"`
// User chosen sso of active account
Sso *string `json:"sso"`
}
User
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 ¶
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 ¶
type WorkflowContainerTemplate struct {
// Name
Name string `json:"name"`
// Daemon
Daemon *bool `json:"daemon"`
// Container
Container *WorkflowContainerSpec `json:"container"`
}
Workflow container template
func (WorkflowContainerTemplate) IsWorkflowSpecTemplate ¶
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 ¶
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 ¶
func (e WorkflowNodePhases) IsValid() bool
func (WorkflowNodePhases) MarshalGQL ¶
func (e WorkflowNodePhases) MarshalGQL(w io.Writer)
func (WorkflowNodePhases) String ¶
func (e WorkflowNodePhases) String() string
func (*WorkflowNodePhases) UnmarshalGQL ¶
func (e *WorkflowNodePhases) UnmarshalGQL(v interface{}) error
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 WorkflowRepository ¶ added in v0.37.0
type WorkflowRepository 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 data for workflows
type WorkflowResourceTemplate ¶
type WorkflowResourceTemplate struct {
// Name
Name string `json:"name"`
}
Workflow Resource template
func (WorkflowResourceTemplate) IsWorkflowSpecTemplate ¶
func (WorkflowResourceTemplate) IsWorkflowSpecTemplate()
type WorkflowScriptTemplate ¶
type WorkflowScriptTemplate struct {
// Name
Name string `json:"name"`
}
Workflow script template
func (WorkflowScriptTemplate) IsWorkflowSpecTemplate ¶
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 ¶
type WorkflowSpecNameOnlyTemplate struct {
// Name
Name string `json:"name"`
}
Workflow spec name only template
func (WorkflowSpecNameOnlyTemplate) IsWorkflowSpecTemplate ¶
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 *string `json:"progress"`
// Current workflow nodes status
Nodes []*NodeStatus `json:"nodes"`
// Message
Message *string `json:"message"`
// Previous statuses
Statuses []*StatusHistoryItem `json:"statuses"`
// Stored Templates
StoredTemplates *string `json:"storedTemplates"`
// Stored workflow template spec
StoredWorkflowTemplateSpec *string `json:"storedWorkflowTemplateSpec"`
}
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 ¶
type WorkflowSuspendedTemplate struct {
// Name
Name string `json:"name"`
}
Workflow Resource template
func (WorkflowSuspendedTemplate) IsWorkflowSpecTemplate ¶
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 WorkflowTemplateArgs ¶ added in v0.37.0
type WorkflowTemplateArgs struct {
// Workflow template name
Name *string `json:"name"`
// Workflow template entrypoint
Entrypoint *string `json:"entrypoint"`
}
Workflow template arguments
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 WorkflowTemplateRef ¶
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()