applications

package
v1.117.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 50 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStartPipelineJob

func HandleStartPipelineJob(ctx context.Context, radixClient versioned.Interface, appName string, pipeline *pipelineJob.Definition, jobParameters *jobModels.JobParameters) (*jobModels.JobSummary, error)

HandleStartPipelineJob Handles the creation of a pipeline jobController for an application

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) 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