helper

package
v0.0.0-...-78ecfad Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorCertificateResponse = "" /* 301-byte string literal not displayed */

Variables

This section is empty.

Functions

func CheckFlagsStringExist

func CheckFlagsStringExist(flags string, repository_data string) string

func CliCriticalGen

func CliCriticalGen(err error, status int) *cli.ExitError

func CliErrorGen

func CliErrorGen(err error, status int) *cli.ExitError

func CliInfoVerbose

func CliInfoVerbose(message string)

func CliSuccessVerbose

func CliSuccessVerbose(message string)

func CredentialsWritter

func CredentialsWritter(data CredentialsDataType, CREDENTIALS_FILE string, CREDENTIALS_TEMPLATES string, success_message string) error

func DeleteImageCommand

func DeleteImageCommand(image_name string, force string) error

func ExtractNumberFromString

func ExtractNumberFromString(str string) (num int)

func GetAllNoneImageID

func GetAllNoneImageID() (string, error)

func GetCredentialPath

func GetCredentialPath() (string, error)

func GetInputOrFlags

func GetInputOrFlags(flags string, input string, validation func(input string) error) string

func GetPassword

func GetPassword(flags string, validation func(input string) error) (string, error)

func IsWindows

func IsWindows() bool

func RunSubProcess

func RunSubProcess(command string, error_message string) (*subprocess.Subprocess, error)

func ShowSubCommand

func ShowSubCommand(err_message string, c *cli.Context) error

Types

type Compare

type Compare func(str1, str2 string) bool

func (Compare) Sort

func (cmp Compare) Sort(strs []string)

type CredentialsDataType

type CredentialsDataType struct {
	Host           string
	NexusPort      string
	Repository     string
	RepositoryPort string
	Namespace      string
	Username       string
	Password       string
}

Jump to

Keyboard shortcuts

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