Documentation
¶
Index ¶
- Constants
- type ApplicationDetail
- type ArgoPipelineStatusSyncEvent
- type Artifact
- type ArtifactType
- type BulkCDDeployEvent
- type BulkDeployPayload
- type CdStageCompleteEvent
- type CiCdStatus
- type CiCompleteEvent
- type CredentialSourceType
- type DevtronAppReleaseContextType
- type Kind
- type PluginArtifacts
- type UserDeploymentRequest
Constants ¶
View Source
const ( PluginArtifactsKind Kind = "PluginArtifacts" GlobalContainerRegistrySource CredentialSourceType = "global_container_registry" ArtifactTypeContainer ArtifactType = "CONTAINER" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationDetail ¶ added in v0.7.0
type ApplicationDetail struct {
Application *v1alpha12.Application `json:"application"`
ClusterId int `json:"clusterId"`
StatusTime time.Time `json:"statusTime"`
}
type ArgoPipelineStatusSyncEvent ¶ added in v0.7.0
type Artifact ¶ added in v0.7.3
type Artifact struct {
Type ArtifactType `json:"Type"`
Data []string `json:"Data"`
CredentialsSourceType CredentialSourceType `json:"CredentialsSourceType"`
CredentialSourceValue string `json:"CredentialSourceValue"`
CreatedByPluginIdentifier string `json:"createdByPluginIdentifier"`
CreatedOn time.Time `json:"createdOn"`
}
type ArtifactType ¶ added in v0.7.3
type ArtifactType string
type BulkCDDeployEvent ¶ added in v0.7.0
type BulkCDDeployEvent struct {
ValuesOverrideRequest *bean.ValuesOverrideRequest `json:"valuesOverrideRequest"` //TODO migrate this
UserId int32 `json:"userId"`
UserMetadata *bean2.UserMetadata `json:"userMetadata"`
}
type BulkDeployPayload ¶ added in v0.7.0
type CdStageCompleteEvent ¶
type CdStageCompleteEvent struct {
CiProjectDetails []bean3.CiProjectDetails `json:"ciProjectDetails"`
WorkflowId int `json:"workflowId"`
WorkflowRunnerId int `json:"workflowRunnerId"`
CdPipelineId int `json:"cdPipelineId"`
TriggeredBy int32 `json:"triggeredBy"`
StageYaml string `json:"stageYaml"`
ArtifactLocation string `json:"artifactLocation"`
PipelineName string `json:"pipelineName"`
CiArtifactDTO pipelineConfig.CiArtifactDTO `json:"ciArtifactDTO"`
PluginRegistryArtifactDetails map[string][]string `json:"PluginRegistryArtifactDetails"`
PluginArtifacts *PluginArtifacts `json:"pluginArtifacts"`
IsArtifactUploaded bool `json:"isArtifactUploaded"`
IsFailed bool `json:"isFailed"`
}
type CiCdStatus ¶ added in v1.5.1
type CiCdStatus struct {
DevtronOwnerInstance string `json:"devtronOwnerInstance"`
*v1alpha1.WorkflowStatus
}
func NewCiCdStatus ¶ added in v1.5.1
func NewCiCdStatus() CiCdStatus
type CiCompleteEvent ¶
type CiCompleteEvent struct {
CiProjectDetails []bean3.CiProjectDetails `json:"ciProjectDetails"`
DockerImage string `json:"dockerImage" validate:"required,image-validator"`
Digest string `json:"digest"`
PipelineId int `json:"pipelineId"`
WorkflowId *int `json:"workflowId"`
TriggeredBy int32 `json:"triggeredBy"`
PipelineName string `json:"pipelineName"`
DataSource string `json:"dataSource"`
MaterialType string `json:"materialType"`
Metrics util.CIMetrics `json:"metrics"`
AppName string `json:"appName"`
IsArtifactUploaded bool `json:"isArtifactUploaded"`
FailureReason string `json:"failureReason"` // FailureReason is used for notifying the failure reason to the user. Should be short and user-friendly
ImageDetailsFromCR json.RawMessage `json:"imageDetailsFromCR"`
PluginRegistryArtifactDetails map[string][]string `json:"PluginRegistryArtifactDetails"`
PluginArtifactStage string `json:"pluginArtifactStage"`
IsScanEnabled bool `json:"isScanEnabled"`
TargetPlatforms []string `json:"targetPlatforms"`
PluginArtifacts *PluginArtifacts `json:"pluginArtifacts"`
// contains filtered or unexported fields
}
func (*CiCompleteEvent) GetPluginImageDetails ¶ added in v0.7.3
func (c *CiCompleteEvent) GetPluginImageDetails() *registry.ImageDetailsFromCR
func (*CiCompleteEvent) SetImageDetailsFromCR ¶ added in v0.7.3
func (c *CiCompleteEvent) SetImageDetailsFromCR() error
type CredentialSourceType ¶ added in v0.7.3
type CredentialSourceType string
type DevtronAppReleaseContextType ¶ added in v0.7.0
type DevtronAppReleaseContextType struct {
CancelParentContext context.CancelFunc
CancelContext context.CancelCauseFunc
RunnerId int
}
type PluginArtifacts ¶ added in v0.7.3
func NewPluginArtifact ¶ added in v0.7.3
func NewPluginArtifact() *PluginArtifacts
func (*PluginArtifacts) GetRegistryToUniqueContainerArtifactDataMapping ¶ added in v0.7.3
func (p *PluginArtifacts) GetRegistryToUniqueContainerArtifactDataMapping() map[string][]string
func (*PluginArtifacts) MergePluginArtifact ¶ added in v0.7.3
func (p *PluginArtifacts) MergePluginArtifact(pluginArtifact *PluginArtifacts)
type UserDeploymentRequest ¶ added in v0.7.1
type UserDeploymentRequest struct {
Id int `json:"id"`
ValuesOverrideRequest *bean.ValuesOverrideRequest `json:"valuesOverrideRequest"` // Internal field - will be extracted from UserDeploymentRequest, handled for backward compatibility
TriggeredAt time.Time `json:"triggeredAt"` // Internal field - will be extracted from UserDeploymentRequest, handled for backward compatibility
TriggeredBy int32 `json:"triggeredBy"` // Internal field - will be extracted from UserDeploymentRequest, handled for backward compatibility
}
func (*UserDeploymentRequest) WithCdWorkflowRunnerId ¶ added in v0.7.1
func (r *UserDeploymentRequest) WithCdWorkflowRunnerId(id int) *UserDeploymentRequest
func (*UserDeploymentRequest) WithPipelineOverrideId ¶ added in v0.7.1
func (r *UserDeploymentRequest) WithPipelineOverrideId(id int) *UserDeploymentRequest
Click to show internal directories.
Click to hide internal directories.