v1

package
v6.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocatorTypeAuto   = LocatorType("auto")
	LocatorTypeRemote = LocatorType("remote")
	LocatorTypeYAML   = LocatorType("yaml")
	LocatorTypeIRFile = LocatorType("ir-file")
)

Variables

This section is empty.

Functions

func UpgradeConfig

func UpgradeConfig(cfgBytes []byte) ([]byte, error)

Types

type ConjurePluginConfig

type ConjurePluginConfig struct {
	versionedconfig.ConfigWithVersion `yaml:",inline,omitempty"`
	ProjectConfigs                    map[string]SingleConjureConfig `yaml:"projects"`
}

type IRLocatorConfig

type IRLocatorConfig struct {
	Type    LocatorType `yaml:"type"`
	Locator string      `yaml:"locator"`
}

IRLocatorConfig is configuration that specifies a locator. It can be specified as a YAML string or as a full YAML object. If it is specified as a YAML string, then the string is used as the value of "Locator" and LocatorTypeAuto is used as the value of the type.

func (*IRLocatorConfig) UnmarshalYAML

func (cfg *IRLocatorConfig) UnmarshalYAML(unmarshal func(interface{}) error) error

type LocatorType

type LocatorType string

type SingleConjureConfig

type SingleConjureConfig struct {
	OutputDir string          `yaml:"output-dir"`
	IRLocator IRLocatorConfig `yaml:"ir-locator"`
	// Publish specifies whether or not the IR specified by this project should be included in the publish operation.
	// If this value is not explicitly specified in configuration, it is treated as "true" for YAML sources of IR and
	// "false" for all other sources.
	Publish *bool `yaml:"publish"`
	// Server indicates if we will generate server code. Currently this is behind a feature flag and is subject to change.
	Server bool `yaml:"server,omitempty"`
	// AcceptFuncs indicates if we will generate lambda based visitor code.
	// Currently this is behind a feature flag and is subject to change.
	AcceptFuncs *bool `yaml:"accept-funcs,omitempty"`
}

Jump to

Keyboard shortcuts

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