v1alpha1

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=superhero.comic.kooper

Index

Constants

View Source
const (
	SpidermanKind       = "Spiderman"
	SpidermanName       = "spiderman"
	SpidermanNamePlural = "spidermans"
	SpidermanNameMin    = "spd"
	SpidermanScope      = apiextensionsv1.NamespaceScoped
)

Spiderman constants

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: superhero.GroupName, Version: version}

SchemeGroupVersion is group version used to register these objects

View Source
var SpidermanShortNames = []string{"spd", "spm"}

SpidermanShortName is used to register resource short names

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Spiderman

type Spiderman struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the Spiderman spec.
	Spec SpidermanSpec `json:"spec,omitempty"`
}

Spiderman is a superhero

func (*Spiderman) DeepCopy

func (in *Spiderman) DeepCopy() *Spiderman

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

func (*Spiderman) DeepCopyInto

func (in *Spiderman) DeepCopyInto(out *Spiderman)

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

func (*Spiderman) DeepCopyObject

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

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

type SpidermanList

type SpidermanList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Spiderman `json:"items"`
}

SpidermanList is a collection of spidermans.

func (*SpidermanList) DeepCopy

func (in *SpidermanList) DeepCopy() *SpidermanList

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

func (*SpidermanList) DeepCopyInto

func (in *SpidermanList) DeepCopyInto(out *SpidermanList)

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

func (*SpidermanList) DeepCopyObject

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

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

type SpidermanSpec

type SpidermanSpec struct {
	Name string `json:"name"`
	Year int    `json:"year,omitempty"`
}

SpidermanSpec contains the specification for Spiderman.

func (*SpidermanSpec) DeepCopy

func (in *SpidermanSpec) DeepCopy() *SpidermanSpec

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

func (*SpidermanSpec) DeepCopyInto

func (in *SpidermanSpec) DeepCopyInto(out *SpidermanSpec)

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

Jump to

Keyboard shortcuts

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