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

applications

package
v1.122.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationController

func NewApplicationController(hasAccessTo hasAccessToRR, applicationHandlerFactory ApplicationHandlerFactory, metricsHandler *metrics.Handler) models.Controller

NewApplicationController Constructor

Types

type ApplicationHandler

type ApplicationHandler struct {
	// contains filtered or unexported fields
}

ApplicationHandler Instance variables

func NewApplicationHandler

func NewApplicationHandler(accounts models.Accounts, config config.Config, hasAccessToGetConfigMap hasAccessToGetConfigMapFunc, options ...ApplicationHandlerOption) ApplicationHandler

NewApplicationHandler Constructor

func (*ApplicationHandler) ChangeRegistrationDetails

func (ah *ApplicationHandler) ChangeRegistrationDetails(ctx context.Context, appName string, applicationRegistrationRequest applicationModels.ApplicationRegistrationRequest) (*applicationModels.ApplicationRegistrationUpsertResponse, error)

ChangeRegistrationDetails handler for ChangeRegistrationDetails

func (*ApplicationHandler) DeleteApplication

func (ah *ApplicationHandler) DeleteApplication(ctx context.Context, appName string) error

DeleteApplication handler for DeleteApplication

func (*ApplicationHandler) GetApplication

func (ah *ApplicationHandler) GetApplication(ctx context.Context, appName string) (*applicationModels.Application, error)

GetApplication handler for GetApplication

func (*ApplicationHandler) GetApplications

func (ah *ApplicationHandler) GetApplications(ctx context.Context, matcher applicationModels.ApplicationMatch, hasAccess hasAccessToRR, options GetApplicationsOptions) ([]*applicationModels.ApplicationSummary, error)

GetApplications handler for ShowApplications - NOTE: does not get latestJob.Environments

func (*ApplicationHandler) GetDeployKeyAndSecret

func (ah *ApplicationHandler) GetDeployKeyAndSecret(ctx context.Context, appName string) (*applicationModels.DeployKeyAndSecret, error)

func (*ApplicationHandler) GetSupportedPipelines

func (ah *ApplicationHandler) GetSupportedPipelines() []string

GetSupportedPipelines handler for GetSupportedPipelines

func (*ApplicationHandler) ModifyRegistrationDetails

func (ah *ApplicationHandler) ModifyRegistrationDetails(ctx context.Context, appName string, applicationRegistrationPatchRequest applicationModels.ApplicationRegistrationPatchRequest) (*applicationModels.ApplicationRegistrationUpsertResponse, error)

ModifyRegistrationDetails handler for ModifyRegistrationDetails

func (*ApplicationHandler) RegenerateDeployKey

func (ah *ApplicationHandler) RegenerateDeployKey(ctx context.Context, appName string, regenerateDeployKeyAndSecretData applicationModels.RegenerateDeployKeyData) error

RegenerateDeployKey Regenerates deploy key and secret and returns the new key

func (*ApplicationHandler) RegenerateSharedSecret

func (ah *ApplicationHandler) RegenerateSharedSecret(ctx context.Context, appName string, regenerateWebhookSecretData applicationModels.RegenerateSharedSecretData) error

RegenerateSharedSecret Regenerates the GitHub webhook secret for an application.

func (*ApplicationHandler) RegisterApplication

RegisterApplication handler for RegisterApplication

func (*ApplicationHandler) SetFederatedCredentialsMigratedAnnotation added in v1.122.0

func (ah *ApplicationHandler) SetFederatedCredentialsMigratedAnnotation(ctx context.Context, appName string) error

SetFederatedCredentialsMigratedAnnotation sets the radix.equinor.com/federeated-credentials-migrated annotation on the applications RadixRegistration CR

func (*ApplicationHandler) TriggerPipelineApplyConfig

func (ah *ApplicationHandler) TriggerPipelineApplyConfig(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)

TriggerPipelineApplyConfig Triggers apply config pipeline for an application

func (*ApplicationHandler) TriggerPipelineBuild

func (ah *ApplicationHandler) TriggerPipelineBuild(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)

TriggerPipelineBuild Triggers build pipeline for an application

func (*ApplicationHandler) TriggerPipelineBuildDeploy

func (ah *ApplicationHandler) TriggerPipelineBuildDeploy(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)

TriggerPipelineBuildDeploy Triggers build-deploy pipeline for an application

func (*ApplicationHandler) TriggerPipelineDeploy

func (ah *ApplicationHandler) TriggerPipelineDeploy(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)

TriggerPipelineDeploy Triggers deploy pipeline for an application

func (*ApplicationHandler) TriggerPipelinePromote

func (ah *ApplicationHandler) TriggerPipelinePromote(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)

TriggerPipelinePromote Triggers promote pipeline for an application

func (*ApplicationHandler) ValidateRadixRegistration

func (ah *ApplicationHandler) ValidateRadixRegistration(ctx context.Context, radixRegistration *v1.RadixRegistration, shouldUpdateExisting bool) ([]string, error)

type ApplicationHandlerFactory

type ApplicationHandlerFactory interface {
	Create(accounts models.Accounts) ApplicationHandler
}

ApplicationHandlerFactory defines a factory function for creating an ApplicationHandler

func NewApplicationHandlerFactory

func NewApplicationHandlerFactory(config config.Config) ApplicationHandlerFactory

NewApplicationHandlerFactory creates a new ApplicationHandlerFactory

type ApplicationHandlerOption

type ApplicationHandlerOption func(ah *ApplicationHandler)

type CollectContextWarningsFunc

type CollectContextWarningsFunc func(ctx context.Context) []string

type GetApplicationsOptions

type GetApplicationsOptions struct {
	IncludeLatestJobSummary bool
	IncludeEnvironments     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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