Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewUserDataSource() datasource.DataSource
- func NewUserResource() resource.Resource
- type MyInfo
- type ProviderModel
- type UserDataSource
- func (d *UserDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *UserDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *UserDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *UserDataSource) Schema(_ context.Context, req datasource.SchemaRequest, ...)
- type UserInfo
- type UserResource
- func (r *UserResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *UserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserDataSource ¶
func NewUserDataSource() datasource.DataSource
func NewUserResource ¶
NewUserResource is a helper function to simplify the provider implementation.
Types ¶
type ProviderModel ¶
type UserDataSource ¶
type UserDataSource struct {
// contains filtered or unexported fields
}
func (*UserDataSource) Configure ¶
func (d *UserDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*UserDataSource) Metadata ¶
func (d *UserDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*UserDataSource) Read ¶
func (d *UserDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*UserDataSource) Schema ¶
func (d *UserDataSource) Schema(_ context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type UserResource ¶
type UserResource struct {
// contains filtered or unexported fields
}
UserResource is the resource implementation.
func (*UserResource) Configure ¶
func (r *UserResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserResource) Create ¶
func (r *UserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*UserResource) Delete ¶
func (r *UserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*UserResource) Metadata ¶
func (r *UserResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*UserResource) Read ¶
func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*UserResource) Schema ¶
func (r *UserResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*UserResource) Update ¶
func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.