config

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIOperation

type APIOperation struct {
	Path   string `yaml:"path"`
	Method string `yaml:"method"`
}

type Computability

type Computability struct {
	Optional bool `yaml:"optional"`
	Computed bool `yaml:"computed"`
	Required bool `yaml:"required"`
}

type Config

type Config struct {
	Resources map[string]Resource `yaml:"resources"`
}

func ParseGenConfigYAML

func ParseGenConfigYAML(path string) (*Config, error)

type Override

type Override struct {
	Computability *Computability `yaml:"computability,omitempty"`
	Description   string         `yaml:"description"`
	PlanModifiers []PlanModifier `yaml:"plan_modifiers"`
	Validators    []Validator    `yaml:"validators"`
}

type PlanModifier

type PlanModifier struct {
	Definition string   `yaml:"definition"`
	Imports    []string `yaml:"imports"`
}

type Resource

type Resource struct {
	Create        *APIOperation `yaml:"create"`
	Read          *APIOperation `yaml:"read"`
	Update        *APIOperation `yaml:"update"`
	Delete        *APIOperation `yaml:"delete"`
	SchemaOptions SchemaOptions `yaml:"schema"`
}

type SchemaOptions

type SchemaOptions struct {
	Ignores   []string            `yaml:"ignores"`
	Aliases   map[string]string   `yaml:"aliases"`
	Overrides map[string]Override `yaml:"overrides"`
	Timeouts  []string            `yaml:"timeouts"`
}

type Validator

type Validator struct {
	Definition string   `yaml:"definition"`
	Imports    []string `yaml:"imports"`
}

Jump to

Keyboard shortcuts

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