key

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Package key contains the commands to operate on PowerVS ssh-key related resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() *cobra.Command

Commands - A collection of supported commands for SSH key management in the PowerVS environment.

func CreateSSHKeyCommand

func CreateSSHKeyCommand() *cobra.Command

CreateSSHKeyCommand - child command of 'key' to create an SSH key.

func DeleteSSHKeyCommand

func DeleteSSHKeyCommand() *cobra.Command

DeleteSSHKeyCommand - child command of 'key' to delete an SSH key.

func ListSSHKeyCommand

func ListSSHKeyCommand() *cobra.Command

ListSSHKeyCommand function to list PowerVS SSH Keys.

Types

type IList

type IList struct {
	Items []SSHKeySpec `json:"items"`
}

IList defines a list of SSH Keys.

func (*IList) ToTable

func (keyList *IList) ToTable() *metav1.Table

ToTable converts List to *metav1.Table.

type SSHKeySpec

type SSHKeySpec struct {
	Name         string          `json:"name"`
	Key          string          `json:"key"`
	CreationDate strfmt.DateTime `json:"creationDate"`
}

SSHKeySpec defines an SSH Key.

Jump to

Keyboard shortcuts

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