applications

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeRegistrationDetails

func ChangeRegistrationDetails(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

ChangeRegistrationDetails Updates application registration

func DeleteApplication

func DeleteApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

DeleteApplication Deletes application

func GetApplication

func GetApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetApplication Gets application by application name

func IsDeployKeyValid

func IsDeployKeyValid(account models.Account, appName string) (bool, error)

IsDeployKeyValid Checks if deploy key for app is correctly setup

func IsDeployKeyValidHandler

func IsDeployKeyValidHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

IsDeployKeyValidHandler validates deploy key for radix application found for application name

func ListPipelines

func ListPipelines(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

ListPipelines Lists supported pipelines

func ModifyRegistrationDetails

func ModifyRegistrationDetails(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

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

func RegenerateDeployKeyHandler(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

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

func RegisterApplication(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

RegisterApplication Creates new application registration

func TriggerPipelineBuild

func TriggerPipelineBuild(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

TriggerPipelineBuild creates a build pipeline job for the application

func TriggerPipelineBuildDeploy

func TriggerPipelineBuildDeploy(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

TriggerPipelineBuildDeploy creates a build-deploy pipeline job for the application

func TriggerPipelineDeploy

func TriggerPipelineDeploy(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

TriggerPipelineDeploy creates a deploy pipeline job for the application

func TriggerPipelinePromote

func TriggerPipelinePromote(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

TriggerPipelinePromote creates a promote pipeline job for the application

Types

type ApplicationHandler

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

ApplicationHandler Instance variables

func Init

func Init(accounts models.Accounts) ApplicationHandler

Init Constructor

func (ApplicationHandler) ChangeRegistrationDetails

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

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

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

func NewBuilder

func NewBuilder() Builder

NewBuilder Constructor for application builder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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