Help us shape the future of Go! Take the 2026 Go Developer Survey

bean

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 ArgoPipelineStatusSyncEvent struct {
	PipelineId            int   `json:"pipelineId"`
	InstalledAppVersionId int   `json:"installedAppVersionId"`
	UserId                int32 `json:"userId"`
	IsAppStoreApplication bool  `json:"isAppStoreApplication"`
}

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 BulkDeployPayload struct {
	InstalledAppVersionId        int
	InstalledAppVersionHistoryId int
}

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 Kind added in v0.7.3

type Kind string

type PluginArtifacts added in v0.7.3

type PluginArtifacts struct {
	Kind      Kind       `json:"Kind"`
	Artifacts []Artifact `json:"Artifacts"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL