Documentation
¶
Index ¶
- func GetActionReferences(cfg *app.AppConfig, action string) []refs.Ref
- func GetComponentReferences(cfg *app.AppConfig, comp string) []refs.Ref
- func GetStackReferences(cfg *app.AppConfig) []refs.Ref
- func IsEmail(email string) bool
- func PreloadAppActionWorkflowConfigs(db *gorm.DB) *gorm.DB
- func PreloadAppBreakGlassConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigComponentConfigConnections(db *gorm.DB) *gorm.DB
- func PreloadAppConfigInputConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigPermissionsConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigPolicyConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigRunnerConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigSandboxConfig(db *gorm.DB) *gorm.DB
- func PreloadAppConfigStackConfig(db *gorm.DB) *gorm.DB
- func PreloadAppOperationRoleConfig(db *gorm.DB) *gorm.DB
- func PreloadAppSecretsConfig(db *gorm.DB) *gorm.DB
- func PreloadComponentConfigConnections(db *gorm.DB) *gorm.DB
- type Helpers
- func (h *Helpers) CliVerisionAllowed(ctx context.Context, version string) (bool, error)
- func (h *Helpers) CreateAppBranch(ctx context.Context, orgID, appID, name string, ...) (*app.AppBranch, error)
- func (s *Helpers) CreateWorkflow(ctx context.Context, appBranchID string, workflowType app.WorkflowType, ...) (*app.Workflow, error)
- func (s *Helpers) DeleteAppComponent(ctx context.Context, compID string) error
- func (s *Helpers) GetAppComponents(ctx context.Context, appID string) ([]app.Component, error)
- func (h *Helpers) GetAppComponentsAtConfigVersion(ctx context.Context, appID string, appCfgVersion int, componentIDs []string) ([]app.Component, error)
- func (s *Helpers) GetAppInstalls(ctx context.Context, appID string) ([]app.Install, error)
- func (h *Helpers) GetAppLatestConfig(ctx context.Context, appID string) (*app.AppConfig, error)
- func (h *Helpers) GetComponentDependents(ctx context.Context, appCfgID string, compID string) ([]string, error)
- func (s *Helpers) GetComponents(ctx context.Context, compIDs []string) ([]app.Component, error)
- func (h *Helpers) GetConfigComponentDeployOrder(ctx context.Context, cfg *app.AppConfig, compID string) ([]string, error)
- func (h *Helpers) GetConfigDefaultComponentOrder(ctx context.Context, cfg *app.AppConfig) ([]string, error)
- func (h *Helpers) GetConfigGraph(ctx context.Context, cfg *app.AppConfig) (graph.Graph[string, *app.Component], error)
- func (h *Helpers) GetConfigReverseDefaultComponentOrder(ctx context.Context, cfg *app.AppConfig) ([]string, error)
- func (h *Helpers) GetFullAppConfig(ctx context.Context, appConfigID string, skipAdditionalChecks bool) (*app.AppConfig, error)
- func (h *Helpers) GetPoliciesConfigByAppConfigID(ctx context.Context, appConfigID string) (*app.AppPoliciesConfig, error)
- func (h *Helpers) GetReverseConfigComponentDeployOrder(ctx context.Context, cfg *app.AppConfig, compID string) ([]string, error)
- func (h *Helpers) ValidateGraph(ctx context.Context, appID string) error
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponentReferences ¶
NOTE(jm): this is a function, because it is used directly within a workflow.
func PreloadAppActionWorkflowConfigs ¶
preload action workflow configs
func PreloadAppBreakGlassConfig ¶
break glass config
func PreloadAppConfigComponentConfigConnections ¶
component config connections
func PreloadAppConfigInputConfig ¶
input config
func PreloadAppConfigPermissionsConfig ¶
permissions config
func PreloadAppConfigPolicyConfig ¶
policies config
func PreloadAppConfigRunnerConfig ¶
runner config
func PreloadAppConfigSandboxConfig ¶
sandbox config
func PreloadAppConfigStackConfig ¶
cloudformation stack config
func PreloadAppOperationRoleConfig ¶ added in v0.19.807
component role config
Types ¶
type Helpers ¶
type Helpers struct {
// contains filtered or unexported fields
}
func (*Helpers) CliVerisionAllowed ¶
func (*Helpers) CreateAppBranch ¶
func (*Helpers) CreateWorkflow ¶
func (*Helpers) DeleteAppComponent ¶
func (*Helpers) GetAppComponents ¶
func (*Helpers) GetAppComponentsAtConfigVersion ¶
func (h *Helpers) GetAppComponentsAtConfigVersion(ctx context.Context, appID string, appCfgVersion int, componentIDs []string) ([]app.Component, error)
This returns all app components for a point in time
func (*Helpers) GetAppInstalls ¶
func (*Helpers) GetAppLatestConfig ¶
func (*Helpers) GetComponentDependents ¶
func (*Helpers) GetComponents ¶
func (*Helpers) GetConfigComponentDeployOrder ¶
func (*Helpers) GetConfigDefaultComponentOrder ¶
func (*Helpers) GetConfigGraph ¶
func (h *Helpers) GetConfigGraph(ctx context.Context, cfg *app.AppConfig) (graph.Graph[string, *app.Component], error)
GetConfigGraph builds a directed acyclic graph of component dependencies and returns both the graph and a sorted list of components in deployment order (dependencies first)
func (*Helpers) GetConfigReverseDefaultComponentOrder ¶
func (*Helpers) GetFullAppConfig ¶
func (*Helpers) GetPoliciesConfigByAppConfigID ¶
func (*Helpers) GetReverseConfigComponentDeployOrder ¶
Source Files
¶
- create_app_branch.go
- create_workflow.go
- delete_app_component.go
- get_app_components.go
- get_components.go
- get_components_by_app_config_version.go
- get_config.go
- get_config_graph.go
- get_dependents.go
- get_full_config.go
- get_graph.go
- get_policies_config.go
- get_references.go
- helpers.go
- is_email.go
- order.go
- scopes.go
- validate_graph.go
Click to show internal directories.
Click to hide internal directories.