gns

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: 6 Imported by: 0

Documentation

Index

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 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 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 AdditionalDescription struct {
	DiscriptionA string
	DiscriptionB string
	DiscriptionC string
	DiscriptionD string
}

type AdditionalStatus

type AdditionalStatus struct {
	StatusX int
	StatusY int
}

type AliasArr

type AliasArr []int

type Answer

type Answer struct {
	Name string
}

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 Dns

type Dns struct {
	nexus.SingletonNode
}

nexus-rest-api-gen:DNSRestAPISpec

type Foo

type Foo struct {
	nexus.Node
	Password string
}

nexus-secret-spec:ApiKeySecretSpec

type Gns

type Gns struct {
	nexus.Node
	//nexus-validation: MaxLength=8, MinLength=2
	//nexus-validation: Pattern=abc
	Domain                 string
	UseSharedGateway       bool
	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 GnsState

type GnsState struct {
	Working     bool
	Temperature int
}

type Host

type Host string

type HostPort

type HostPort struct {
	Host Host
	Port Port
}

type IgnoreChild

type IgnoreChild struct {
	nexus.Node
	Name string
}

type Instance

type Instance float32

type MyConst

type MyConst string

type MyStr

type MyStr string

type Port

type Port uint16

type RandomConst1

type RandomConst1 string

type RandomConst2

type RandomConst2 string

type RandomConst3

type RandomConst3 string

type RandomDescription

type RandomDescription struct {
	DiscriptionA string
	DiscriptionB string
	DiscriptionC string
	DiscriptionD string
}

type RandomStatus

type RandomStatus struct {
	StatusX int
	StatusY int
}

type ReplicationSource

type ReplicationSource struct {
	Kind SourceKind
}

type ServiceSegmentRef

type ServiceSegmentRef struct {
	Field1 string
	Field2 string
}

type SourceKind

type SourceKind string

type TempConst1

type TempConst1 string

type TempConst2

type TempConst2 string

type TempConst3

type TempConst3 string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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