provider

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 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 NewConventionDataSource added in v1.0.0

func NewConventionDataSource() datasource.DataSource

func NewGenerateNameFunction added in v1.0.0

func NewGenerateNameFunction() function.Function

With the function.Function implementation

Types

type Convention

type Convention struct {
	Definition string               `json:"definition"`
	Variables  []ConventionVariable `json:"variables"`
}

Convention contains the validated convention

type ConventionDataSource added in v1.0.0

type ConventionDataSource struct{}

func (*ConventionDataSource) Metadata added in v1.0.0

func (ConventionDataSource) Read added in v1.0.0

Read resource information

func (ConventionDataSource) Schema added in v1.0.0

Schema returns Convention Resource schema

type ConventionDataSourceData added in v1.0.0

type ConventionDataSourceData struct {
	ID         types.String `tfsdk:"id"`
	Definition types.String `tfsdk:"definition"`
	Variables  []Variable   `tfsdk:"variables"`
	Convention types.String `tfsdk:"convention"`
}

ConventionDataSourceData schema struct

type ConventionVariable added in v0.3.4

type ConventionVariable struct {
	Name      string `json:"name"`
	Default   string `json:"default"`
	MaxLength string `json:"max_length"`
}

ConventionVariable -

type DesignationProvider added in v0.3.4

type DesignationProvider struct {
	// contains filtered or unexported fields
}

DesignationProvider satisfies the provider.Provider interface and usually is included with all Resource and DataSource implementations.

func (*DesignationProvider) Configure added in v0.3.4

func (*DesignationProvider) DataSources added in v0.3.4

func (p *DesignationProvider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources - Defines provider data sources

func (*DesignationProvider) Functions added in v1.0.0

func (p *DesignationProvider) Functions(_ context.Context) []func() function.Function

Functions - Defines provider functions

func (*DesignationProvider) Metadata added in v0.3.4

func (*DesignationProvider) Resources added in v0.3.4

func (p *DesignationProvider) Resources(_ context.Context) []func() resource.Resource

Resources - Defines provider resources

func (*DesignationProvider) Schema added in v0.3.4

Schema defines the arguments and attributes of this provider

type DesignationProviderModel added in v0.3.4

type DesignationProviderModel struct{}

DesignationProviderModel describes the provider data model.

type GenerateNameFunction added in v1.0.0

type GenerateNameFunction struct{}

func (*GenerateNameFunction) Definition added in v1.0.0

func (*GenerateNameFunction) Metadata added in v1.0.0

func (*GenerateNameFunction) Run added in v1.0.0

type Variable

type Variable struct {
	Name      types.String `tfsdk:"name"`
	Default   types.String `tfsdk:"default"`
	MaxLength types.Int64  `tfsdk:"max_length"`
}

Variable -

Jump to

Keyboard shortcuts

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