metadata

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-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 DisplayInfo

type DisplayInfo struct {
	ConnectivityCheck     *core.ConnectivityCheck `json:"ConnectivityCheck,omitempty"`
	Description           string                  `json:"Description,omitempty"`
	Label                 string                  `json:"Label,omitempty"`
	ListAPI               *ListAPIMetadata        `json:"ListApi,omitempty"`
	Options               *OptionsMetadata        `json:"Options,omitempty"`
	PropertyApplicability *PropertyApplicability  `json:"PropertyApplicability,omitempty"`
	ReadOnly              bool                    `json:"ReadOnly"`
	Required              bool                    `json:"Required"`
	ShowCopyToClipboard   bool                    `json:"ShowCopyToClipboard"`
}

func NewDisplayInfo

func NewDisplayInfo() *DisplayInfo

type ListAPIMetadata

type ListAPIMetadata struct {
	APIEndpoint string `json:"ApiEndpoint,omitempty"`
	SelectMode  string `json:"SelectMode,omitempty"`
}

func NewListAPIMetadata

func NewListAPIMetadata() *ListAPIMetadata

type Metadata

type Metadata struct {
	Description string          `json:"Description,omitempty"`
	Types       []*TypeMetadata `json:"Types"`
}

func NewMetadata

func NewMetadata() *Metadata

type OptionsMetadata

type OptionsMetadata struct {
	SelectMode string            `json:"SelectMode,omitempty"`
	Values     map[string]string `json:"Values,omitempty"`
}

func NewOptionsMetadata

func NewOptionsMetadata() *OptionsMetadata

type PropertyApplicability

type PropertyApplicability struct {
	DependsOnPropertyName  string      `json:"DependsOnPropertyName,omitempty"`
	DependsOnPropertyValue interface{} `json:"DependsOnPropertyValue,omitempty"`
	Mode                   string      `` /* 149-byte string literal not displayed */
}

func NewPropertyApplicability

func NewPropertyApplicability() *PropertyApplicability

func (PropertyApplicability) Validate

func (p PropertyApplicability) Validate() error

Validate checks the state of the property applicability and returns an error if invalid.

type PropertyMetadata

type PropertyMetadata struct {
	DisplayInfo *DisplayInfo `json:"DisplayInfo,omitempty"`
	Name        string       `json:"Name,omitempty"`
	Type        string       `json:"Type,omitempty"`
}

func NewPropertyMetadata

func NewPropertyMetadata() *PropertyMetadata

type TypeMetadata

type TypeMetadata struct {
	Name       string              `json:"Name,omitempty"`
	Properties []*PropertyMetadata `json:"Properties"`
}

func NewTypeMetadata

func NewTypeMetadata() *TypeMetadata

Jump to

Keyboard shortcuts

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