overrides

package
v0.0.0-...-b710084 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldOverridesInclude

type FieldOverridesInclude struct {
	// Omit indicates that this field cannot be overridden at all.
	Omit bool `marker:",optional"`
	// OmmitInPlugin indicates that this field cannot be overridden in a devfile plugin.
	OmitInPlugin bool `marker:",optional"`
	// Description indicates the description that should be added as Go documentation on the generated structs.
	Description string `marker:",optional"`
}

FieldOverridesInclude drives whether a field should be overriden in devfile parent or plugins

func (FieldOverridesInclude) Help

type Generator

type Generator struct {

	// IsForPluginOverrides indicates that the generated code should be done for plugin overrides.
	// When false, the parent overrides are generated
	IsForPluginOverrides bool `marker:"isForPluginOverrides,optional"`
	// contains filtered or unexported fields
}

Generator generates additional GO code for the overriding of elements in devfile parent or plugins.

func (Generator) CheckFilter

func (Generator) CheckFilter() loader.NodeFilter

func (Generator) Generate

func (g Generator) Generate(ctx *genall.GenerationContext) error

Generate generates the artifacts

func (Generator) Help

func (Generator) RegisterMarkers

func (Generator) RegisterMarkers(into *markers.Registry) error

RegisterMarkers registers the markers of the Generator

Jump to

Keyboard shortcuts

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