sshkeys

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd() *cobra.Command

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

func NewGetCmd

func NewGetCmd() *cobra.Command

func NewListCmd

func NewListCmd() *cobra.Command

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

Types

type CreateSSHKeyOperation

type CreateSSHKeyOperation struct{}

type DeleteSSHKeyOperation

type DeleteSSHKeyOperation struct{}

type GetSSHKeyOperation

type GetSSHKeyOperation struct{}

type ListSSHKeyOperation

type ListSSHKeyOperation struct{}

type SSHKey

type SSHKey struct {
	components.SSHKeyData
}

SSHKey wraps the SDK's SSHKeyData so it can be rendered as a table row or serialized through the shared renderer. It backs both the account-scoped (`lsh ssh-keys`) and project-scoped (`lsh projects ssh-keys`) commands, which return the same underlying resource.

func (*SSHKey) DetailFields

func (m *SSHKey) DetailFields() map[string]string

DetailFields exposes the fields shown only in the details view.

func (*SSHKey) DetailView

func (m *SSHKey) DetailView() renderer.DetailView

DetailView describes how SSH keys are titled in the interactive views.

func (*SSHKey) GetData

func (m *SSHKey) GetData() []renderer.ResponseData

func (*SSHKey) TableRow

func (m *SSHKey) TableRow() table.Row

TableRow renders the compact list columns. The long fields (public key, fingerprint, project, tags) live in the details view via DetailFields.

type SSHKeys

type SSHKeys struct {
	Data []*SSHKey
}

SSHKeys is a renderable collection of SSH keys.

func (*SSHKeys) GetData

func (m *SSHKeys) GetData() []renderer.ResponseData

type UpdateSSHKeyOperation

type UpdateSSHKeyOperation struct{}

Jump to

Keyboard shortcuts

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