spec

package
v0.0.0-...-37076e9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr struct {
	Type             string           `json:"type" yaml:"type"`
	Maximum          *float64         `json:"maximum" yaml:"maximum"`
	Minimum          *float64         `json:"minimum" yaml:"minimum"`
	ExclusiveMaximum *bool            `json:"exclusiveMaximum" yaml:"exclusiveMaxmium"`
	ExclusiveMinimum *bool            `json:"exclusiveMinimum" yaml:"exclusiveMinimum"`
	MaxLength        *int             `json:"maxLength" yaml:"maxLength"`
	MinLength        *int             `json:"minLength" yaml:"minLength"`
	Pattern          *string          `json:"pattern" yaml:"pattern"`
	MaxItems         *int             `json:"maxItems" yaml:"maxItems"`
	MinItems         *int             `json:"minItems" yaml:"minItems"`
	Required         *[]string        `json:"required" yaml:"required"`
	Enum             *[]interface{}   `json:"enum" yaml:"enum"`
	Items            *Attr            `json:"items" yaml:"items"`
	Properties       *map[string]Attr `json:"properties" yaml:"properties"`
	Description      *string          `json:"description" yaml:"description"`
	Format           *string          `json:"format" yaml:"format"`
	Default          *interface{}     `json:"default" yaml:"default"`
	Auto             *bool            `json:"auto" yaml:"auto"`
}

Attr is

func GetDefaultIDAttr

func GetDefaultIDAttr() Attr

GetDefaultIDAttr returns the default ID attribute for events

func GetDefaultSourceAttr

func GetDefaultSourceAttr() Attr

GetDefaultSourceAttr returns the default source attribute for events

func GetDefaultSpecVersionAttr

func GetDefaultSpecVersionAttr() Attr

GetDefaultSpecVersionAttr returns the default specversion attribute for events

func GetDefaultTypeAttr

func GetDefaultTypeAttr() Attr

GetDefaultTypeAttr returns the default type attribute for events

type CEGenSpec

type CEGenSpec struct {
	Events   map[string]Event `json:"events" yaml:"events"`
	Metadata genspec.Metadata `json:"metadata" yaml:"metadata"`
}

CEGenSpec is

func (*CEGenSpec) Parse

func (spec *CEGenSpec) Parse() ([]genspec.Mod, genspec.Metadata)

Parse is

type Event

type Event struct {
	Attributes map[string]Attr `json:"attributes" yaml:"attributes"`
	Required   []string        `json:"required" yaml:"required"`
}

Event is

Jump to

Keyboard shortcuts

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