requestSchemas

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schema

type Schema struct {
	SchemaVersion string `yaml:"schemaVersion"`
	SchemaName    string `yaml:"schemaName"`
	Enabled       bool   `yaml:"enabled"`
	Actions       []struct {
		Name            string `yaml:"name"`
		Description     string `yaml:"description"`
		Enabled         bool   `yaml:"enabled"`
		Type            string `yaml:"type"`
		TargetComponent string `yaml:"targetComponent"`
		MinimumRole     string `yaml:"minimumRole"`
		Parameters      struct {
			Required []struct {
				Name          string `yaml:"name"`
				Description   string `yaml:"description"`
				ParameterType string `yaml:"parameterType"`
				DefaultValue  string `yaml:"defaultValue"`
			} `yaml:"required"`
			Optional []struct {
				Name          string `yaml:"name"`
				Description   string `yaml:"description"`
				ParameterType string `yaml:"parameterType"`
				DefaultValue  string `yaml:"defaultValue"`
			} `yaml:"optional"`
		} `yaml:"parameters"`
	} `yaml:"actions"`
}

func (*Schema) GetSchema

func (schema *Schema) GetSchema(requestSchemaPath string) *Schema

Jump to

Keyboard shortcuts

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