Documentation ¶
Index ¶
- Constants
- Variables
- type AdditionalDescription
- type AdditionalStatus
- type AliasArr
- type Answer
- type BarChild
- type Description
- type Dns
- type Foo
- type Gns
- type GnsState
- type Host
- type HostPort
- type IgnoreChild
- type Instance
- type MyConst
- type MyStr
- type Port
- type RandomConst1
- type RandomConst2
- type RandomConst3
- type RandomDescription
- type RandomStatus
- type ReplicationSource
- type ServiceSegmentRef
- type SourceKind
- type TempConst1
- type TempConst2
- type TempConst3
Constants ¶
View Source
const ( MyConst3 RandomConst3 = "Const3" MyConst2 RandomConst2 = "Const2" MyConst1 RandomConst1 = "Const1" )
View Source
const ( Object SourceKind = "Object" Type SourceKind = "Type" XYZ MyConst = "xyz" )
View Source
const ( Const3 TempConst3 = "Const3" Const2 TempConst2 = "Const2" Const1 TempConst1 = "Const1" )
Variables ¶
View Source
var ApiKeySecretSpec = nexus.SecretSpec{}
View Source
var BarCustomCodesResponses = nexus.HTTPCodesResponse{ http.StatusBadRequest: nexus.HTTPResponse{Description: "Bad Request"}, }
View Source
var BarCustomMethodsResponses = nexus.HTTPMethodsResponses{ http.MethodPatch: BarCustomCodesResponses, }
View Source
var CloudEndpointGraphQLQuerySpec = nexus.GraphQLQuerySpec{ Queries: []nexus.GraphQLQuery{ { Name: "queryGns1", ServiceEndpoint: nexus.GraphQLQueryEndpoint{ Domain: "nexus-query-responder", Port: 15000, }, Args: gnsQueryFilters{}, ApiType: nexus.GraphQLQueryApi, }, { Name: "queryGnsQM1", ServiceEndpoint: nexus.GraphQLQueryEndpoint{ Domain: "query-manager", Port: 15002, }, Args: nil, ApiType: nexus.GetMetricsApi, }, { Name: "queryGnsQM", ServiceEndpoint: nexus.GraphQLQueryEndpoint{ Domain: "query-manager", Port: 15003, }, Args: metricsFilers{}, ApiType: nexus.GetMetricsApi, }, }, }
View Source
var DNSRestAPISpec = nexus.RestAPISpec{ Uris: []nexus.RestURIs{ { Uri: "/v1alpha2/dns", QueryParams: []string{ "config.Config", "gns.Dns", }, Methods: nexus.DefaultHTTPMethodsResponses, }, { Uri: "/v1alpha2/dnses", QueryParams: []string{ "config.Config", }, Methods: nexus.HTTPListResponse, }, }, }
View Source
var FooCustomMethodsResponses = nexus.HTTPMethodsResponses{ http.MethodDelete: nexus.HTTPCodesResponse{ http.StatusOK: nexus.HTTPResponse{Description: "ok"}, http.StatusNotFound: nexus.HTTPResponse{Description: http.StatusText(http.StatusNotFound)}, nexus.DefaultHTTPErrorCode: nexus.DefaultHTTPError, }, }
View Source
var GNSRestAPISpec = nexus.RestAPISpec{ Uris: []nexus.RestURIs{ { Uri: "/v1alpha2/global-namespace/{gns.Gns}", QueryParams: []string{ "config.Config", }, Methods: nexus.DefaultHTTPMethodsResponses, }, { Uri: "/v1alpha2/global-namespaces", QueryParams: []string{ "config.Config", }, Methods: nexus.HTTPListResponse, }, { Uri: "/test-foo", QueryParams: []string{ "config.Config", }, Methods: FooCustomMethodsResponses, }, { Uri: "/test-bar", QueryParams: []string{ "config.Config", }, Methods: BarCustomMethodsResponses, }, }, }
Functions ¶
This section is empty.
Types ¶
type AdditionalDescription ¶
type AdditionalStatus ¶
type BarChild ¶
type BarChild struct { nexus.SingletonNode Name string }
type Description ¶
type Description struct { Color string Version string ProjectId string TestAns []Answer Instance Instance HostPort HostPort }
This is Description struct.
type Gns ¶
type Gns struct { nexus.Node //nexus-validation: MaxLength=8, MinLength=2 //nexus-validation: Pattern=abc Domain string Annotations string `nexus-graphql-jsonencoded:""` TargetPort intstr.IntOrString `json:"targetPort,omitempty" mapstructure:"targetPort,omitempty"` Description Description GnsServiceGroups service_group.SvcGroup `nexus:"children"` GnsAccessControlPolicy policypkg.AccessControlPolicy `nexus:"child" nexus-graphql:"type:string"` Dns Dns `nexus:"link" nexus-graphql:"ignore:true"` State GnsState `nexus:"status"` FooChild BarChild `nexus:"child" nexus-graphql:"type:string"` IgnoreChild IgnoreChild `nexus:"child" nexus-graphql:"ignore:true"` Foo Foo `nexus:"child"` Meta string IntOrString []intstr.IntOrString `nexus-graphql-type-name:"IntOrString" json:"intOrString,omitempty" mapstructure:"intOrString,omitempty"` Port *int // pointer test OtherDescription *Description // pointer test - struct MapPointer *map[string]string SlicePointer *[]string WorkloadSpec cartv1.WorkloadSpec //external-field DifferentSpec *cartv1.WorkloadSpec // external-field - pointer ServiceSegmentRef ServiceSegmentRef `json:"serviceSegmentRef,omitempty"` ServiceSegmentRefPointer *ServiceSegmentRef `json:"serviceSegmentRefPointer,omitempty"` ServiceSegmentRefs []ServiceSegmentRef `json:"serviceSegmentRefs,omitempty"` ServiceSegmentRefMap map[string]ServiceSegmentRef `json:"serviceSegmentRefMap,omitempty"` }
Gns struct. nexus-graphql-query:CloudEndpointGraphQLQuerySpec nexus-rest-api-gen:GNSRestAPISpec nexus-description: this is my awesome node specification of GNS.
type IgnoreChild ¶
type RandomConst1 ¶
type RandomConst1 string
type RandomConst2 ¶
type RandomConst2 string
type RandomConst3 ¶
type RandomConst3 string
type RandomDescription ¶
type RandomStatus ¶
type ReplicationSource ¶
type ReplicationSource struct {
Kind SourceKind
}
type ServiceSegmentRef ¶
type SourceKind ¶
type SourceKind string
type TempConst1 ¶
type TempConst1 string
type TempConst2 ¶
type TempConst2 string
type TempConst3 ¶
type TempConst3 string
Click to show internal directories.
Click to hide internal directories.