Documentation
¶
Overview ¶
Package config implements loading the crossplane CLI config file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolvePath ¶
ResolvePath returns the path to the config file, in priority order:
- flag - the value of the --config flag, if any.
- The CROSSPLANE_CONFIG environment variable.
- DefaultPath() (XDG/HOME-derived).
An empty string is returned only if no source produces one.
Types ¶
type Config ¶
type Config struct {
// Version is the version of the config file.
Version int `json:"version"`
Features Features `json:"features,omitzero"`
}
Config is the on-disk configuration for the crossplane CLI.
type Features ¶
type Features struct {
EnableAlpha bool `json:"enableAlpha,omitempty"`
DisableBeta bool `json:"disableBeta,omitempty"`
// GenerateGoModelAccessors enables generation of GetX/SetX accessor methods
// on generated Go models. Disabled by default; opt in to use generics and
// interfaces over generated resources.
GenerateGoModelAccessors bool `json:"generateGoModelAccessors,omitempty"`
// GenerateGoRuntimeObjects enables generation of runtime.Object methods and
// per-package AddToScheme helpers on generated Go models. Disabled by
// default; opt in to register generated types with a runtime.Scheme.
GenerateGoRuntimeObjects bool `json:"generateGoRuntimeObjects,omitempty"`
}
Features configures feature visibility.
Click to show internal directories.
Click to hide internal directories.