Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewConventionDataSource() datasource.DataSource
- func NewGenerateNameFunction() function.Function
- type Convention
- type ConventionDataSource
- func (r *ConventionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (r ConventionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r ConventionDataSource) Schema(_ context.Context, req datasource.SchemaRequest, ...)
- type ConventionDataSourceData
- type ConventionVariable
- type DesignationProvider
- func (p *DesignationProvider) Configure(_ context.Context, _ provider.ConfigureRequest, _ *provider.ConfigureResponse)
- func (p *DesignationProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *DesignationProvider) Functions(_ context.Context) []func() function.Function
- func (p *DesignationProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *DesignationProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *DesignationProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type DesignationProviderModel
- type GenerateNameFunction
- func (f *GenerateNameFunction) Definition(ctx context.Context, req function.DefinitionRequest, ...)
- func (f *GenerateNameFunction) Metadata(ctx context.Context, req function.MetadataRequest, ...)
- func (f *GenerateNameFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConventionDataSource ¶ added in v1.0.0
func NewConventionDataSource() datasource.DataSource
func NewGenerateNameFunction ¶ added in v1.0.0
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 (r *ConventionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (ConventionDataSource) Read ¶ added in v1.0.0
func (r ConventionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read resource information
func (ConventionDataSource) Schema ¶ added in v1.0.0
func (r ConventionDataSource) Schema(_ context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (p *DesignationProvider) Configure(_ context.Context, _ provider.ConfigureRequest, _ *provider.ConfigureResponse)
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 (p *DesignationProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
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
func (p *DesignationProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
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 (f *GenerateNameFunction) Definition(ctx context.Context, req function.DefinitionRequest, resp *function.DefinitionResponse)
func (*GenerateNameFunction) Metadata ¶ added in v1.0.0
func (f *GenerateNameFunction) Metadata(ctx context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (*GenerateNameFunction) Run ¶ added in v1.0.0
func (f *GenerateNameFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
Click to show internal directories.
Click to hide internal directories.