Documentation
¶
Index ¶
- func Create(path string) error
- func GetValidOutputFormats() []string
- func IsValidOutputFormat(format string) bool
- func ToJSONSchema() *jsonschema.Schema
- type BaseFlag
- type BooleanFlag
- type Change
- type FloatFlag
- type IntegerFlag
- type Manifest
- type ObjectFlag
- type OutputFormat
- type StringFlag
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidOutputFormats ¶ added in v0.3.4
func GetValidOutputFormats() []string
GetValidOutputFormats returns a list of all valid output formats
func IsValidOutputFormat ¶ added in v0.3.4
IsValidOutputFormat checks if the given format is a valid output format
func ToJSONSchema ¶
func ToJSONSchema() *jsonschema.Schema
Converts the Manifest struct to a JSON schema.
Types ¶
type BooleanFlag ¶
type Change ¶
type IntegerFlag ¶
type Manifest ¶
type Manifest struct { // Collection of feature flag definitions Flags map[string]any `json:"flags" jsonschema:"title=Flags,required"` }
Feature flag manifest for the OpenFeature CLI
type ObjectFlag ¶
type OutputFormat ¶ added in v0.3.4
type OutputFormat string
OutputFormat represents the available output formats for the compare command
const ( // OutputFormatTree represents the tree output format (default) OutputFormatTree OutputFormat = "tree" // OutputFormatFlat represents the flat output format OutputFormatFlat OutputFormat = "flat" // OutputFormatJSON represents the JSON output format OutputFormatJSON OutputFormat = "json" // OutputFormatYAML represents the YAML output format OutputFormatYAML OutputFormat = "yaml" )
type StringFlag ¶
type ValidationError ¶
type ValidationError struct { Type string `json:"type"` Path string `json:"path"` Message string `json:"message"` }
func Validate ¶
func Validate(data []byte) ([]ValidationError, error)
Click to show internal directories.
Click to hide internal directories.