Documentation ¶
Overview ¶
Provides job implementations for ssh requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSshExtension ¶
func NewSshExtension() jobs.JobExtension
Return a job extension that casts requests directly to jobs TODO: Move implementation out of request object and into a
specific package
Types ¶
type CreateKeysRequest ¶
type CreateKeysRequest struct {
*ExtendedCreateKeysData
}
func (*CreateKeysRequest) Execute ¶
func (j *CreateKeysRequest) Execute(resp jobs.Response)
type ExtendedCreateKeysData ¶
type ExtendedCreateKeysData struct { Keys []KeyData Permissions []KeyPermission }
func (*ExtendedCreateKeysData) Check ¶
func (d *ExtendedCreateKeysData) Check() error
type KeyFailure ¶
type KeyPermission ¶
type KeyPermission struct { Type string With *utils.RawMessage }
func NewKeyPermission ¶
func NewKeyPermission(t string, value interface{}) (*KeyPermission, error)
func (*KeyPermission) Check ¶
func (p *KeyPermission) Check() error
func (*KeyPermission) Create ¶
func (k *KeyPermission) Create(locator ssh.KeyLocator) error
type KeyStructuredFailure ¶
Click to show internal directories.
Click to hide internal directories.