revokessh

package
v0.6.322 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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