Documentation ¶
Index ¶
- func ChangeRegistrationDetails(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func DeleteApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func GetApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func IsDeployKeyValid(account models.Account, appName string) (bool, error)
- func IsDeployKeyValidHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func ListPipelines(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func ModifyRegistrationDetails(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func NewApplicationController(hasAccessTo hasAccessToRR) models.Controller
- func RegenerateDeployKeyHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func RegenerateMachineUserTokenHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func RegisterApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func TriggerPipelineBuild(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func TriggerPipelineBuildDeploy(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func TriggerPipelineDeploy(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func TriggerPipelinePromote(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- type ApplicationHandler
- func (ah ApplicationHandler) ChangeRegistrationDetails(appName string, application applicationModels.ApplicationRegistration) (*applicationModels.ApplicationRegistration, error)
- func (ah ApplicationHandler) DeleteApplication(appName string) error
- func (ah ApplicationHandler) GetApplication(appName string) (*applicationModels.Application, error)
- func (ah ApplicationHandler) GetApplications(matcher applicationModels.ApplicationMatch, hasAccess hasAccessToRR) ([]*applicationModels.ApplicationSummary, error)
- func (ah ApplicationHandler) GetSupportedPipelines() []string
- func (ah ApplicationHandler) ModifyRegistrationDetails(appName string, patchRequest applicationModels.ApplicationPatchRequest) (*applicationModels.ApplicationRegistration, error)
- func (ah ApplicationHandler) RegenerateDeployKey(appName string, ...) (*applicationModels.DeployKeyAndSecret, error)
- func (ah ApplicationHandler) RegenerateMachineUserToken(appName string) (*applicationModels.MachineUser, error)
- func (ah ApplicationHandler) RegisterApplication(application applicationModels.ApplicationRegistration) (*applicationModels.ApplicationRegistration, error)
- func (ah ApplicationHandler) TriggerPipelineBuild(appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah ApplicationHandler) TriggerPipelineBuildDeploy(appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah ApplicationHandler) TriggerPipelineDeploy(appName string, r *http.Request) (*jobModels.JobSummary, error)
- func (ah ApplicationHandler) TriggerPipelinePromote(appName string, r *http.Request) (*jobModels.JobSummary, error)
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeRegistrationDetails ¶
ChangeRegistrationDetails Updates application registration
func DeleteApplication ¶
DeleteApplication Deletes application
func GetApplication ¶
GetApplication Gets application by application name
func IsDeployKeyValid ¶
IsDeployKeyValid Checks if deploy key for app is correctly setup
func IsDeployKeyValidHandler ¶
IsDeployKeyValidHandler validates deploy key for radix application found for application name
func ListPipelines ¶
ListPipelines Lists supported pipelines
func ModifyRegistrationDetails ¶
ModifyRegistrationDetails Updates specific field(s) of an application registration
func NewApplicationController ¶
func NewApplicationController(hasAccessTo hasAccessToRR) models.Controller
NewApplicationController Constructor
func RegenerateDeployKeyHandler ¶ added in v1.7.1
RegenerateDeployKeyHandler Regenerates deploy key and secret and returns the new key
func RegenerateMachineUserTokenHandler ¶
func RegenerateMachineUserTokenHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
RegenerateMachineUserTokenHandler Deletes the secret holding the token to force refresh and returns the new token
func RegisterApplication ¶
RegisterApplication Creates new application registration
func TriggerPipelineBuild ¶
TriggerPipelineBuild creates a build pipeline job for the application
func TriggerPipelineBuildDeploy ¶
TriggerPipelineBuildDeploy creates a build-deploy pipeline job for the application
func TriggerPipelineDeploy ¶
TriggerPipelineDeploy creates a deploy pipeline job for the application
func TriggerPipelinePromote ¶
TriggerPipelinePromote creates a promote pipeline job for the application
Types ¶
type ApplicationHandler ¶
type ApplicationHandler struct {
// contains filtered or unexported fields
}
ApplicationHandler Instance variables
func (ApplicationHandler) ChangeRegistrationDetails ¶
func (ah ApplicationHandler) ChangeRegistrationDetails(appName string, application applicationModels.ApplicationRegistration) (*applicationModels.ApplicationRegistration, error)
ChangeRegistrationDetails handler for ChangeRegistrationDetails
func (ApplicationHandler) DeleteApplication ¶
func (ah ApplicationHandler) DeleteApplication(appName string) error
DeleteApplication handler for DeleteApplication
func (ApplicationHandler) GetApplication ¶
func (ah ApplicationHandler) GetApplication(appName string) (*applicationModels.Application, error)
GetApplication handler for GetApplication
func (ApplicationHandler) GetApplications ¶
func (ah ApplicationHandler) GetApplications(matcher applicationModels.ApplicationMatch, hasAccess hasAccessToRR) ([]*applicationModels.ApplicationSummary, error)
GetApplications handler for ShowApplications - NOTE: does not get latestJob.Environments
func (ApplicationHandler) GetSupportedPipelines ¶
func (ah ApplicationHandler) GetSupportedPipelines() []string
GetSupportedPipelines handler for GetSupportedPipelines
func (ApplicationHandler) ModifyRegistrationDetails ¶
func (ah ApplicationHandler) ModifyRegistrationDetails(appName string, patchRequest applicationModels.ApplicationPatchRequest) (*applicationModels.ApplicationRegistration, error)
ModifyRegistrationDetails handler for ModifyRegistrationDetails
func (ApplicationHandler) RegenerateDeployKey ¶ added in v1.7.1
func (ah ApplicationHandler) RegenerateDeployKey(appName string, regenerateDeployKeyAndSecretData applicationModels.RegenerateDeployKeyAndSecretData) (*applicationModels.DeployKeyAndSecret, error)
RegenerateDeployKey Regenerates deploy key and secret and returns the new key
func (ApplicationHandler) RegenerateMachineUserToken ¶
func (ah ApplicationHandler) RegenerateMachineUserToken(appName string) (*applicationModels.MachineUser, error)
RegenerateMachineUserToken Deletes the secret holding the token to force refresh and returns the new token
func (ApplicationHandler) RegisterApplication ¶
func (ah ApplicationHandler) RegisterApplication(application applicationModels.ApplicationRegistration) (*applicationModels.ApplicationRegistration, error)
RegisterApplication handler for RegisterApplication
func (ApplicationHandler) TriggerPipelineBuild ¶
func (ah ApplicationHandler) TriggerPipelineBuild(appName string, r *http.Request) (*jobModels.JobSummary, error)
TriggerPipelineBuild Triggers build pipeline for an application
func (ApplicationHandler) TriggerPipelineBuildDeploy ¶
func (ah ApplicationHandler) TriggerPipelineBuildDeploy(appName string, r *http.Request) (*jobModels.JobSummary, error)
TriggerPipelineBuildDeploy Triggers build-deploy pipeline for an application
func (ApplicationHandler) TriggerPipelineDeploy ¶
func (ah ApplicationHandler) TriggerPipelineDeploy(appName string, r *http.Request) (*jobModels.JobSummary, error)
TriggerPipelineDeploy Triggers deploy pipeline for an application
func (ApplicationHandler) TriggerPipelinePromote ¶
func (ah ApplicationHandler) TriggerPipelinePromote(appName string, r *http.Request) (*jobModels.JobSummary, error)
TriggerPipelinePromote Triggers promote pipeline for an application
type Builder ¶
type Builder interface { Build() applicationModels.ApplicationRegistration BuildRR() (*v1.RadixRegistration, error) // contains filtered or unexported methods }
Builder Handles construction of DTO
func AnApplicationRegistration ¶
func AnApplicationRegistration() Builder
AnApplicationRegistration Constructor for application builder with test values