v1

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 ResourceVersion = "v1"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

GroupVersion is the identifier for the API which includes the name of the group and the version of the API

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type AMap

type AMap map[string]string

type BArray

type BArray []string

type CInt

type CInt uint8

type Child

type Child struct {
	Group string `json:"group" yaml:"group"`
	Kind  string `json:"kind" yaml:"kind"`
	Name  string `json:"name" yaml:"name"`
}

+k8s:openapi-gen=true

type Cluster

type Cluster struct {
	Name string `json:"name" yaml:"name"`
	MyID int    `json:"myID" yaml:"myID"`
}

+k8s:openapi-gen=true

type ClusterNamespace

type ClusterNamespace struct {
	Cluster   MatchCondition `json:"cluster" yaml:"cluster"`
	Namespace MatchCondition `json:"namespace" yaml:"namespace"`
}

+k8s:openapi-gen=true

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata" yaml:"metadata"`
	Spec              ConfigSpec        `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status            ConfigNexusStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

+genclient +genclient:noStatus +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*Config) CRDName

func (c *Config) CRDName() string

func (*Config) DisplayName

func (c *Config) DisplayName() string

type ConfigList

type ConfigList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []Config `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type ConfigNexusStatus

type ConfigNexusStatus struct {
	Nexus NexusStatus `json:"nexus,omitempty" yaml:"nexus,omitempty"`
}

+k8s:openapi-gen=true

type ConfigSpec

type ConfigSpec struct {
	MyStr0            *gnstsmtanzuvmwarecomv1.MyStr           `json:"myStr0" yaml:"myStr0"`
	MyStr1            []gnstsmtanzuvmwarecomv1.MyStr          `json:"myStr1" yaml:"myStr1"`
	MyStr2            map[string]gnstsmtanzuvmwarecomv1.MyStr `json:"myStr2" yaml:"myStr2"`
	XYZPort           gnstsmtanzuvmwarecomv1.Port             `json:"xYZPort" yaml:"xYZPort"`
	ABCHost           []gnstsmtanzuvmwarecomv1.Host           `json:"aBCHost" yaml:"aBCHost"`
	ClusterNamespaces []ClusterNamespace                      `json:"clusterNamespaces" yaml:"clusterNamespaces"`
	TestValMarkers    TestValMarkers                          `json:"testValMarkers" yaml:"testValMarkers"`
	Instance          float32                                 `json:"instance" yaml:"instance"`
	CuOption          string                                  `json:"option_cu" yaml:"option_cu"`
	GNSGvk            *Child                                  `json:"gNSGvk,omitempty" yaml:"gNSGvk,omitempty" nexus:"child"`
	DNSGvk            *Child                                  `json:"dNSGvk,omitempty" yaml:"dNSGvk,omitempty" nexus:"child"`
	VMPPoliciesGvk    *Child                                  `json:"vMPPoliciesGvk,omitempty" yaml:"vMPPoliciesGvk,omitempty" nexus:"child"`
	DomainGvk         *Child                                  `json:"domainGvk,omitempty" yaml:"domainGvk,omitempty" nexus:"child"`
	FooExampleGvk     map[string]Child                        `json:"fooExampleGvk,omitempty" yaml:"fooExampleGvk,omitempty" nexus:"children"`
	SvcGrpInfoGvk     *Child                                  `json:"svcGrpInfoGvk,omitempty" yaml:"svcGrpInfoGvk,omitempty" nexus:"child"`
	ACPPoliciesGvk    map[string]Link                         `json:"aCPPoliciesGvk,omitempty" yaml:"aCPPoliciesGvk,omitempty" nexus:"links"`
}

+k8s:openapi-gen=true

type CrossPackageTester

type CrossPackageTester struct {
	Test gnstsmtanzuvmwarecomv1.MyStr `json:"test" yaml:"test"`
}

+k8s:openapi-gen=true

type DFloat

type DFloat float32

type Domain

type Domain struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata" yaml:"metadata"`
	Spec              DomainSpec        `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status            DomainNexusStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

+genclient +genclient:noStatus +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*Domain) CRDName

func (c *Domain) CRDName() string

func (*Domain) DisplayName

func (c *Domain) DisplayName() string

type DomainList

type DomainList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []Domain `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type DomainNexusStatus

type DomainNexusStatus struct {
	Nexus NexusStatus `json:"nexus,omitempty" yaml:"nexus,omitempty"`
}

+k8s:openapi-gen=true

type DomainSpec

type DomainSpec struct {
	PointPort        *gnstsmtanzuvmwarecomv1.Port `json:"pointPort" yaml:"pointPort"`
	PointString      *string                      `json:"pointString" yaml:"pointString"`
	PointInt         *int                         `json:"pointInt" yaml:"pointInt"`
	PointMap         *map[string]string           `json:"pointMap" yaml:"pointMap"`
	PointSlice       *[]string                    `json:"pointSlice" yaml:"pointSlice"`
	SliceOfPoints    []*string                    `json:"sliceOfPoints" yaml:"sliceOfPoints"`
	SliceOfArrPoints []*BArray                    `json:"sliceOfArrPoints" yaml:"sliceOfArrPoints"`
	MapOfArrsPoints  map[string]*BArray           `json:"mapOfArrsPoints" yaml:"mapOfArrsPoints"`
	PointStruct      *Cluster                     `json:"pointStruct" yaml:"pointStruct"`
}

+k8s:openapi-gen=true

type EmptyStructTest

type EmptyStructTest struct {
}

+k8s:openapi-gen=true

type FooTypeABC

type FooTypeABC struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata" yaml:"metadata"`
	Spec              FooTypeABCSpec        `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status            FooTypeABCNexusStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

+genclient +genclient:noStatus +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*FooTypeABC) CRDName

func (c *FooTypeABC) CRDName() string

func (*FooTypeABC) DisplayName

func (c *FooTypeABC) DisplayName() string

type FooTypeABCList

type FooTypeABCList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []FooTypeABC `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type FooTypeABCNexusStatus

type FooTypeABCNexusStatus struct {
	Nexus NexusStatus `json:"nexus,omitempty" yaml:"nexus,omitempty"`
}

+k8s:openapi-gen=true

type FooTypeABCSpec

type FooTypeABCSpec struct {
	FooA AMap   `json:"fooA" yaml:"fooA"`
	FooB BArray `json:"fooB" yaml:"fooB"`
	FooC CInt   `nexus-graphql:"ignore:true" json:"fooC" yaml:"fooC"`
	FooD DFloat `nexus-graphql:"type:string" json:"fooD" yaml:"fooD"`
	FooE CInt   `json:"foo_e" nexus-graphql:"ignore:true" yaml:"foo_e"`
	FooF DFloat `json:"foo_f" yaml:"c_int" nexus-graphql:"type:string"`
}

+k8s:openapi-gen=true

type Link struct {
	Group string `json:"group" yaml:"group"`
	Kind  string `json:"kind" yaml:"kind"`
	Name  string `json:"name" yaml:"name"`
}

+k8s:openapi-gen=true

type MatchCondition

type MatchCondition struct {
	Name string                      `json:"name" yaml:"name"`
	Type gnstsmtanzuvmwarecomv1.Host `json:"type" yaml:"type"`
}

+k8s:openapi-gen=true

type NexusStatus

type NexusStatus struct {
	SourceGeneration int64        `json:"sourceGeneration, omitempty" yaml:"sourceGeneration, omitempty"`
	RemoteGeneration int64        `json:"remoteGeneration, omitempty" yaml:"remoteGeneration, omitempty"`
	SyncerStatus     SyncerStatus `json:"syncerStatus, omitempty" yaml:"syncerStatus, omitempty"`
}

+k8s:openapi-gen=true

type SomeStruct

type SomeStruct struct {
}

+k8s:openapi-gen=true

type StructWithEmbeddedField

type StructWithEmbeddedField struct {
	SomeStruct
	gnstsmtanzuvmwarecomv1.MyStr
}

+k8s:openapi-gen=true

type SyncerStatus

type SyncerStatus struct {
	EtcdVersion    int64 `json:"etcdVersion, omitempty" yaml:"etcdVersion, omitempty"`
	CRGenerationId int64 `json:"cRGenerationId, omitempty" yaml:"cRGenerationId, omitempty"`
}

+k8s:openapi-gen=true

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"`
}

+k8s:openapi-gen=true

Jump to

Keyboard shortcuts

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