display

package
v0.0.0-...-4df811a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileFilterAll                  = "all"
	FileFilterAvailableOnly string = "available"
	FileFilterModifiedOnly  string = "modified"
)
View Source
const (
	OPTIONAL string = "optional"
	REQUIRED string = "required"
)

Variables

This section is empty.

Functions

func AlreadyLoggedIn

func AlreadyLoggedIn(account models.User)

AlreadyLoggedIn function Message when user is logged in

func BackupCreated

func BackupCreated(backupName string, short bool)

BackupCreated function Messages when backup is created

func BackupRestored

func BackupRestored()

BackupRestored function Massage when backup is restored

func Changes

func Changes(
	changes core.ChangesByEnvironment,
)

TODO: should handle a `quiet` setting ? printChanges displays changes for environments to the user

func CiAdded

func CiAdded()

CiAdded function Message on CI service successfully added

func CiConfigurations

func CiConfigurations(services []keystonefile.CiService)

/ Displays the list of CI services configurations

func CiNoSecretsForEnvironment

func CiNoSecretsForEnvironment(environmentName string)

CiNoSecretsForEnvironment function Message when there are no secrets for environment in the CI service

func CiSecretSent

func CiSecretSent(serviceName, environmentName, usage string)

CiSecretSent function Message when secrets were sent successfully

func CiSecretsRemoved

func CiSecretsRemoved(environmentName string)

CiSecretsRemoved function Message on secrets successfully removed from the CI service

func CiServiceRemoved

func CiServiceRemoved(serviceName string)

CiServiceRemoved function Message when CI service removal happened successfully

func CiServiceSetupSuccessfully

func CiServiceSetupSuccessfully()

CiServiceSetupSuccessfully function Message when CI setup happened successfully

func DeletionSuccess

func DeletionSuccess(projectName string)

DeletionSuccess function Message when porject destruction is successful

func DeviceList

func DeviceList(devices []models.Device)

DeviceList function Prints a list of devices

func DeviceRevokeSuccess

func DeviceRevokeSuccess()

DeviceRevokeSuccess function Message when device is revoked

func EnterValue

func EnterValue(secretName string)

EnterValue function Asks the user to enter value for a secret

func Environment

func Environment(environment string)

Environment function display environment name

func EnvironmentList

func EnvironmentList(environments []string, currentEnvironment string)

EnvironmentList function displays a list of environment Emphasize the current one

func EnvironmentSendSuccess

func EnvironmentSendSuccess()

EnvironmentSendSuccess function Message when sharing envirionments is successfull

func EnvironmentUsing

func EnvironmentUsing(environmentName string)

EnvironmentUsing function Message after switch

func Error

func Error(err error) bool

Error function display errors

func ExecutingHook

func ExecutingHook(hook string)

func FileAddSuccess

func FileAddSuccess(filePath string, numberOfEnvironments int)

FileAddSuccess function Message when adding a file is successfull

func FileAskForFileContentForEnvironment

func FileAskForFileContentForEnvironment(filePath, environmentName string)

FileAskForFileContentForEnvironment function Ask file content

func FileContentsForEnvironments

func FileContentsForEnvironments(
	fileName string,
	environments []models.Environment,
	getContent func(string, string) ([]byte, error),
)

FileContentsForEnvironments function displays the contents of a file for each environment

func FileFailUserInput

func FileFailUserInput(err error)

FileFailUserInput function Message when input from $EDITOR failed

func FileFailedGetContentFromEditor

func FileFailedGetContentFromEditor(err error)

FileFailUserInput function Message when input from $EDITOR failed

func FileIsNowOptional

func FileIsNowOptional(filePath string)

FileIsNowOptional function Message when setting the file as optional

func FileIsNowRequired

func FileIsNowRequired(filePath string)

FileIsNowOptional function Message when setting the file as required

func FileKept

func FileKept()

FileKept function Message informing the file is kept in cache after ks file rm

func FileNotManaged

func FileNotManaged(filePath string)

FileNotManaged function Message when the file is not managed by Keystone

func FileRemovedSuccess

func FileRemovedSuccess(filePath string)

FileRemovedSuccess function Message when file removal happened successfully

func FileSetSuccess

func FileSetSuccess(filePath string)

FileSetSuccess function Message when file content updated successfully

func Files

func Files(
	files []core.FileDescriptor,
	filter string,
	quiet bool,
)

Display the files, with filters and with a shorter version if quiet is on

func HookAddedSuccessfully

func HookAddedSuccessfully()

func HookCommand

func HookCommand(hook string)

func HookPathDoesNotExist

func HookPathDoesNotExist(path string)

func InviteSuccess

func InviteSuccess(usersUIDs []string, email string)

InviteSuccess function Message when invitation is successful

func LoginLink(name, url string)

LoginLink function displays the link the user must follow to start the oauth process on a third party service

func LoginSucces

func LoginSucces()

LoginSucces message

func Logout

func Logout()

Logout message

func Logs

func Logs(logs []models.ActivityLogLite)

Logs function displags all the logs

func ManageUrl

func ManageUrl(url string)

ManageUrl function displays the link the user must follow to manage their subscritption

func MembersAdded

func MembersAdded()

MembersAdded function Message when members arr added

func MembersByRole

func MembersByRole(members []models.ProjectMember)

MembersByRole function displays list of project members, grouped by role

func NoFilesTracked

func NoFilesTracked()

Message for when there are no files to display

func OrganizationAccessibleProjects

func OrganizationAccessibleProjects(projects []models.Project)

OrganizationAccessibleProjects function displays a list of projects in an organization the user has access to

func OrganizationCreated

func OrganizationCreated(organization models.Organization)

OrganizationCreated function Message when organization is created

func OrganizationMembers

func OrganizationMembers(members []models.ProjectMember)

OrganizationMembers function displays a list of orgnaiztion members

func OrganizationRenamed

func OrganizationRenamed(from, to string)

OrganizationRenamed function Message when the organization was renamed

func OrganizationStatusUpdate

func OrganizationStatusUpdate(organization models.Organization)

OrganizationStatusUpdate function displays the organizaiton private status

func Organizations

func Organizations(organizations []models.Organization, user models.User)

Organizations function displays a list of organizations withe ownership information

func ProjectInitSuccess

func ProjectInitSuccess()

ProjectInitSuccess function Message when project has been created

func Projects

func Projects(projects []models.Project)

Projects function displays a list of the projects the user is a member of

func RemovedMembers

func RemovedMembers()

RemovedMembers function Message when members are removed

func SecretAlreadyExitsts

func SecretAlreadyExitsts(values map[core.EnvironmentName]core.SecretValue)

SecretAlreadyExitsts function Messsage when secret already exists

func SecretIsNow

func SecretIsNow(secretName, prop string)

SecretIsNow function Message when changing the required status of a secret

func SecretIsSetForEnvironment

func SecretIsSetForEnvironment(secretName string, nbEnvironments int)

SecretIsSetForEnvironment function Message when secret add is successfull

func SecretRemoved

func SecretRemoved(secretName string)

SecretRemoved function Message when secret rm is successfull

func SecretTable

func SecretTable(secrets []core.Secret, environments []string)

SecretTable function displays the secret table

func SecretUpdated

func SecretUpdated(secretName, environmentName string)

SecretUpdated function Message when secret set is successfull

func SetRoleOk

func SetRoleOk()

SetRoleOk function Message when member role is set

func ThereIsNoHookYet

func ThereIsNoHookYet()

func UpgradeUrl

func UpgradeUrl(url string)

UpgradeUrl function displays a link the user must follow to upgrade their organization

func User

func User(currentAccount models.User)

User function displayg the userID

func Version

func Version()

Version function displays the version

func WarningFreeOrga

func WarningFreeOrga(roles []models.Role)

WarningFreeOrga function Message telling some things are not possible for free organizaitons

func WelcomeBack

func WelcomeBack(account models.User)

WelcomeBack message

Types

This section is empty.

Jump to

Keyboard shortcuts

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