Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewContextDataSource() datasource.DataSource
- type ContextDataSource
- type Descriptor
- type MyProvider
- func (p *MyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *MyProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *MyProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (p *MyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *MyProvider) Resources(ctx context.Context) []func() resource.Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextDataSource ¶
func NewContextDataSource() datasource.DataSource
Types ¶
type ContextDataSource ¶
type ContextDataSource struct{}
func (*ContextDataSource) GetSchema ¶
func (d *ContextDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*ContextDataSource) Metadata ¶
func (d *ContextDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ContextDataSource) Read ¶
func (d *ContextDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
type Descriptor ¶
type MyProvider ¶
type MyProvider struct {
// contains filtered or unexported fields
}
func (*MyProvider) Configure ¶
func (p *MyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*MyProvider) DataSources ¶
func (p *MyProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*MyProvider) GetSchema ¶
func (p *MyProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*MyProvider) Metadata ¶
func (p *MyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
Click to show internal directories.
Click to hide internal directories.