cmd

package
v0.0.0-...-be0423a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

The gear 'auth-keys-command' extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPermissionCommand

func AddPermissionCommand(name cmd.ResourceType, handler PermissionCommandHandler)

func RegisterAuthorizedKeys

func RegisterAuthorizedKeys(parent *cobra.Command)

Types

type CommandContext

type CommandContext struct {
	Transport *transport.TransportFlag
	// contains filtered or unexported fields
}

func (*CommandContext) RegisterAddKeys

func (ctx *CommandContext) RegisterAddKeys(parent *cobra.Command)

type PermissionCommandHandler

type PermissionCommandHandler interface {
	DefineFlags(c *cobra.Command)
	CreatePermission(c *cobra.Command, id string) (*jobs.KeyPermission, error)
}

Directories

Path Synopsis
Provides the 'gear-auth-keys-command' ssh AuthorizedKeysCommand plugin.
Provides the 'gear-auth-keys-command' ssh AuthorizedKeysCommand plugin.

Jump to

Keyboard shortcuts

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