application

package
v0.0.0-...-3852cca Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreResponding

func AreResponding(ctx context.Context, urls ...string) error

AreResponding Checks if all endpoint responds

func DeleteByImpersonatedUser

func DeleteByImpersonatedUser(ctx context.Context, cfg config.Config, appName string) error

DeleteByImpersonatedUser Deletes an application by the impersonated user

func DeleteByServiceAccount

func DeleteByServiceAccount(ctx context.Context, cfg config.Config, appName string) error

DeleteByServiceAccount an application by the service account

func DeleteIfExist

func DeleteIfExist(ctx context.Context, cfg config.Config, appName string) error

DeleteIfExist Delete application if it exists

func Deploy

func Deploy(ctx context.Context, cfg config.Config, appName, toEnvironment string) (*applicationclient.TriggerPipelineDeployOK, error)

Deploy Deploy application

func Get

func Get(ctx context.Context, cfg config.Config, appName string) (*models.Application, error)

Get gets an application by appName

func GetDeployKey

func GetDeployKey(ctx context.Context, cfg config.Config, appName string) (string, error)

func HasDeployKey

func HasDeployKey(ctx context.Context, cfg config.Config, appName, expectedDeployKey string) error

func IsAliasDefined

func IsAliasDefined(ctx context.Context, cfg config.Config, appName string) error

IsAliasDefined Checks if app alias is defined

func IsDefined

func IsDefined(ctx context.Context, cfg config.Config, appName string) error

IsDefined Checks if application is defined

func IsDeployKeyDefined

func IsDeployKeyDefined(ctx context.Context, cfg config.Config, appName string) error

func IsResponding

func IsResponding(ctx context.Context, url string) bool

IsResponding Checks if endpoint is responding

func IsRunningInActiveCluster

func IsRunningInActiveCluster(publicDomainName, canonicalDomainName string) bool

IsRunningInActiveCluster Check if app is running in active cluster

func RegenerateDeployKey

func RegenerateDeployKey(ctx context.Context, cfg config.Config, appName, privateKey, sharedSecret string) error

func Register

func Register(ctx context.Context, cfg config.Config, appName, appRepo, appSharedSecret, appCreator, configBranch, configurationItem string, appAdminGroup string, appReaderGroups []string) (*apiclient.RegisterApplicationOK, error)

Register Will register application

func TryGetCanonicalDomainName

func TryGetCanonicalDomainName(ctx context.Context, cfg config.Config, appName, environmentName, componentName string) (string, error)

TryGetCanonicalDomainName Waits for canonical domain name to be defined

func TryGetPublicDomainName

func TryGetPublicDomainName(ctx context.Context, cfg config.Config, appName, environmentName, componentName string) (string, error)

TryGetPublicDomainName Waits for public domain name to be defined

Types

This section is empty.

Jump to

Keyboard shortcuts

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