Help us shape the future of Go! Take the 2026 Go Developer Survey

overlay

package
v0.38.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Target      string                              `json:"target,omitempty" yaml:"target,omitempty"`
	Description string                              `json:"description,omitempty" yaml:"description,omitempty"`
	Update      *yaml.Node                          `json:"update,omitempty" yaml:"update,omitempty"`
	Remove      bool                                `json:"remove,omitempty" yaml:"remove,omitempty"`
	Copy        string                              `json:"copy,omitempty" yaml:"copy,omitempty"`
	Extensions  *orderedmap.Map[string, *yaml.Node] `json:"-" yaml:"-"`
	// contains filtered or unexported fields
}

Action represents a high-level Overlay Action Object. https://spec.openapis.org/overlay/v1.1.0#action-object

func NewAction

func NewAction(action *low.Action) *Action

NewAction creates a new high-level Action instance from a low-level one.

func (*Action) GoLow

func (a *Action) GoLow() *low.Action

GoLow returns the low-level Action instance used to create the high-level one.

func (*Action) GoLowUntyped

func (a *Action) GoLowUntyped() any

GoLowUntyped returns the low-level Action instance with no type.

func (*Action) MarshalYAML

func (a *Action) MarshalYAML() (any, error)

MarshalYAML creates a ready to render YAML representation of the Action object.

func (*Action) Render

func (a *Action) Render() ([]byte, error)

Render returns a YAML representation of the Action object as a byte slice.

type Info

type Info struct {
	Title       string                              `json:"title,omitempty" yaml:"title,omitempty"`
	Version     string                              `json:"version,omitempty" yaml:"version,omitempty"`
	Description string                              `json:"description,omitempty" yaml:"description,omitempty"`
	Extensions  *orderedmap.Map[string, *yaml.Node] `json:"-" yaml:"-"`
	// contains filtered or unexported fields
}

Info represents a high-level Overlay Info Object. https://spec.openapis.org/overlay/v1.1.0#info-object

func NewInfo

func NewInfo(info *low.Info) *Info

NewInfo creates a new high-level Info instance from a low-level one.

func (*Info) GoLow

func (i *Info) GoLow() *low.Info

GoLow returns the low-level Info instance used to create the high-level one.

func (*Info) GoLowUntyped

func (i *Info) GoLowUntyped() any

GoLowUntyped returns the low-level Info instance with no type.

func (*Info) MarshalYAML

func (i *Info) MarshalYAML() (any, error)

MarshalYAML creates a ready to render YAML representation of the Info object.

func (*Info) Render

func (i *Info) Render() ([]byte, error)

Render returns a YAML representation of the Info object as a byte slice.

type Overlay

type Overlay struct {
	Overlay    string                              `json:"overlay,omitempty" yaml:"overlay,omitempty"`
	Info       *Info                               `json:"info,omitempty" yaml:"info,omitempty"`
	Extends    string                              `json:"extends,omitempty" yaml:"extends,omitempty"`
	Actions    []*Action                           `json:"actions,omitempty" yaml:"actions,omitempty"`
	Extensions *orderedmap.Map[string, *yaml.Node] `json:"-" yaml:"-"`
	// contains filtered or unexported fields
}

Overlay represents a high-level OpenAPI Overlay document. https://spec.openapis.org/overlay/v1.0.0

func NewOverlay

func NewOverlay(overlay *low.Overlay) *Overlay

NewOverlay creates a new high-level Overlay instance from a low-level one.

func (*Overlay) GoLow

func (o *Overlay) GoLow() *low.Overlay

GoLow returns the low-level Overlay instance used to create the high-level one.

func (*Overlay) GoLowUntyped

func (o *Overlay) GoLowUntyped() any

GoLowUntyped returns the low-level Overlay instance with no type.

func (*Overlay) MarshalYAML

func (o *Overlay) MarshalYAML() (interface{}, error)

MarshalYAML creates a ready to render YAML representation of the Overlay object.

func (*Overlay) Render

func (o *Overlay) Render() ([]byte, error)

Render returns a YAML representation of the Overlay object as a byte slice.

Jump to

Keyboard shortcuts

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