Documentation ¶
Overview ¶
Package datasources implements example data sources.
Index ¶
- func NewExample() datasource.DataSource
- type Example
- func (d *Example) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *Example) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *Example) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *Example) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ExampleModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExample ¶
func NewExample() datasource.DataSource
Types ¶
type Example ¶
type Example struct {
// contains filtered or unexported fields
}
Example defines the data source implementation.
func (*Example) Configure ¶
func (d *Example) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*Example) Metadata ¶
func (d *Example) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*Example) Read ¶
func (d *Example) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*Example) Schema ¶
func (d *Example) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.