Documentation ¶
Index ¶
- func New(version string, exec ExampleExec) func() provider.Provider
- func NewGroupResource(exec GroupResourceExec) func() resource.Resource
- func NewGroupsDataSource(exec GroupsDataSourceExec) func() datasource.DataSource
- func NewUserResource(exec UserResourceExec) func() resource.Resource
- func NewUsersDataSource(exec UsersDataSourceExec) func() datasource.DataSource
- type ExampleExec
- type ExampleProvider
- func (p *ExampleProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
- func (p *ExampleProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ExampleProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ExampleProvider) MetaSchema(ctx context.Context, req provider.MetaSchemaRequest, ...)
- func (p *ExampleProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ExampleProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ExampleProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- func (p *ExampleProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, ...)
- type GroupResourceExec
- type GroupResourceResource
- func (r *GroupResourceResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
- func (r *GroupResourceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *GroupResourceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *GroupResourceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *GroupResourceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GroupResourceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *GroupResourceResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *GroupResourceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GroupResourceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *GroupResourceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *GroupResourceResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- func (r *GroupResourceResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type GroupsDataSource
- func (d *GroupsDataSource) ConfigValidators(ctx context.Context) []datasource.ConfigValidator
- func (d *GroupsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *GroupsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *GroupsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *GroupsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- func (d *GroupsDataSource) ValidateConfig(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- type GroupsDataSourceExec
- type UserResourceExec
- type UserResourceResource
- func (r *UserResourceResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
- func (r *UserResourceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UserResourceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserResourceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserResourceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserResourceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UserResourceResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *UserResourceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserResourceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserResourceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *UserResourceResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- func (r *UserResourceResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type UsersDataSource
- func (d *UsersDataSource) ConfigValidators(ctx context.Context) []datasource.ConfigValidator
- func (d *UsersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *UsersDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *UsersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *UsersDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- func (d *UsersDataSource) ValidateConfig(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- type UsersDataSourceExec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGroupResource ¶
func NewGroupResource(exec GroupResourceExec) func() resource.Resource
func NewGroupsDataSource ¶
func NewGroupsDataSource(exec GroupsDataSourceExec) func() datasource.DataSource
func NewUserResource ¶
func NewUserResource(exec UserResourceExec) func() resource.Resource
func NewUsersDataSource ¶
func NewUsersDataSource(exec UsersDataSourceExec) func() datasource.DataSource
Types ¶
type ExampleExec ¶
type ExampleExec interface { prvdr.Provider prvdr.CanConfigureGrpc[*pb.ProviderModel] }
type ExampleProvider ¶
type ExampleProvider struct {
// contains filtered or unexported fields
}
func (*ExampleProvider) ConfigValidators ¶
func (p *ExampleProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
func (*ExampleProvider) Configure ¶
func (p *ExampleProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ExampleProvider) DataSources ¶
func (p *ExampleProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ExampleProvider) MetaSchema ¶
func (p *ExampleProvider) MetaSchema(ctx context.Context, req provider.MetaSchemaRequest, resp *provider.MetaSchemaResponse)
func (*ExampleProvider) Metadata ¶
func (p *ExampleProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ExampleProvider) Resources ¶
func (p *ExampleProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ExampleProvider) Schema ¶
func (p *ExampleProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
func (*ExampleProvider) ValidateConfig ¶
func (p *ExampleProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
type GroupResourceExec ¶
type GroupResourceExec interface { rsrc.Resource[*pb.Group] SetGroupServiceClient(pb.GroupServiceClient) SetUserServiceClient(pb.UserServiceClient) }
type GroupResourceResource ¶
type GroupResourceResource struct {
// contains filtered or unexported fields
}
func (*GroupResourceResource) ConfigValidators ¶
func (r *GroupResourceResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
func (*GroupResourceResource) Configure ¶
func (r *GroupResourceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GroupResourceResource) Create ¶
func (r *GroupResourceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GroupResourceResource) Delete ¶
func (r *GroupResourceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GroupResourceResource) ImportState ¶
func (r *GroupResourceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GroupResourceResource) Metadata ¶
func (r *GroupResourceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GroupResourceResource) ModifyPlan ¶
func (r *GroupResourceResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*GroupResourceResource) Read ¶
func (r *GroupResourceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GroupResourceResource) Schema ¶
func (r *GroupResourceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GroupResourceResource) Update ¶
func (r *GroupResourceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*GroupResourceResource) UpgradeState ¶
func (r *GroupResourceResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
func (*GroupResourceResource) ValidateConfig ¶
func (r *GroupResourceResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type GroupsDataSource ¶
type GroupsDataSource struct {
// contains filtered or unexported fields
}
func (*GroupsDataSource) ConfigValidators ¶
func (d *GroupsDataSource) ConfigValidators(ctx context.Context) []datasource.ConfigValidator
func (*GroupsDataSource) Configure ¶
func (d *GroupsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*GroupsDataSource) Metadata ¶
func (d *GroupsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*GroupsDataSource) Read ¶
func (d *GroupsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*GroupsDataSource) Schema ¶
func (d *GroupsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
func (*GroupsDataSource) ValidateConfig ¶
func (d *GroupsDataSource) ValidateConfig(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
type GroupsDataSourceExec ¶
type GroupsDataSourceExec interface { dtsrc.Datasource[*pb.Groups] SetGroupServiceClient(pb.GroupServiceClient) }
type UserResourceExec ¶
type UserResourceResource ¶
type UserResourceResource struct {
// contains filtered or unexported fields
}
func (*UserResourceResource) ConfigValidators ¶
func (r *UserResourceResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
func (*UserResourceResource) Configure ¶
func (r *UserResourceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserResourceResource) Create ¶
func (r *UserResourceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UserResourceResource) Delete ¶
func (r *UserResourceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UserResourceResource) ImportState ¶
func (r *UserResourceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*UserResourceResource) Metadata ¶
func (r *UserResourceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UserResourceResource) ModifyPlan ¶
func (r *UserResourceResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*UserResourceResource) Read ¶
func (r *UserResourceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UserResourceResource) Schema ¶
func (r *UserResourceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*UserResourceResource) Update ¶
func (r *UserResourceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*UserResourceResource) UpgradeState ¶
func (r *UserResourceResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
func (*UserResourceResource) ValidateConfig ¶
func (r *UserResourceResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type UsersDataSource ¶
type UsersDataSource struct {
// contains filtered or unexported fields
}
func (*UsersDataSource) ConfigValidators ¶
func (d *UsersDataSource) ConfigValidators(ctx context.Context) []datasource.ConfigValidator
func (*UsersDataSource) Configure ¶
func (d *UsersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*UsersDataSource) Metadata ¶
func (d *UsersDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*UsersDataSource) Read ¶
func (d *UsersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*UsersDataSource) Schema ¶
func (d *UsersDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
func (*UsersDataSource) ValidateConfig ¶
func (d *UsersDataSource) ValidateConfig(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
type UsersDataSourceExec ¶
type UsersDataSourceExec interface { dtsrc.Datasource[*pb.Users] SetUserServiceClient(pb.UserServiceClient) }
Click to show internal directories.
Click to hide internal directories.