Documentation ¶
Index ¶
- func New() resource.Resource
- type Project
- type Resource
- func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- 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) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Project ¶
type Project struct { ID types.String `tfsdk:"id"` ContainerID types.String `tfsdk:"container_id"` ParentContainerID types.String `tfsdk:"parent_container_id"` Name types.String `tfsdk:"name"` BillingRef types.String `tfsdk:"billing_ref"` OwnerEmail types.String `tfsdk:"owner_email"` EnableKubernetes types.Bool `tfsdk:"enable_kubernetes"` EnableObjectStorage types.Bool `tfsdk:"enable_object_storage"` }
Project is the schema model
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource is the exported resource
func (*Resource) Configure ¶ added in v1.0.0
func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure the resource client
func (Resource) Create ¶
func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create - lifecycle function
func (Resource) Delete ¶
func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete - lifecycle function
func (*Resource) ImportState ¶ added in v0.2.0
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState handles terraform import
func (*Resource) Metadata ¶
func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, res *resource.MetadataResponse)
Metadata returns data resource metadata
func (Resource) Read ¶
func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read - lifecycle function
func (Resource) Update ¶
func (r Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update - lifecycle function
Click to show internal directories.
Click to hide internal directories.