Documentation
¶
Overview ¶
Package types contains the types of the application.
Index ¶
Constants ¶
View Source
const ( // KeyServiceTypes is the key for the service types. KeyServiceTypes int = iota // KeyIntegrationTypes is the key for the integration types. KeyIntegrationTypes // KeyIntegrationEndpointTypes is the key for the integration endpoint types. KeyIntegrationEndpointTypes )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffResult ¶
type DiffResult map[int]map[string]UserConfigSchema
DiffResult represents the result of a diff.
type GenerationResult ¶
type GenerationResult map[int]map[string]UserConfigSchema
GenerationResult represents the result of a generation.
type ReadResult ¶
type ReadResult map[int]map[string]UserConfigSchema
ReadResult represents the result of a read.
type UserConfigSchema ¶
type UserConfigSchema struct {
UserConfigSchemaDeprecationInfo `yaml:",inline"`
Title string `yaml:"title,omitempty"`
Description string `yaml:"description,omitempty"`
Type interface{} `yaml:"type,omitempty"`
Default interface{} `yaml:"default,omitempty"`
Required []string `yaml:"required,omitempty"`
Properties map[string]UserConfigSchema `yaml:"properties,omitempty"`
Items *UserConfigSchema `yaml:"items,omitempty"`
OneOf []UserConfigSchema `yaml:"one_of,omitempty"`
Enum []UserConfigSchemaEnumValue `yaml:"enum,omitempty"`
Minimum *json.Number `yaml:"minimum,omitempty"`
Maximum *json.Number `yaml:"maximum,omitempty"`
MinLength *int `yaml:"min_length,omitempty"`
MaxLength *int `yaml:"max_length,omitempty"`
MaxItems *int `yaml:"max_items,omitempty"`
CreateOnly bool `yaml:"create_only,omitempty"`
Pattern string `yaml:"pattern,omitempty"`
Example interface{} `yaml:"example,omitempty"`
UserError string `yaml:"user_error,omitempty"`
Secure bool `yaml:"_secure,omitempty"`
Nullable bool `yaml:"nullable,omitempty"`
}
UserConfigSchema represents an output schema for the user config.
type UserConfigSchemaDeprecationInfo ¶
type UserConfigSchemaDeprecationInfo struct {
IsDeprecated bool `yaml:"is_deprecated,omitempty"`
DeprecationNotice string `yaml:"deprecation_notice,omitempty"`
}
UserConfigSchemaDeprecationInfo is a struct that contains the deprecation info for a user config schema entry.
func (*UserConfigSchemaDeprecationInfo) Deprecate ¶ added in v1.97.0
func (u *UserConfigSchemaDeprecationInfo) Deprecate(msg string)
Deprecate sets the deprecation info for a user config schema entry.
type UserConfigSchemaEnumValue ¶
type UserConfigSchemaEnumValue struct {
UserConfigSchemaDeprecationInfo `yaml:",inline"`
Value interface{} `yaml:"value"`
}
UserConfigSchemaEnumValue is a struct that contains the enum value for a user config schema entry.
Click to show internal directories.
Click to hide internal directories.