keymanager

package
v0.0.0-...-78dbea0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunSSHImportId = runSSHImportId

Override for testing

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type BlockChecker

type BlockChecker interface {
	ChangeAllowed() error
	RemoveAllowed() error
}

type KeyManagerAPI

type KeyManagerAPI struct {
	// contains filtered or unexported fields
}

KeyManagerAPI provides api endpoints for manipulating ssh keys

func (*KeyManagerAPI) AddKeys

AddKeys adds new authorised ssh keys for the specified user.

func (*KeyManagerAPI) DeleteKeys

DeleteKeys deletes the authorised ssh keys for the specified user.

func (*KeyManagerAPI) ImportKeys

ImportKeys imports new authorised ssh keys from the specified key ids for the specified user.

func (*KeyManagerAPI) ListKeys

ListKeys returns the authorised ssh keys for the specified users.

type Model

type Model interface {
	ModelTag() names.ModelTag
	ModelConfig() (*config.Config, error)
	UpdateModelConfig(map[string]interface{}, []string, ...state.ValidateConfigFunc) error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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