Documentation
¶
Index ¶
- Variables
- func BuildFilterQuery(input string) string
- func ComputeDisksArray(disks string, numDisks int) ([]string, error)
- func ComputeIPsArray(ips string, numIPs int) ([]string, error)
- func ComputeMountPointsArray(mountPoints string, numDisks int) ([]string, error)
- func ComputeNamesArray(names string, numNodes int) []string
- func ComputePortsArray(ports string, numPorts int) ([]int, error)
- func Contains[T comparable](s []T, e T) bool
- func Count[T any](slice []T, findFn func(cmp T) bool) int
- func CreateTar(output string, src string) error
- func ExtractTar(r io.Reader, dest string) error
- func Find[T any](slice []T, findFn func(cmp T) bool) (T, bool)
- func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func GenerateKeyPairFromSeed(seed []byte) (ed25519.PublicKey, ed25519.PrivateKey, error)
- func GenerateSecret() (string, error)
- func IsHumanMode() bool
- func IsQuietMode() bool
- func IsValidFilter(input string) bool
- func IsValidIP(ip string) bool
- func PEMDecodeKeyPair(pub []byte, priv []byte) (ed25519.PublicKey, ed25519.PrivateKey, error)
- func PEMDecodePrivateKey(priv []byte) (ed25519.PrivateKey, error)
- func PEMDecodePublicKey(pub []byte) (ed25519.PublicKey, error)
- func PEMEncodeKeyPair(pubKey ed25519.PublicKey, privKey ed25519.PrivateKey) (pub []byte, priv []byte, err error)
- func PEMEncodePrivateKey(privKey ed25519.PrivateKey) (priv []byte, err error)
- func PEMEncodePublicKey(pubKey ed25519.PublicKey) (pub []byte, err error)
- func PrintCreateSuccess(resourceType, id string)
- func PrintDelete(s string)
- func PrintEmptyLine()
- func PrintEmptyList()
- func PrintError(err error)
- func PrintFormattedData(data interface{}, format string)
- func PrintHint(s string)
- func PrintInfo(s string)
- func PrintList(s string)
- func PrintNotFound(s string)
- func PrintQuiet(fields ...string)
- func PrintSimpleList(items []string)
- func PrintSmartOutput[T any](cmd *cobra.Command, items []T, fieldsFunc func(T) []string, ...) error
- func PrintSuccess(s string)
- func PrintVerbose(data interface{}, noHeaders bool)
- func PrintWarn(s string)
- func SetOutputMode(mode OutputMode)
- func StringOrEmpty(v *string) string
- func TimeOrEmpty(v *time.Time) string
- func ValidateIPsInput(ips string, numNodes int) error
- func ValidateNamesInput(names string, numNodes int) error
- func WriteFile(filename string, data []byte) error
- type OutputMode
- type QueryOperator
- type SmartOutputConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BuildFilterQuery ¶
func ComputeMountPointsArray ¶
func ComputeNamesArray ¶
func Contains ¶
func Contains[T comparable](s []T, e T) bool
func GenerateKeyPair ¶
func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
GenerateKeyPair generates an ed25519 keypair
func GenerateKeyPairFromSeed ¶
GenerateKeyPairFromSeed generates an ed25519 keypair
func GenerateSecret ¶
func IsHumanMode ¶
func IsHumanMode() bool
func IsQuietMode ¶
func IsQuietMode() bool
func IsValidFilter ¶
func PEMDecodeKeyPair ¶
PEMDecodeKeyPair decodes an ed25519 PEM keypair encoded with PKIX and PKCS8 standards
func PEMDecodePrivateKey ¶
func PEMDecodePrivateKey(priv []byte) (ed25519.PrivateKey, error)
PEMDecodePrivateKey decodes an ed25519 PEM encoded with PKCS8 standard
func PEMDecodePublicKey ¶
PEMDecodePublicKey decodes an ed25519 PEM encoded with PKIX standard
func PEMEncodeKeyPair ¶
func PEMEncodeKeyPair(pubKey ed25519.PublicKey, privKey ed25519.PrivateKey) (pub []byte, priv []byte, err error)
PEMEncodeKeyPair encodes an ed25519 keypair using the common PKIX and PKCS8 standards with a PEM format
func PEMEncodePrivateKey ¶
func PEMEncodePrivateKey(privKey ed25519.PrivateKey) (priv []byte, err error)
PEMEncodePrivateKey encodes an ed25519 private key using the common PKCS8 standard with a PEM format
func PEMEncodePublicKey ¶
PEMEncodePublicKey encodes an ed25519 public key using the common PKIX standard with a PEM format
func PrintCreateSuccess ¶
func PrintCreateSuccess(resourceType, id string)
func PrintDelete ¶
func PrintDelete(s string)
func PrintEmptyLine ¶
func PrintEmptyLine()
func PrintEmptyList ¶
func PrintEmptyList()
func PrintError ¶
func PrintError(err error)
func PrintFormattedData ¶
func PrintFormattedData(data interface{}, format string)
func PrintNotFound ¶
func PrintNotFound(s string)
func PrintQuiet ¶
func PrintQuiet(fields ...string)
func PrintSimpleList ¶
func PrintSimpleList(items []string)
func PrintSmartOutput ¶
func PrintSuccess ¶
func PrintSuccess(s string)
func PrintVerbose ¶
func PrintVerbose(data interface{}, noHeaders bool)
func SetOutputMode ¶
func SetOutputMode(mode OutputMode)
func StringOrEmpty ¶
func TimeOrEmpty ¶
func ValidateIPsInput ¶
func ValidateNamesInput ¶
Types ¶
type QueryOperator ¶
type QueryOperator string
type SmartOutputConfig ¶
type SmartOutputConfig[T any] struct { SingleResource bool SingleResourceCompactOutput bool DefaultOutput configuration.OutputFormat }
Click to show internal directories.
Click to hide internal directories.