test

package
v0.51.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultVersion = "X"

DefaultVersion is some valid value

View Source
const LegacyVersion = "Y"

LegacyVersion is old

View Source
const TwoPointO = "2.0"

TwoPointO for literal version

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias int

Alias is just an int

type Config

type Config struct {
	// Num describes the number of subthings
	Num int `json:"num"`
	// An option
	// +required
	Option        DirectType         `json:"option"`
	PointerOption *PointerType       `json:"pointeroption"`
	PackageOption subpkg.PackageType `json:"packageoption"`
	AliasedInt    Alias              `json:"aliasedint"`
	Unknown       interface{}        `json:"unknown"`
	Other         map[string]string  `json:"other"`
	// Determines the version of the main thing. Valid variants are:
	// `DefaultVersion` (default): This is the right option,
	// `LegacyVersion`: Will be deprecated,
	// `TwoPointO`,
	// `"2"`
	Version string `json:"version"`
	// Tells us which kind of config.
	// Valid variants are `Kind` constants
	Kind string `json:"kind"`
	// Valid entries are `Kind` constants
	Kinds   []string `json:"kinds"`
	SumType SumType  `json:"sumType"`
}

Config describes some settings for _some_ things

type DirectType

type DirectType struct {
	Kind string `json:"kind"`
}

DirectType describes a sub configuration of the Config

type PointerType

type PointerType struct {
	Kind string `json:"kind"`
}

PointerType describes a sub configuration of the Config

type SumType

type SumType struct {
	// Valid variants are:
	// `"a"`: type A
	// `"b"`: type B
	Type string `json:"type"`
}

Schema type is one of `SumTypeA`, `SumTypeB`

type SumTypeA

type SumTypeA struct {
	A string `json:"a"`
}

type SumTypeB

type SumTypeB struct {
	B string `json:"b"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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