provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

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

func (*Client) Load

func (c *Client) Load(ctx *cue.Context, args []string, cfg *load.Config) ([]cue.Value, error)

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 (*ExportDataSource) GetSchema added in v0.2.0

func (*ExportDataSource) Metadata added in v0.2.0

func (*ExportDataSource) Read added in v0.2.0

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

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 (*Provider) DataSources added in v0.2.0

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

func (*Provider) GetSchema added in v0.2.0

func (p *Provider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func (*Provider) Metadata added in v0.2.0

func (*Provider) Resources added in v0.2.0

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

type ProviderModel added in v0.2.0

type ProviderModel struct{}

ProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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