hostcmd

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package hostcmd implements the 'inertia [host]' subcommands

Index

Constants

View Source
const (
	// EnvSSHPassphrase is the key used to fetch PEM key passphrases
	EnvSSHPassphrase = "PEM_PASSPHRASE"
)

Variables

This section is empty.

Functions

func AttachEnvCmd

func AttachEnvCmd(host *HostCmd)

AttachEnvCmd attaches the 'env' subcommands to the given host

func AttachHostCmds

func AttachHostCmds(inertia *inertiacmd.Cmd)

AttachHostCmds reads configuration to attach a child command for each configured remote in the configuration

func AttachTotpCmd

func AttachTotpCmd(root *UserCmd)

AttachTotpCmd attaches the 'totp' subcommands to given parent

func AttachUserCmd

func AttachUserCmd(host *HostCmd)

AttachUserCmd attaches the 'user' subcommands to the given parent

Types

type EnvCmd

type EnvCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

EnvCmd is the parent class for the 'env' subcommands

type HostCmd

type HostCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

HostCmd is the parent class for a subcommand for a configured remote host

type UserCmd

type UserCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

UserCmd is the parent class for the 'user' subcommands

type UserTotpCmd

type UserTotpCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

UserTotpCmd is the parent class for the 'user totp' subcommands

Jump to

Keyboard shortcuts

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