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 ¶
PathOrContents :: returns the contents of a file if the parameter is a file path, otherwise returns the parameter itself
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.