Documentation
¶
Index ¶
- func HandleStartPipelineJob(ctx context.Context, radixClient versioned.Interface, appName string, ...) (*jobModels.JobSummary, error)
- func NewApplicationController(hasAccessTo hasAccessToRR, applicationHandlerFactory ApplicationHandlerFactory, ...) models.Controller
- type ApplicationHandler
- func (ah *ApplicationHandler) ChangeRegistrationDetails(ctx context.Context, appName string, ...) (*applicationModels.ApplicationRegistrationUpsertResponse, error)
- func (ah *ApplicationHandler) DeleteApplication(ctx context.Context, appName string) error
- func (ah *ApplicationHandler) GetApplication(ctx context.Context, appName string) (*applicationModels.Application, error)
- func (ah *ApplicationHandler) GetApplications(ctx context.Context, matcher applicationModels.ApplicationMatch, ...) ([]*applicationModels.ApplicationSummary, error)
- func (ah *ApplicationHandler) GetDeployKeyAndSecret(ctx context.Context, appName string) (*applicationModels.DeployKeyAndSecret, error)
- func (ah *ApplicationHandler) GetSupportedPipelines() []string
- func (ah *ApplicationHandler) ModifyRegistrationDetails(ctx context.Context, appName string, ...) (*applicationModels.ApplicationRegistrationUpsertResponse, error)
- func (ah *ApplicationHandler) RegenerateDeployKey(ctx context.Context, appName string, ...) error
- func (ah *ApplicationHandler) RegenerateSharedSecret(ctx context.Context, appName string, ...) error
- func (ah *ApplicationHandler) RegisterApplication(ctx context.Context, ...) (*applicationModels.ApplicationRegistrationUpsertResponse, error)
- func (ah *ApplicationHandler) TriggerPipelineApplyConfig(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah *ApplicationHandler) TriggerPipelineBuild(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah *ApplicationHandler) TriggerPipelineBuildDeploy(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah *ApplicationHandler) TriggerPipelineDeploy(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah *ApplicationHandler) TriggerPipelinePromote(ctx context.Context, appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah *ApplicationHandler) ValidateRadixRegistration(ctx context.Context, radixRegistration *v1.RadixRegistration, ...) ([]string, error)
- type ApplicationHandlerFactory
- type ApplicationHandlerOption
- type CollectContextWarningsFunc
- type GetApplicationsOptions
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 ¶
func (ah *ApplicationHandler) RegisterApplication(ctx context.Context, applicationRegistrationRequest applicationModels.ApplicationRegistrationRequest) (*applicationModels.ApplicationRegistrationUpsertResponse, error)
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)