test

package
v0.0.0-...-d0d3e00 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvironmentAddedSuccessMsg

func EnvironmentAddedSuccessMsg(environment, project string) string

func EnvironmentRemovedSuccessMsg

func EnvironmentRemovedSuccessMsg(environment, project string) string

func EnvironmentRenamedSuccessMsg

func EnvironmentRenamedSuccessMsg(name, newName, project string) string

func ErrorMsg

func ErrorMsg(e string) string

func GenerateKeyPair

func GenerateKeyPair() (ssh.PublicKey, *rsa.PrivateKey, error)

func IncorrectNumberOfArgsErrorMsg

func IncorrectNumberOfArgsErrorMsg(accepts, received int) string

func MaxLengthValidationErrorMsg

func MaxLengthValidationErrorMsg(field string, length int) string

func ProjectAddedSuccessMsg

func ProjectAddedSuccessMsg(name string) string

func ProjectRemovedSuccessMsg

func ProjectRemovedSuccessMsg(name string) string

func ProjectRenamedSuccessMsg

func ProjectRenamedSuccessMsg(name, newName string) string

func RequiredFlagsErrorMsg

func RequiredFlagsErrorMsg(flag string) string

func SecretSetSuccessMsg

func SecretSetSuccessMsg(key string) string

func UnknownCommandErrorMsg

func UnknownCommandErrorMsg(command, parent string) string

Types

type MockCrypt

type MockCrypt struct {
	mock.Mock
}

func (*MockCrypt) Decrypt

func (m *MockCrypt) Decrypt(cypherText string, privateKey *rsa.PrivateKey) (string, error)

type MockTerm

type MockTerm struct {
	mock.Mock
}

func (*MockTerm) ReadPassword

func (mt *MockTerm) ReadPassword(fd int) ([]byte, error)

Jump to

Keyboard shortcuts

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