ui

package
v0.0.0-...-6644658 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSecretLength

func CheckSecretLength(secret string) bool

check if the length of secret is less than 16 chars

func EnterDockercfg

func EnterDockercfg() string

EnterDockercfg allows the user to specify the path to the docker config json file for external image repository authentication in a UI prompt.

func EnterGitRepo

func EnterGitRepo() string

EnterGitRepo allows the user to specify the git repository in a prompt

func EnterGitWebhookSecret

func EnterGitWebhookSecret() string

EnterGitWebhookSecret allows the user to specify the webhook secret string they wish to authenticate push/pull to GitOps repo in a UI prompt.

func EnterImageRepoExternalRepository

func EnterImageRepoExternalRepository() string

EnterImageRepoExternalRepository allows the user to specify the type of image repository they wish to use in a UI prompt.

func EnterImageRepoInternalRegistry

func EnterImageRepoInternalRegistry() string

EnterImageRepoInternalRegistry allows the user to specify the Internal image repository in a UI prompt.

func EnterInternalRegistry

func EnterInternalRegistry() string

EnterInternalRegistry allows the user to specify the internal registry in a UI prompt.

func EnterOutputPath

func EnterOutputPath() string

EnterOutputPath allows the user to specify the path where the gitops configuration must reside locally in a UI prompt.

func EnterPrefix

func EnterPrefix() string

EnterPrefix , if we desire to add the prefix to differentiate between namespaces, then this is the way forward.

func EnterSealedSecretNamespace

func EnterSealedSecretNamespace() string

EnterSealedSecretNamespace , if the secret isnt installed using the operator it is necessary to manually add the sealed-secrets-namepsace in which its installed through this UI prompt.

func EnterSealedSecretService

func EnterSealedSecretService(sealedSecretService *types.NamespacedName) string

EnterSealedSecretService , if the secret isnt installed using the operator it is necessary to manually add the sealed-secrets-controller name through this UI prompt.

func EnterServiceRepoURL

func EnterServiceRepoURL() string

EnterServiceRepoURL , allows users to differentiate between the bootstrap and init options, addition of the service repo url will allow users to bootstrap an environment through the UI prompt.

func EnterServiceWebhookSecret

func EnterServiceWebhookSecret() string

EnterServiceWebhookSecret allows the user to specify the webhook secret string they wish to authenticate push/pull to service repo in a UI prompt.

func EnterStatusTrackerAccessToken

func EnterStatusTrackerAccessToken(serviceRepo string) string

EnterStatusTrackerAccessToken , it becomes necessary to add the personal access token from github to autheticate the commit-status-tracker.

func HandleError

func HandleError(err error)

HandleError handles UI-related errors, in particular useful to gracefully handle ctrl-c interrupts gracefully

func SelectOptionCommitStatusTracker

func SelectOptionCommitStatusTracker() string

SelectOptionCommitStatusTracker allows users the option to select if they want to incorporate the feature of the commit status tracker through the UI prompt.

func SelectOptionImageRepository

func SelectOptionImageRepository() string

SelectOptionImageRepository , allows users an option between the Internal image registry and the external image registry through the UI prompt.

func SelectOptionOverwrite

func SelectOptionOverwrite(path string) string

SelectOptionOverwrite allows users the option to overwrite the current gitops configuration locally through the UI prompt.

func SelectPrivateRepoDriver

func SelectPrivateRepoDriver() string

SelectPrivateGitRepoDriver lets users choose the driver for their git hosting service.

func ValidateName

func ValidateName(name string) error

ValidateName will do validation of application & component names according to DNS (RFC 1123) rules Criteria for valid name in kubernetes: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md

Types

This section is empty.

Jump to

Keyboard shortcuts

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