Documentation ¶
Index ¶
- func ContainsValue(slice []string, value string) bool
- func FindSecretOrGetFirst(secretName string, secrets []string) (string, error)
- func GetSSHKey(flags *SSHCommandFlags) (string, error)
- func GetSSHSecretsForUser(accessCredentials []v1.AccessCredential, user string) []string
- func IsOwnedByVM(obj metav1.Object, vm *v1.VirtualMachine) bool
- func LineContainsKey(line, key string) bool
- func RandomWithPrefix(prefix string) string
- type CommandFlags
- type SSHCommandFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsValue ¶
func FindSecretOrGetFirst ¶
func GetSSHKey ¶ added in v1.3.0
func GetSSHKey(flags *SSHCommandFlags) (string, error)
func GetSSHSecretsForUser ¶ added in v1.3.0
func GetSSHSecretsForUser(accessCredentials []v1.AccessCredential, user string) []string
func IsOwnedByVM ¶ added in v1.3.0
func IsOwnedByVM(obj metav1.Object, vm *v1.VirtualMachine) bool
func LineContainsKey ¶
func RandomWithPrefix ¶
Types ¶
type CommandFlags ¶
func (*CommandFlags) AddToCommand ¶
func (c *CommandFlags) AddToCommand(cmd *cobra.Command)
type SSHCommandFlags ¶ added in v1.3.0
type SSHCommandFlags struct { CommandFlags SSHPubKeyFile string SSHPubKeyLiteral string }
func (*SSHCommandFlags) AddToCommand ¶ added in v1.3.0
func (s *SSHCommandFlags) AddToCommand(cmd *cobra.Command)
Click to show internal directories.
Click to hide internal directories.