Documentation
¶
Overview ¶
Package revokessh provides the brev revoke-ssh command for revoking SSH access to a registered device by calling the backend API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdRevokeSSH ¶
func NewCmdRevokeSSH(t *terminal.Terminal, store RevokeSSHStore) *cobra.Command
Types ¶
type RevokeSSHStore ¶
type RevokeSSHStore interface {
GetAccessToken() (string, error)
GetActiveOrganizationOrDefault() (*entity.Organization, error)
GetOrganizationsByName(name string) ([]entity.Organization, error)
ListOrganizations() ([]entity.Organization, error)
GetUserByID(userID string) (*entity.User, error)
GetOrgRoleAttachments(orgID string) ([]entity.OrgRoleAttachment, error)
}
RevokeSSHStore defines the store methods needed by the revoke-ssh command.
Click to show internal directories.
Click to hide internal directories.