Documentation ¶
Index ¶
- func AddDataFieldToSecretPatchOp() []patch.PatchOperation
- func AddKeyToSecretPatchOp(keyName string, key []byte) patch.PatchOperation
- 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 string, key string) bool
- func MustMarshalPatch(patches ...patch.PatchOperation) []byte
- func RandomWithPrefix(prefix string) string
- type CommandFlags
- type SshCommandFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDataFieldToSecretPatchOp ¶
func AddDataFieldToSecretPatchOp() []patch.PatchOperation
func AddKeyToSecretPatchOp ¶
func AddKeyToSecretPatchOp(keyName string, key []byte) patch.PatchOperation
func ContainsValue ¶
func FindSecretOrGetFirst ¶
func GetSshKey ¶
func GetSshKey(flags *SshCommandFlags) (string, error)
func GetSshSecretsForUser ¶
func GetSshSecretsForUser(accessCredentials []v1.AccessCredential, user string) []string
func IsOwnedByVm ¶
func IsOwnedByVm(obj metav1.Object, vm *v1.VirtualMachine) bool
func LineContainsKey ¶
func MustMarshalPatch ¶
func MustMarshalPatch(patches ...patch.PatchOperation) []byte
func RandomWithPrefix ¶
Types ¶
type CommandFlags ¶
func (*CommandFlags) AddToCommand ¶
func (c *CommandFlags) AddToCommand(cmd *cobra.Command)
type SshCommandFlags ¶
type SshCommandFlags struct { CommandFlags SshPubKeyFile string SshPubKeyLiteral string }
func (*SshCommandFlags) AddToCommand ¶
func (s *SshCommandFlags) AddToCommand(cmd *cobra.Command)
Click to show internal directories.
Click to hide internal directories.