Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewExportDataSource() datasource.DataSource
- type Client
- type ExportDataSource
- func (d *ExportDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ExportDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (d *ExportDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ExportDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- type ExportDataSourceModel
- type PathValidator
- type Provider
- func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *Provider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *Provider) Resources(ctx context.Context) []func() resource.Resource
- type ProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExportDataSource ¶ added in v0.2.0
func NewExportDataSource() datasource.DataSource
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a workaround for some concurrency problems inside cue These are triggered i.e. when loading instances concurrently See https://github.com/cue-lang/cue/issues/460
type ExportDataSource ¶ added in v0.2.0
type ExportDataSource struct {
// contains filtered or unexported fields
}
ExportDataSource defines the data source implementation.
func (*ExportDataSource) Configure ¶ added in v0.2.0
func (d *ExportDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ExportDataSource) GetSchema ¶ added in v0.2.0
func (d *ExportDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*ExportDataSource) Metadata ¶ added in v0.2.0
func (d *ExportDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ExportDataSource) Read ¶ added in v0.2.0
func (d *ExportDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
type ExportDataSourceModel ¶ added in v0.2.0
type ExportDataSourceModel struct { Dir types.String `tfsdk:"dir"` Expr types.String `tfsdk:"expr"` ID types.String `tfsdk:"id"` Paths types.List `tfsdk:"paths"` Package types.String `tfsdk:"pkg"` Rendered types.String `tfsdk:"rendered"` Tags types.List `tfsdk:"tags"` Unified types.Bool `tfsdk:"unified"` }
ExportDataSourceModel describes the data source data model.
type PathValidator ¶ added in v0.2.0
type PathValidator struct{}
func NewPathValidator ¶ added in v0.2.0
func NewPathValidator() *PathValidator
func (*PathValidator) Description ¶ added in v0.2.0
func (v *PathValidator) Description(ctx context.Context) string
func (*PathValidator) MarkdownDescription ¶ added in v0.2.0
func (v *PathValidator) MarkdownDescription(ctx context.Context) string
func (*PathValidator) Validate ¶ added in v0.2.0
func (v *PathValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)
type Provider ¶ added in v0.2.0
type Provider struct {
// contains filtered or unexported fields
}
Provider defines the provider implementation.
func (*Provider) Configure ¶ added in v0.2.0
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*Provider) DataSources ¶ added in v0.2.0
func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*Provider) Metadata ¶ added in v0.2.0
func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
type ProviderModel ¶ added in v0.2.0
type ProviderModel struct{}
ProviderModel describes the provider data model.
Click to show internal directories.
Click to hide internal directories.