Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewRoleResource() resource.Resource
- func NewSchemaResource() resource.Resource
- func NewTableResource() resource.Resource
- func NewUserResource() resource.Resource
- type HarperDBProvider
- func (p *HarperDBProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *HarperDBProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *HarperDBProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *HarperDBProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *HarperDBProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type HarperDBProviderModel
- type RoleResource
- func (r *RoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RoleResourceModel
- type SchemaResource
- func (r *SchemaResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SchemaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SchemaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SchemaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SchemaResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SchemaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SchemaResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SchemaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SchemaResourceModel
- type TableResource
- func (r *TableResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TableResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TableResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TableResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TableResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TableResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TableResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TableResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TableResourceModel
- type UserResource
- func (r *UserResource) Configure(ctx 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) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type UserResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoleResource ¶
func NewSchemaResource ¶
func NewTableResource ¶
func NewUserResource ¶
Types ¶
type HarperDBProvider ¶
type HarperDBProvider struct {
// contains filtered or unexported fields
}
HarperDBProvider defines the provider implementation.
func (*HarperDBProvider) Configure ¶
func (p *HarperDBProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*HarperDBProvider) DataSources ¶
func (p *HarperDBProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*HarperDBProvider) Metadata ¶
func (p *HarperDBProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*HarperDBProvider) Resources ¶
func (p *HarperDBProvider) Resources(ctx context.Context) []func() resource.Resource
func (*HarperDBProvider) Schema ¶
func (p *HarperDBProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type HarperDBProviderModel ¶
type HarperDBProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` }
HarperDBProviderModel describes the provider data model.
type RoleResource ¶
type RoleResource struct {
// contains filtered or unexported fields
}
RoleResource defines the resource implementation.
func (*RoleResource) Configure ¶
func (r *RoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RoleResource) Create ¶
func (r *RoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RoleResource) Delete ¶
func (r *RoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RoleResource) ImportState ¶
func (r *RoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RoleResource) Metadata ¶
func (r *RoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RoleResource) Read ¶
func (r *RoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RoleResource) Schema ¶
func (r *RoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RoleResource) Update ¶
func (r *RoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RoleResourceModel ¶
type RoleResourceModel struct { ID types.String `tfsdk:"id"` // Derived from the resource-name Name types.String `tfsdk:"name"` // Role name SuperUser types.Bool `tfsdk:"super_user"` ClusterUser types.Bool `tfsdk:"cluster_user"` SchemaPermissions types.Map `tfsdk:"schema_permissions"` }
RoleResourceModel describes the resource data model.
type SchemaResource ¶
type SchemaResource struct {
// contains filtered or unexported fields
}
SchemaResource defines the resource implementation.
func (*SchemaResource) Configure ¶
func (r *SchemaResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SchemaResource) Create ¶
func (r *SchemaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SchemaResource) Delete ¶
func (r *SchemaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SchemaResource) ImportState ¶
func (r *SchemaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SchemaResource) Metadata ¶
func (r *SchemaResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SchemaResource) Read ¶
func (r *SchemaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SchemaResource) Schema ¶
func (r *SchemaResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SchemaResource) Update ¶
func (r *SchemaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SchemaResourceModel ¶
SchemaResourceModel describes the resource data model.
type TableResource ¶
type TableResource struct {
// contains filtered or unexported fields
}
TableResource defines the resource implementation.
func (*TableResource) Configure ¶
func (r *TableResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TableResource) Create ¶
func (r *TableResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TableResource) Delete ¶
func (r *TableResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TableResource) ImportState ¶
func (r *TableResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TableResource) Metadata ¶
func (r *TableResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TableResource) Read ¶
func (r *TableResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TableResource) Schema ¶
func (r *TableResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TableResource) Update ¶
func (r *TableResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TableResourceModel ¶
type TableResourceModel struct { ID types.String `tfsdk:"id"` Schema types.String `tfsdk:"schema"` Name types.String `tfsdk:"name"` HashAttribute types.String `tfsdk:"hash_attribute"` }
TableResourceModel describes the resource data model.
type UserResource ¶
type UserResource struct {
// contains filtered or unexported fields
}
UserResource defines the resource implementation.
func (*UserResource) Configure ¶
func (r *UserResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserResource) Create ¶
func (r *UserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UserResource) Delete ¶
func (r *UserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UserResource) ImportState ¶
func (r *UserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*UserResource) Metadata ¶
func (r *UserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UserResource) Read ¶
func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UserResource) Schema ¶
func (r *UserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*UserResource) Update ¶
func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.