Documentation ¶
Index ¶
- func New() provider.Provider
- func NewScriptResource() resource.Resource
- type ScriptResource
- func (r *ScriptResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ScriptResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ScriptResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ScriptResourceModel
- type SshProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScriptResource ¶
Types ¶
type ScriptResource ¶
type ScriptResource struct {
// contains filtered or unexported fields
}
ScriptResource defines the resource implementation.
func (*ScriptResource) Configure ¶
func (r *ScriptResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ScriptResource) Create ¶
func (r *ScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ScriptResource) Delete ¶
func (r *ScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ScriptResource) ImportState ¶
func (r *ScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ScriptResource) Metadata ¶
func (r *ScriptResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ScriptResource) Read ¶
func (r *ScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ScriptResource) Schema ¶
func (r *ScriptResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ScriptResource) Update ¶
func (r *ScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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.
Click to show internal directories.
Click to hide internal directories.