v1

package
v0.0.0-...-a7a127b Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the grpcdemo v1 API group +kubebuilder:object:generate=true +groupName=grpcdemo.example.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "grpcdemo.example.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DemoServices

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

	Spec   DemoServicesSpec   `json:"spec,omitempty"`
	Status DemoServicesStatus `json:"status,omitempty"`
}

DemoServices is the Schema for the demoservices API

func (*DemoServices) DeepCopy

func (in *DemoServices) DeepCopy() *DemoServices

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

func (*DemoServices) DeepCopyInto

func (in *DemoServices) DeepCopyInto(out *DemoServices)

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

func (*DemoServices) DeepCopyObject

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

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

type DemoServicesList

type DemoServicesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DemoServices `json:"items"`
}

DemoServicesList contains a list of DemoServices

func (*DemoServicesList) DeepCopy

func (in *DemoServicesList) DeepCopy() *DemoServicesList

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

func (*DemoServicesList) DeepCopyInto

func (in *DemoServicesList) DeepCopyInto(out *DemoServicesList)

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

func (*DemoServicesList) DeepCopyObject

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

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

type DemoServicesSpec

type DemoServicesSpec struct {

	// Foo is an example field of DemoServices. Edit DemoServices_types.go to remove/update
	Services []Service `json:"services"`
}

DemoServicesSpec defines the desired state of DemoServices

func (*DemoServicesSpec) DeepCopy

func (in *DemoServicesSpec) DeepCopy() *DemoServicesSpec

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

func (*DemoServicesSpec) DeepCopyInto

func (in *DemoServicesSpec) DeepCopyInto(out *DemoServicesSpec)

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

type DemoServicesStatus

type DemoServicesStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Name   string `json:"name"`
	Status string `json:"status"`
}

DemoServicesStatus defines the observed state of DemoServices

func (*DemoServicesStatus) DeepCopy

func (in *DemoServicesStatus) DeepCopy() *DemoServicesStatus

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

func (*DemoServicesStatus) DeepCopyInto

func (in *DemoServicesStatus) DeepCopyInto(out *DemoServicesStatus)

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

type Resources

type Resources struct {
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

Resources defines the desired resources for limits and requests

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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

type Service

type Service struct {
	Name     string    `json:"name"`
	Image    string    `json:"image"`
	Version  string    `json:"version"`
	Replicas int32     `json:"replicas"`
	Limits   Resources `json:"limits"`
	Requests Resources `json:"requests"`
}

Service defines the desired state of a Service

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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