providerpb

package
v0.0.0-...-42dd4d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string, exec ExampleExec) func() provider.Provider

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 (*ExampleProvider) DataSources

func (p *ExampleProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*ExampleProvider) MetaSchema

func (*ExampleProvider) Metadata

func (*ExampleProvider) Resources

func (p *ExampleProvider) Resources(ctx context.Context) []func() resource.Resource

func (*ExampleProvider) Schema

func (*ExampleProvider) ValidateConfig

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 (*GroupResourceResource) Create

func (*GroupResourceResource) Delete

func (*GroupResourceResource) ImportState

func (*GroupResourceResource) Metadata

func (*GroupResourceResource) ModifyPlan

func (*GroupResourceResource) Read

func (*GroupResourceResource) Schema

func (*GroupResourceResource) Update

func (*GroupResourceResource) UpgradeState

func (*GroupResourceResource) ValidateConfig

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 (*GroupsDataSource) Metadata

func (*GroupsDataSource) Read

func (*GroupsDataSource) Schema

func (*GroupsDataSource) ValidateConfig

type GroupsDataSourceExec

type GroupsDataSourceExec interface {
	dtsrc.Datasource[*pb.Groups]
	SetGroupServiceClient(pb.GroupServiceClient)
}

type UserResourceExec

type UserResourceExec interface {
	rsrc.Resource[*pb.User]
	SetUserServiceClient(pb.UserServiceClient)
}

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 (*UserResourceResource) Create

func (*UserResourceResource) Delete

func (*UserResourceResource) ImportState

func (*UserResourceResource) Metadata

func (*UserResourceResource) ModifyPlan

func (*UserResourceResource) Read

func (*UserResourceResource) Schema

func (*UserResourceResource) Update

func (*UserResourceResource) UpgradeState

func (*UserResourceResource) ValidateConfig

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 (*UsersDataSource) Metadata

func (*UsersDataSource) Read

func (*UsersDataSource) Schema

func (*UsersDataSource) ValidateConfig

type UsersDataSourceExec

type UsersDataSourceExec interface {
	dtsrc.Datasource[*pb.Users]
	SetUserServiceClient(pb.UserServiceClient)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL