provider

package
v0.0.0-...-d1d09b2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() provider.Provider

func NewScriptResource

func NewScriptResource() resource.Resource

Types

type ScriptResource

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

ScriptResource defines the resource implementation.

func (*ScriptResource) Configure

func (*ScriptResource) Create

func (*ScriptResource) Delete

func (*ScriptResource) ImportState

func (*ScriptResource) Metadata

func (*ScriptResource) Read

func (*ScriptResource) Schema

func (*ScriptResource) Update

type ScriptResourceModel

type ScriptResourceModel struct {
	Triggers   types.Map    `tfsdk:"triggers"`
	Timeout    types.String `tfsdk:"timeout"`
	RetryDelay types.String `tfsdk:"retry_delay"`
	//Connect    types.Set    `tfsdk:"connect"`
	//Query      types.Set    `tfsdk:"query"`
	//Script     types.Set    `tfsdk:"script"`
	Exec []struct {
		Commands  []types.String `tfsdk:"commands"`
		Lifecycle types.String   `tfsdk:"lifecycle"`
	} `tfsdk:"exec"`
	File []struct {
		Source      types.String `tfsdk:"source"`
		Destination types.String `tfsdk:"destination"`
		Content     types.String `tfsdk:"content"`
		Permissions types.String `tfsdk:"permissions"`
		Owner       types.String `tfsdk:"owner"`
		Group       types.String `tfsdk:"group"`
	} `tfsdk:"file"`
	Result types.String `tfsdk:"result"`
}

ScriptResourceModel describes the resource data model.

type SshProviderModel

type SshProviderModel struct {
	Host       types.String `tfsdk:"host"`
	Port       types.String `tfsdk:"port"`
	User       types.String `tfsdk:"user"`
	Password   types.String `tfsdk:"password"`
	PrivateKey types.String `tfsdk:"private_key"`
}

Jump to

Keyboard shortcuts

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