exec

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"working_dir": {
		Type: schema.TypeString,
	},
	"interpreter": {
		Type: schema.TypeList,
		Elem: &schema.Attribute{Type: schema.TypeString},
	},

	"protocol": {
		Type: schema.TypeString,
	},
	"host": {
		Type: schema.TypeString,
	},
	"host_key": {
		Type: schema.TypeString,
	},
	"user": {
		Type: schema.TypeString,
	},
	"password": {
		Type: schema.TypeString,
	},
	"private_key": {
		Type: schema.TypeString,
	},
	"certificate": {
		Type: schema.TypeString,
	},
	"port": {
		Type: schema.TypeInt,
	},
	"https": {
		Type: schema.TypeBool,
	},
	"insecure": {
		Type: schema.TypeBool,
	},
	"bastion_user": {
		Type: schema.TypeString,
	},
	"bastion_password": {
		Type: schema.TypeString,
	},
	"bastion_private_key": {
		Type: schema.TypeString,
	},
	"bastion_host": {
		Type: schema.TypeString,
	},
	"bastion_host_key": {
		Type: schema.TypeString,
	},
	"bastion_port": {
		Type: schema.TypeInt,
	},
	"proxy_host": {
		Type: schema.TypeString,
	},
	"proxy_port": {
		Type: schema.TypeInt,
	},
	"proxy_user_name": {
		Type: schema.TypeString,
	},
	"proxy_user_password": {
		Type: schema.TypeString,
	},
}

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetCommunicator

func GetCommunicator(connection *plugin.Connection) (communicator.Communicator, bool, error)

GetCommunicator :: creates a communicator from config

func GetConfig

func GetConfig(connection *plugin.Connection) execConfig

GetConfig :: retrieve and cast connection config from query data

func PathOrContents

func PathOrContents(poc string) (string, error)

PathOrContents :: returns the contents of a file if the parameter is a file path, otherwise returns the parameter itself

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Types

This section is empty.

Jump to

Keyboard shortcuts

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