apimachinery: k8s.io/apimachinery/pkg/runtime/serializer/testing Index | Files

package testing

import "k8s.io/apimachinery/pkg/runtime/serializer/testing"

Index

Package Files

doc.go types.go zz_generated.deepcopy.go

type ExternalInternalSame Uses

type ExternalInternalSame struct {
    MyWeirdCustomEmbeddedVersionKindField `json:",inline"`
    A                                     TestType2 `json:"A,omitempty"`
}

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

func (*ExternalInternalSame) DeepCopy Uses

func (in *ExternalInternalSame) DeepCopy() *ExternalInternalSame

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalInternalSame.

func (*ExternalInternalSame) DeepCopyInto Uses

func (in *ExternalInternalSame) DeepCopyInto(out *ExternalInternalSame)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalInternalSame) DeepCopyObject Uses

func (in *ExternalInternalSame) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalInternalSame) GetObjectKind Uses

func (obj *ExternalInternalSame) GetObjectKind() schema.ObjectKind

type ExternalTestType1 Uses

type ExternalTestType1 struct {
    MyWeirdCustomEmbeddedVersionKindField `json:",inline"`
    A                                     string                       `json:"A,omitempty"`
    B                                     int                          `json:"B,omitempty"`
    C                                     int8                         `json:"C,omitempty"`
    D                                     int16                        `json:"D,omitempty"`
    E                                     int32                        `json:"E,omitempty"`
    F                                     int64                        `json:"F,omitempty"`
    G                                     uint                         `json:"G,omitempty"`
    H                                     uint8                        `json:"H,omitempty"`
    I                                     uint16                       `json:"I,omitempty"`
    J                                     uint32                       `json:"J,omitempty"`
    K                                     uint64                       `json:"K,omitempty"`
    L                                     bool                         `json:"L,omitempty"`
    M                                     map[string]int               `json:"M,omitempty"`
    N                                     map[string]ExternalTestType2 `json:"N,omitempty"`
    O                                     *ExternalTestType2           `json:"O,omitempty"`
    P                                     []ExternalTestType2          `json:"Q,omitempty"`
}

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

func (*ExternalTestType1) DeepCopy Uses

func (in *ExternalTestType1) DeepCopy() *ExternalTestType1

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType1.

func (*ExternalTestType1) DeepCopyInto Uses

func (in *ExternalTestType1) DeepCopyInto(out *ExternalTestType1)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalTestType1) DeepCopyObject Uses

func (in *ExternalTestType1) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalTestType1) GetObjectKind Uses

func (obj *ExternalTestType1) GetObjectKind() schema.ObjectKind

type ExternalTestType2 Uses

type ExternalTestType2 struct {
    A   string `json:"A,omitempty"`
    B   int    `json:"B,omitempty"`
}

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

func (*ExternalTestType2) DeepCopy Uses

func (in *ExternalTestType2) DeepCopy() *ExternalTestType2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType2.

func (*ExternalTestType2) DeepCopyInto Uses

func (in *ExternalTestType2) DeepCopyInto(out *ExternalTestType2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExternalTestType2) DeepCopyObject Uses

func (in *ExternalTestType2) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExternalTestType2) GetObjectKind Uses

func (obj *ExternalTestType2) GetObjectKind() schema.ObjectKind

type MyWeirdCustomEmbeddedVersionKindField Uses

type MyWeirdCustomEmbeddedVersionKindField struct {
    ID         string `json:"ID,omitempty"`
    APIVersion string `json:"myVersionKey,omitempty"`
    ObjectKind string `json:"myKindKey,omitempty"`
    Z          string `json:"Z,omitempty"`
    Y          uint64 `json:"Y,omitempty"`
}

Test a weird version/kind embedding format. +k8s:deepcopy-gen=false

func (*MyWeirdCustomEmbeddedVersionKindField) GetObjectKind Uses

func (obj *MyWeirdCustomEmbeddedVersionKindField) GetObjectKind() schema.ObjectKind

func (*MyWeirdCustomEmbeddedVersionKindField) GroupVersionKind Uses

func (obj *MyWeirdCustomEmbeddedVersionKindField) GroupVersionKind() schema.GroupVersionKind

func (*MyWeirdCustomEmbeddedVersionKindField) SetGroupVersionKind Uses

func (obj *MyWeirdCustomEmbeddedVersionKindField) SetGroupVersionKind(gvk schema.GroupVersionKind)

type TestType1 Uses

type TestType1 struct {
    MyWeirdCustomEmbeddedVersionKindField `json:",inline"`
    A                                     string               `json:"A,omitempty"`
    B                                     int                  `json:"B,omitempty"`
    C                                     int8                 `json:"C,omitempty"`
    D                                     int16                `json:"D,omitempty"`
    E                                     int32                `json:"E,omitempty"`
    F                                     int64                `json:"F,omitempty"`
    G                                     uint                 `json:"G,omitempty"`
    H                                     uint8                `json:"H,omitempty"`
    I                                     uint16               `json:"I,omitempty"`
    J                                     uint32               `json:"J,omitempty"`
    K                                     uint64               `json:"K,omitempty"`
    L                                     bool                 `json:"L,omitempty"`
    M                                     map[string]int       `json:"M,omitempty"`
    N                                     map[string]TestType2 `json:"N,omitempty"`
    O                                     *TestType2           `json:"O,omitempty"`
    P                                     []TestType2          `json:"Q,omitempty"`
}

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

func (*TestType1) DeepCopy Uses

func (in *TestType1) DeepCopy() *TestType1

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType1.

func (*TestType1) DeepCopyInto Uses

func (in *TestType1) DeepCopyInto(out *TestType1)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TestType1) DeepCopyObject Uses

func (in *TestType1) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TestType1) GetObjectKind Uses

func (obj *TestType1) GetObjectKind() schema.ObjectKind

type TestType2 Uses

type TestType2 struct {
    A   string `json:"A,omitempty"`
    B   int    `json:"B,omitempty"`
}

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

func (*TestType2) DeepCopy Uses

func (in *TestType2) DeepCopy() *TestType2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType2.

func (*TestType2) DeepCopyInto Uses

func (in *TestType2) DeepCopyInto(out *TestType2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TestType2) DeepCopyObject Uses

func (in *TestType2) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TestType2) GetObjectKind Uses

func (obj *TestType2) GetObjectKind() schema.ObjectKind

Package testing imports 2 packages (graph). Updated 2018-06-29. Refresh now. Tools for package owners.