Documentation ¶
Index ¶
- Constants
- func AddDiskResource(ctx context.Context, disk linodego.InstanceDisk, resp *resource.CreateResponse, ...)
- func NewResource() resource.Resource
- type Resource
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceModel
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AddDiskResource ¶ added in v2.17.0
func AddDiskResource(ctx context.Context, disk linodego.InstanceDisk, resp *resource.CreateResponse, plan ResourceModel)
func NewResource ¶ added in v2.17.0
Types ¶
type Resource ¶
type Resource struct {
helper.BaseResource
}
func (*Resource) Create ¶ added in v2.17.0
func (r *Resource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*Resource) Delete ¶ added in v2.17.0
func (r *Resource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*Resource) ImportState ¶ added in v2.17.0
func (r *Resource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*Resource) Read ¶ added in v2.17.0
func (r *Resource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*Resource) Update ¶ added in v2.17.0
func (r *Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type ResourceModel ¶ added in v2.17.0
type ResourceModel struct { ID types.String `tfsdk:"id"` Label types.String `tfsdk:"label"` LinodeID types.Int64 `tfsdk:"linode_id"` Size types.Int64 `tfsdk:"size"` AuthorizedKeys types.Set `tfsdk:"authorized_keys"` AuthorizedUsers types.Set `tfsdk:"authorized_users"` Filesystem types.String `tfsdk:"filesystem"` Image types.String `tfsdk:"image"` RootPass types.String `tfsdk:"root_pass"` StackScriptData types.Map `tfsdk:"stackscript_data"` StackScriptID types.Int64 `tfsdk:"stackscript_id"` Created timetypes.RFC3339 `tfsdk:"created"` Updated timetypes.RFC3339 `tfsdk:"updated"` Status types.String `tfsdk:"status"` DiskEncryption types.String `tfsdk:"disk_encryption"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
func (*ResourceModel) CopyFrom ¶ added in v2.17.0
func (data *ResourceModel) CopyFrom(other ResourceModel, preserveKnown bool)
func (*ResourceModel) FlattenDisk ¶ added in v2.17.0
func (data *ResourceModel) FlattenDisk(disk *linodego.InstanceDisk, preserveKnown bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.