service

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) *service

func PrependRunEnvPrefix

func PrependRunEnvPrefix(runEnvVars map[string]string) map[string]string

PrependRunEnvPrefix modifies the keys in the provided RunEnvVars map by prepending "RUNENV_" to each key.

Types

type AddActionLabelsRequest added in v0.19.894

type AddActionLabelsRequest struct {
	Labels map[string]string `json:"labels" validate:"required"`
}

func (*AddActionLabelsRequest) Validate added in v0.19.894

type ConnectedGithubVCSActionWorkflowConfigRequest

type ConnectedGithubVCSActionWorkflowConfigRequest struct {
	Repo      string `validate:"required"`
	Directory string `validate:"required"`

	Branch string `validate:"required_without=GitRef"`
	GitRef string `validate:"required_without=Branch"`
}

type CreateActionWorkflowConfigRequest

type CreateActionWorkflowConfigRequest struct {
	AppConfigID string                                     `json:"app_config_id" validate:"required"`
	Triggers    []CreateActionWorkflowConfigTriggerRequest `json:"triggers" validate:"required,dive"`
	Steps       []CreateActionWorkflowConfigStepRequest    `json:"steps" validate:"required,dive"`
	Timeout     time.Duration                              `json:"timeout" swaggertype:"primitive,integer"`

	Dependencies []string `json:"dependencies"`
	References   []string `json:"references"`

	BreakGlassRoleARN string `json:"break_glass_role_arn"`
	Role              string `json:"role,omitempty"`

	EnableKubeConfig *bool `json:"enable_kube_config" swaggertype:"boolean" extensions:"x-nullable"`

	KubernetesContext string `json:"kubernetes_context,omitempty"`
}

func (*CreateActionWorkflowConfigRequest) Validate

type CreateActionWorkflowConfigStepRequest

type CreateActionWorkflowConfigStepRequest struct {
	Name    string             `json:"name" validate:"required"`
	EnvVars map[string]*string `json:"env_vars"`

	Command        string `json:"command"`
	InlineContents string `json:"inline_contents"`

	References []string `json:"references"`
	// contains filtered or unexported fields
}

type CreateActionWorkflowConfigTriggerRequest

type CreateActionWorkflowConfigTriggerRequest struct {
	Index         int                           `json:"index,omitempty" swaggertype:"primitive,integer"`
	Type          app.ActionWorkflowTriggerType `json:"type" validate:"required"`
	CronSchedule  string                        `json:"cron_schedule,omitempty" validate:"cron_schedule"`
	ComponentName string                        `json:"component_name"`
}

type CreateAdHocActionRequest added in v0.19.784

type CreateAdHocActionRequest struct {
	InlineContents   string            `json:"inline_contents" validate:"required_without=Command"`
	Command          string            `json:"command" validate:"required_without=InlineContents"`
	EnvVars          map[string]string `json:"env_vars"`
	Timeout          int               `json:"timeout,omitempty" validate:"omitempty,min=1,max=3600"`
	Name             string            `json:"name" validate:"max=255"`
	Role             string            `json:"role"`
	EnableKubeConfig *bool             `json:"enable_kube_config" extensions:"x-nullable"`
}

func (*CreateAdHocActionRequest) Validate added in v0.19.784

type CreateAdHocActionResponse added in v0.19.784

type CreateAdHocActionResponse struct {
	ID                string                             `json:"id"`
	InstallID         string                             `json:"install_id"`
	Status            app.InstallActionWorkflowRunStatus `json:"status"`
	StatusDescription string                             `json:"status_description"`
	TriggerType       app.ActionWorkflowTriggerType      `json:"trigger_type"`
	CreatedAt         time.Time                          `json:"created_at"`
	WorkflowID        string                             `json:"workflow_id"`
}

type CreateAppActionRequest

type CreateAppActionRequest struct {
	Name string `json:"name"`
}

type CreateAppActionWorkflowRequest

type CreateAppActionWorkflowRequest struct {
	Name   string            `json:"name"`
	Labels map[string]string `json:"labels,omitempty"`
}

func (*CreateAppActionWorkflowRequest) Validate

type CreateInstallActionWorkflowRunRequest

type CreateInstallActionWorkflowRunRequest struct {
	ActionWorkFlowConfigID string            `json:"action_workflow_config_id" validate:"required"`
	RunEnvVars             map[string]string `json:"run_env_vars"`
	Role                   string            `json:"role,omitempty"`
}

func (*CreateInstallActionWorkflowRunRequest) Validate

type Params

type Params struct {
	fx.In

	V              *validator.Validate
	DB             *gorm.DB `name:"psql"`
	Cfg            *internal.Config
	VcsHelpers     *vcshelpers.Helpers
	CompHelpers    *comphelpers.Helpers
	Helpers        *actionshelpers.Helpers
	InstallHelpers *installhelpers.Helpers
	EndpointAudit  *apiPkg.EndpointAudit
	FeaturesClient *features.Features
	QueueClient    *queueclient.Client
}

type PublicGitVCSActionWorkflowConfigRequest

type PublicGitVCSActionWorkflowConfigRequest struct {
	Repo      string `validate:"required"`
	Directory string `validate:"required"`
	Branch    string `validate:"required"`
}

type RemoveActionLabelsRequest added in v0.19.894

type RemoveActionLabelsRequest struct {
	Keys []string `json:"keys" validate:"required"`
}

func (*RemoveActionLabelsRequest) Validate added in v0.19.894

type RestartActionWorkflowRequest

type RestartActionWorkflowRequest struct{}

type UpdateActionRequest

type UpdateActionRequest struct {
	Name string `json:"name"`
}

func (*UpdateActionRequest) Validate

func (c *UpdateActionRequest) Validate(v *validator.Validate) error

type UpdateActionWorkflowRequest

type UpdateActionWorkflowRequest struct {
	Name   string            `json:"name"`
	Labels map[string]string `json:"labels,omitempty"`
}

func (*UpdateActionWorkflowRequest) Validate

type UpdateInstallActionWorkflowRunStepRequest

type UpdateInstallActionWorkflowRunStepRequest struct {
	Status            app.InstallActionWorkflowRunStepStatus `json:"status"`
	ExecutionDuration time.Duration                          `json:"execution_duration" swaggertype:"primitive,integer"`
}

Jump to

Keyboard shortcuts

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