v1

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder definition
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme definition
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   incident.GroupName,
	Version: "v1",
}

SchemeGroupVersion Define your schema name and the version

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

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Incident

type Incident struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec IncidentSpec `json:"spec,omitempty"`
}

Incident top-level type definition

func (*Incident) DeepCopy

func (in *Incident) DeepCopy() *Incident

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

func (*Incident) DeepCopyInto

func (in *Incident) DeepCopyInto(out *Incident)

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

func (*Incident) DeepCopyObject

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

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

type IncidentList

type IncidentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `son:"metadata,omitempty"`

	Items []Incident `json:"items"`
}

IncidentList list definition

func (*IncidentList) DeepCopy

func (in *IncidentList) DeepCopy() *IncidentList

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

func (*IncidentList) DeepCopyInto

func (in *IncidentList) DeepCopyInto(out *IncidentList)

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

func (*IncidentList) DeepCopyObject

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

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

type IncidentSpec

type IncidentSpec struct {
	ID      int64  `json:"id,omitempty"`
	Summary string `json:"summary,omitempty"`
	Details string `json:"details,omitempty"`
	Type    string `json:"type,omitempty"`
}

IncidentSpec custom spec definition

func (*IncidentSpec) DeepCopy

func (in *IncidentSpec) DeepCopy() *IncidentSpec

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

func (*IncidentSpec) DeepCopyInto

func (in *IncidentSpec) DeepCopyInto(out *IncidentSpec)

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