ssh

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Keys      []string
	CachePath string
}

type Plugin

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

func NewPlugin

func NewPlugin() *Plugin

NewPlugin instantiate a Plugin instance.

func TestNewPlugin

func TestNewPlugin(fs afero.Fs) *Plugin

TestNewPlugin return a test utility function to instantiate a plugin instance with the specified afero.Fs instance.

func (Plugin) Commands

func (p Plugin) Commands() []*cobra.Command

func (*Plugin) Configure

func (p *Plugin) Configure(v *viper.Viper) error

func (*Plugin) Generate

func (p *Plugin) Generate(personaDirectory string) (plugin.Generated, error)

Generate a file in the bin plugin directory. Implements the Generator interface.

func (Plugin) Name

func (p Plugin) Name() string

Name return plugin ssh. Implements `plugin.Pluggable` interface.

func (Plugin) Render

func (p Plugin) Render(personaName, personaDirectory string) string

Render returns content rendered by the plugin. Implements `plugin.Renderable` interface.

func (Plugin) Setup

func (p Plugin) Setup(profileLocation string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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