shell

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type Action added in v1.3.0

type Action string

Action is an enum for CRUD operations

const (
	//ActionCreate ...
	ActionCreate Action = "create"
	//ActionRead ...
	ActionRead Action = "read"
	//ActionUpdate ...
	ActionUpdate Action = "update"
	//ActionDelete ...
	ActionDelete Action = "delete"
)

type Client

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

Client is the client itself. Since we already have access to the shell no real provisioning needs to be done

type CommandConfig added in v1.3.0

type CommandConfig struct {
	Command              string
	Environment          []string
	SensitiveEnvironment []string
	Interpreter          []string
	WorkingDirectory     string
	Action               Action
	PreviousOutput       map[string]string
	EnableParallelism    bool
}

CommandConfig is a helper struct

type Config

type Config struct {
	Environment          map[string]interface{}
	SensitiveEnvironment map[string]interface{}
	Interpreter          []interface{}
	EnableParallelism    bool
}

Config is the config for the client.

func (*Config) Client

func (c *Config) Client() (*Client, error)

Client configures and returns a fully initialized ShellClient

Jump to

Keyboard shortcuts

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