types

package
v0.0.0-...-ffc2279 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

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

This section is empty.

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     *float64                    `yaml:"minimum,omitempty"`
	Maximum     *float64                    `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"`
}

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.

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.

Jump to

Keyboard shortcuts

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