Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Languages = []string{
"Unknown",
"English",
"French",
"Spanish",
"German",
"Italian",
"Danish",
"Dutch",
"Japanese",
"Icelandic",
"Chinese",
"Russian",
"Polish",
"Vietnamese",
"Swedish",
"Norwegian",
"Finnish",
"Turkish",
"Portuguese",
"Flemish",
"Greek",
"Korean",
"Hungarian",
"Hebrew",
"Lithuanian",
"Czech",
"Arabic",
"Hindi",
"Bulgarian",
"Malayalam",
"Ukrainian",
}
Languages is the available language list. var Languages, _ = GetLanguages().
Functions ¶
func GetLanguageID ¶
GetLanguageID retrieve language ID of a given language.
func GetLanguages ¶
GetLanguages pull languages from Sonarr source code and converts it to slice. using static slice to avoid github dependency.
Types ¶
type StringLowercaseValidator ¶
type StringLowercaseValidator struct{}
func StringLowercase ¶
func StringLowercase() StringLowercaseValidator
StringLowercase checks that a string is lowercase.
func (StringLowercaseValidator) Description ¶
func (v StringLowercaseValidator) Description(ctx context.Context) string
Description returns a plain text description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringLowercaseValidator) MarkdownDescription ¶
func (v StringLowercaseValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringLowercaseValidator) Validate ¶
func (v StringLowercaseValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.
type StringMatchValidator ¶
type StringMatchValidator struct {
Slice []string
}
func StringMatch ¶
func StringMatch(match []string) StringMatchValidator
StringMatch check that a string is contained in a given slice.
func (StringMatchValidator) Description ¶
func (v StringMatchValidator) Description(ctx context.Context) string
Description returns a plain text description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringMatchValidator) MarkdownDescription ¶
func (v StringMatchValidator) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.
func (StringMatchValidator) Validate ¶
func (v StringMatchValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)
Validate runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.