config

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BarCustomCodesResponses = nexus.HTTPCodesResponse{
	http.StatusBadRequest: nexus.HTTPResponse{Description: "Bad Request"},
}

Functions

This section is empty.

Types

type AMap

type AMap map[string]string

type BArray

type BArray []string

type CInt

type CInt uint8

type Cluster

type Cluster struct {
	Name string
	MyID int
}

type ClusterNamespace

type ClusterNamespace struct {
	Cluster   MatchCondition
	Namespace MatchCondition
}

type Config

type Config struct {
	nexus.Node
	GNS         gns.Gns                `nexus:"child"`
	DNS         gns.Dns                `nexus:"child"`
	VMPPolicies py.VMpolicy            `nexus:"child"`
	ACPPolicies py.AccessControlPolicy `nexus:"links"`
	Domain      Domain                 `nexus:"child"`
	// Examples for cross-package import.
	MyStr0 *gns.MyStr
	MyStr1 []gns.MyStr
	MyStr2 map[string]gns.MyStr

	XYZPort           gns.Port
	ABCHost           []gns.Host
	ClusterNamespaces []ClusterNamespace

	TestValMarkers TestValMarkers `json:"testValMarkers" yaml:"testValMarkers"`
	FooExample     FooTypeABC     `nexus:"children"`
	Instance       float32
	CuOption       string                        `json:"option_cu"`
	SvcGrpInfo     servicegroup.SvcGroupLinkInfo `nexus:"child"`
}

nexus-graphql-query:root.GeneralGraphQLQuerySpec

type CrossPackageTester

type CrossPackageTester struct {
	Test gns.MyStr
}

type DFloat

type DFloat float32

type Domain

type Domain struct {
	nexus.Node
	PointPort        *gns.Port
	PointString      *string
	PointInt         *int
	PointMap         *map[string]string
	PointSlice       *[]string
	SliceOfPoints    []*string
	SliceOfArrPoints []*BArray
	MapOfArrsPoints  map[string]*BArray
	PointStruct      *Cluster
}

type EmptyStructTest

type EmptyStructTest struct{}

type FooTypeABC

type FooTypeABC struct {
	nexus.Node
	FooA AMap
	FooB BArray
	FooC CInt   `nexus-graphql:"ignore:true"`
	FooD DFloat `nexus-graphql:"type:string"`
	FooE CInt   `json:"foo_e" nexus-graphql:"ignore:true"`
	FooF DFloat `json:"foo_f" yaml:"c_int" nexus-graphql:"type:string"`
}

type MatchCondition

type MatchCondition struct {
	Name string
	Type gns.Host
}

type SomeStruct

type SomeStruct struct{}

type StructWithEmbeddedField

type StructWithEmbeddedField struct {
	SomeStruct
	gns.MyStr
}

type TestValMarkers

type TestValMarkers struct {
	//nexus-validation: MaxLength=8, MinLength=2, Pattern=ab
	MyStr string `json:"myStr" yaml:"myStr"`

	//nexus-validation: Maximum=8, Minimum=2
	//nexus-validation: ExclusiveMaximum=true
	MyInt int `json:"myInt" yaml:"myInt"`

	//nexus-validation: MaxItems=3, MinItems=2
	//nexus-validation: UniqueItems=true
	MySlice []string `json:"mySlice" yaml:"mySlice"`
}

Directories

Path Synopsis
gns

Jump to

Keyboard shortcuts

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