Documentation ¶
Index ¶
- func NewProfileDataSource() datasource.DataSource
- func NewProfileResource() resource.Resource
- type ProfileDataSource
- func (d *ProfileDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *ProfileDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ProfileDataSource) Schema(_ context.Context, req datasource.SchemaRequest, ...)
- type ProfileModel
- type ProfileResource
- func (r *ProfileResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r ProfileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r ProfileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r ProfileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r ProfileResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ProfileResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r ProfileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r ProfileResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r ProfileResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r ProfileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProfileDataSource ¶ added in v0.1.2
func NewProfileDataSource() datasource.DataSource
func NewProfileResource ¶
NewProfileResource returns a new profile resource.
Types ¶
type ProfileDataSource ¶ added in v0.1.2
type ProfileDataSource struct {
// contains filtered or unexported fields
}
ProfileDataSource represent Incus profile data source.
func (*ProfileDataSource) Configure ¶ added in v0.1.2
func (d *ProfileDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ProfileDataSource) Metadata ¶ added in v0.1.2
func (d *ProfileDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ProfileDataSource) Read ¶ added in v0.1.2
func (d *ProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ProfileDataSource) Schema ¶ added in v0.1.2
func (d *ProfileDataSource) Schema(_ context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ProfileModel ¶
type ProfileResource ¶
type ProfileResource struct {
// contains filtered or unexported fields
}
ProfileResource represent Incus profile resource.
func (*ProfileResource) Configure ¶
func (r *ProfileResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (ProfileResource) Create ¶
func (r ProfileResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (ProfileResource) Delete ¶
func (r ProfileResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (ProfileResource) ImportState ¶
func (r ProfileResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (ProfileResource) Metadata ¶
func (r ProfileResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata for profile resource.
func (*ProfileResource) ModifyPlan ¶ added in v0.1.4
func (r *ProfileResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (ProfileResource) Read ¶
func (r ProfileResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (ProfileResource) Schema ¶
func (r ProfileResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema for profile resource.
func (ProfileResource) SyncState ¶
func (r ProfileResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m ProfileModel) diag.Diagnostics
SyncState fetches the server's current state for a profile and updates the provided model. It then applies this updated model as the new state in Terraform.
func (ProfileResource) Update ¶
func (r ProfileResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.