jobs

package
v0.0.0-...-5f4265e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 10 Imported by: 68

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 KeyData

type KeyData struct {
	Type  string
	Value utils.RawMessage
}

func NewKeyData

func NewKeyData(t string, value interface{}) (*KeyData, error)

func (*KeyData) Check

func (k *KeyData) Check() error

func (*KeyData) Create

func (k *KeyData) Create() (ssh.KeyLocator, error)

type KeyFailure

type KeyFailure struct {
	Index  int
	Key    *KeyData
	Reason error
}

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

type KeyStructuredFailure struct {
	Index   int    `json:"index"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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