Documentation ¶
Index ¶
- func KeyIndexes(keys []ssh.PublicKey, key ssh.PublicKey) []int
- func KeyOneOf(keys []ssh.PublicKey, key ssh.PublicKey) bool
- func Slowdown[T any](f func() T) T
- type SSHKeys
- func (ssh2 *SSHKeys) Add(ctx context.Context, user string, comment string, key ssh.PublicKey) error
- func (k *SSHKeys) Admin(ctx context.Context) (keys []ssh.PublicKey, err error)
- func (ssh2 *SSHKeys) Keys(ctx context.Context, user string) ([]models.Keys, error)
- func (ssh2 *SSHKeys) OnUserDelete(ctx context.Context, user *models.User) error
- func (ssh2 *SSHKeys) Remove(ctx context.Context, user string, key ssh.PublicKey) error
- func (ssh2 *SSHKeys) TableInfo() component.TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyIndexes ¶
KeyIndexes returns a slice of ints that contain the indexes of the given key.
Types ¶
type SSHKeys ¶
func (*SSHKeys) Admin ¶
Admin returns the set of administrative ssh keys. These are ssh keys associated to distillery admin users.
func (*SSHKeys) OnUserDelete ¶
Click to show internal directories.
Click to hide internal directories.