Documentation ¶
Overview ¶
Package configvalidator provides the generic configuration validator implementations for the exported datasourcevalidator, providervalidator, and resourcevalidator packages.
Index ¶
- type AtLeastOneOfValidator
- func (v AtLeastOneOfValidator) Description(ctx context.Context) string
- func (v AtLeastOneOfValidator) MarkdownDescription(_ context.Context) string
- func (v AtLeastOneOfValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
- func (v AtLeastOneOfValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- func (v AtLeastOneOfValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, ...)
- func (v AtLeastOneOfValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ConflictingValidator
- func (v ConflictingValidator) Description(ctx context.Context) string
- func (v ConflictingValidator) MarkdownDescription(_ context.Context) string
- func (v ConflictingValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
- func (v ConflictingValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- func (v ConflictingValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, ...)
- func (v ConflictingValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ExactlyOneOfValidator
- func (v ExactlyOneOfValidator) Description(ctx context.Context) string
- func (v ExactlyOneOfValidator) MarkdownDescription(_ context.Context) string
- func (v ExactlyOneOfValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
- func (v ExactlyOneOfValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- func (v ExactlyOneOfValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, ...)
- func (v ExactlyOneOfValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type RequiredTogetherValidator
- func (v RequiredTogetherValidator) Description(ctx context.Context) string
- func (v RequiredTogetherValidator) MarkdownDescription(_ context.Context) string
- func (v RequiredTogetherValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
- func (v RequiredTogetherValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, ...)
- func (v RequiredTogetherValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, ...)
- func (v RequiredTogetherValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtLeastOneOfValidator ¶
type AtLeastOneOfValidator struct {
PathExpressions path.Expressions
}
AtLeastOneOfValidator is the underlying struct implementing AtLeastOneOf.
func (AtLeastOneOfValidator) Description ¶
func (v AtLeastOneOfValidator) Description(ctx context.Context) string
func (AtLeastOneOfValidator) MarkdownDescription ¶
func (v AtLeastOneOfValidator) MarkdownDescription(_ context.Context) string
func (AtLeastOneOfValidator) Validate ¶
func (v AtLeastOneOfValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
func (AtLeastOneOfValidator) ValidateDataSource ¶
func (v AtLeastOneOfValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
func (AtLeastOneOfValidator) ValidateProvider ¶
func (v AtLeastOneOfValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
func (AtLeastOneOfValidator) ValidateResource ¶
func (v AtLeastOneOfValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ConflictingValidator ¶
type ConflictingValidator struct {
PathExpressions path.Expressions
}
ConflictingValidator is the underlying struct implementing ConflictsWith.
func (ConflictingValidator) Description ¶
func (v ConflictingValidator) Description(ctx context.Context) string
func (ConflictingValidator) MarkdownDescription ¶
func (v ConflictingValidator) MarkdownDescription(_ context.Context) string
func (ConflictingValidator) Validate ¶
func (v ConflictingValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
func (ConflictingValidator) ValidateDataSource ¶
func (v ConflictingValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
func (ConflictingValidator) ValidateProvider ¶
func (v ConflictingValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
func (ConflictingValidator) ValidateResource ¶
func (v ConflictingValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ExactlyOneOfValidator ¶
type ExactlyOneOfValidator struct {
PathExpressions path.Expressions
}
ExactlyOneOfValidator is the underlying struct implementing ExactlyOneOf.
func (ExactlyOneOfValidator) Description ¶
func (v ExactlyOneOfValidator) Description(ctx context.Context) string
func (ExactlyOneOfValidator) MarkdownDescription ¶
func (v ExactlyOneOfValidator) MarkdownDescription(_ context.Context) string
func (ExactlyOneOfValidator) Validate ¶
func (v ExactlyOneOfValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
func (ExactlyOneOfValidator) ValidateDataSource ¶
func (v ExactlyOneOfValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
func (ExactlyOneOfValidator) ValidateProvider ¶
func (v ExactlyOneOfValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
func (ExactlyOneOfValidator) ValidateResource ¶
func (v ExactlyOneOfValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type RequiredTogetherValidator ¶
type RequiredTogetherValidator struct {
PathExpressions path.Expressions
}
RequiredTogetherValidator is the underlying struct implementing RequiredTogether.
func (RequiredTogetherValidator) Description ¶
func (v RequiredTogetherValidator) Description(ctx context.Context) string
func (RequiredTogetherValidator) MarkdownDescription ¶
func (v RequiredTogetherValidator) MarkdownDescription(_ context.Context) string
func (RequiredTogetherValidator) Validate ¶
func (v RequiredTogetherValidator) Validate(ctx context.Context, config tfsdk.Config) diag.Diagnostics
func (RequiredTogetherValidator) ValidateDataSource ¶
func (v RequiredTogetherValidator) ValidateDataSource(ctx context.Context, req datasource.ValidateConfigRequest, resp *datasource.ValidateConfigResponse)
func (RequiredTogetherValidator) ValidateProvider ¶
func (v RequiredTogetherValidator) ValidateProvider(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
func (RequiredTogetherValidator) ValidateResource ¶
func (v RequiredTogetherValidator) ValidateResource(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
Click to show internal directories.
Click to hide internal directories.