v1

package
v0.17.7 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the things.test.io v1 API group +k8s:deepcopy-gen=package,register +groupName=things.test.io

NOTE: Boilerplate only. Ignore this file. Used to register the Go types with the Kubernetes internal scheme

Definitions for the Kubernetes types

Definitions for the Kubernetes types

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "things.test.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	AcrylicType_Body_name = map[int32]string{
		0: "Light",
		1: "Medium",
		2: "Heavy",
	}
	AcrylicType_Body_value = map[string]int32{
		"Light":  0,
		"Medium": 1,
		"Heavy":  2,
	}
)

Enum value maps for AcrylicType_Body.

View Source
var ClusterResourceGVK = schema.GroupVersionKind{
	Group:   "things.test.io",
	Version: "v1",
	Kind:    "ClusterResource",
}

GroupVersionKind for ClusterResource

View Source
var File_github_com_solo_io_skv2_codegen_test_test_api_proto protoreflect.FileDescriptor
View Source
var PaintGVK = schema.GroupVersionKind{
	Group:   "things.test.io",
	Version: "v1",
	Kind:    "Paint",
}

GroupVersionKind for Paint

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

func NewClusterResourceClient

func NewClusterResourceClient(client client.Client) *clusterResourceClient

func NewPaintClient

func NewPaintClient(client client.Client) *paintClient

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AcrylicType

type AcrylicType struct {
	Body AcrylicType_Body `protobuf:"varint,3,opt,name=body,proto3,enum=things.test.io.AcrylicType_Body" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*AcrylicType) Descriptor deprecated

func (*AcrylicType) Descriptor() ([]byte, []int)

Deprecated: Use AcrylicType.ProtoReflect.Descriptor instead.

func (*AcrylicType) GetBody

func (x *AcrylicType) GetBody() AcrylicType_Body

func (*AcrylicType) ProtoMessage

func (*AcrylicType) ProtoMessage()

func (*AcrylicType) ProtoReflect added in v0.7.17

func (x *AcrylicType) ProtoReflect() protoreflect.Message

func (*AcrylicType) Reset

func (x *AcrylicType) Reset()

func (*AcrylicType) String

func (x *AcrylicType) String() string

type AcrylicType_Body

type AcrylicType_Body int32
const (
	AcrylicType_Light  AcrylicType_Body = 0
	AcrylicType_Medium AcrylicType_Body = 1
	AcrylicType_Heavy  AcrylicType_Body = 2
)

func (AcrylicType_Body) Descriptor added in v0.7.17

func (AcrylicType_Body) Enum added in v0.7.17

func (AcrylicType_Body) EnumDescriptor deprecated

func (AcrylicType_Body) EnumDescriptor() ([]byte, []int)

Deprecated: Use AcrylicType_Body.Descriptor instead.

func (AcrylicType_Body) Number added in v0.7.17

func (AcrylicType_Body) String

func (x AcrylicType_Body) String() string

func (AcrylicType_Body) Type added in v0.7.17

type Clientset

type Clientset interface {
	// clienset for the things.test.io/v1/v1 APIs
	Paints() PaintClient
	// clienset for the things.test.io/v1/v1 APIs
	ClusterResources() ClusterResourceClient
}

clienset for the things.test.io/v1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

func NewClientsetFromConfig(cfg *rest.Config) (Clientset, error)

type ClusterResource

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

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

ClusterResource is the Schema for the clusterResource API

func (*ClusterResource) DeepCopy

func (in *ClusterResource) DeepCopy() *ClusterResource

func (*ClusterResource) DeepCopyInto

func (in *ClusterResource) DeepCopyInto(out *ClusterResource)

func (*ClusterResource) DeepCopyObject

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

func (ClusterResource) GVK added in v0.7.17

GVK returns the GroupVersionKind associated with the resource type.

type ClusterResourceClient

Client knows how to perform CRUD operations on ClusterResources.

type ClusterResourceList

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

ClusterResourceList contains a list of ClusterResource

func (*ClusterResourceList) DeepCopy

func (in *ClusterResourceList) DeepCopy() *ClusterResourceList

func (*ClusterResourceList) DeepCopyInto

func (in *ClusterResourceList) DeepCopyInto(out *ClusterResourceList)

func (*ClusterResourceList) DeepCopyObject

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

type ClusterResourceReader

type ClusterResourceReader interface {
	// Get retrieves a ClusterResource for the given object key
	GetClusterResource(ctx context.Context, name string) (*ClusterResource, error)

	// List retrieves list of ClusterResources for a given namespace and list options.
	ListClusterResource(ctx context.Context, opts ...client.ListOption) (*ClusterResourceList, error)
}

Reader knows how to read and list ClusterResources.

type ClusterResourceSlice

type ClusterResourceSlice []*ClusterResource

ClusterResourceSlice represents a slice of *ClusterResource

type ClusterResourceSpec

type ClusterResourceSpec struct {
	Imported *wrappers.StringValue `protobuf:"bytes,1,opt,name=imported,proto3" json:"imported,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterResourceSpec) DeepCopyInto

func (in *ClusterResourceSpec) DeepCopyInto(out *ClusterResourceSpec)

DeepCopyInto for the ClusterResource.Spec

func (*ClusterResourceSpec) Descriptor deprecated

func (*ClusterResourceSpec) Descriptor() ([]byte, []int)

Deprecated: Use ClusterResourceSpec.ProtoReflect.Descriptor instead.

func (*ClusterResourceSpec) GetImported added in v0.7.17

func (x *ClusterResourceSpec) GetImported() *wrappers.StringValue

func (*ClusterResourceSpec) MarshalJSON

func (this *ClusterResourceSpec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ClusterResourceSpec

func (*ClusterResourceSpec) ProtoMessage

func (*ClusterResourceSpec) ProtoMessage()

func (*ClusterResourceSpec) ProtoReflect added in v0.7.17

func (x *ClusterResourceSpec) ProtoReflect() protoreflect.Message

func (*ClusterResourceSpec) Reset

func (x *ClusterResourceSpec) Reset()

func (*ClusterResourceSpec) String

func (x *ClusterResourceSpec) String() string

func (*ClusterResourceSpec) UnmarshalJSON

func (this *ClusterResourceSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ClusterResourceSpec

type ClusterResourceStatusWriter

type ClusterResourceStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ClusterResource object.
	UpdateClusterResourceStatus(ctx context.Context, obj *ClusterResource, opts ...client.UpdateOption) error

	// Patch patches the given ClusterResource object's subresource.
	PatchClusterResourceStatus(ctx context.Context, obj *ClusterResource, patch client.Patch, opts ...client.PatchOption) error
}

StatusWriter knows how to update status subresource of a ClusterResource object.

type ClusterResourceTransitionFunction

type ClusterResourceTransitionFunction func(existing, desired *ClusterResource) error

ClusterResourceTransitionFunction instructs the ClusterResourceWriter how to transition between an existing ClusterResource object and a desired on an Upsert

type ClusterResourceWriter

type ClusterResourceWriter interface {
	// Create saves the ClusterResource object.
	CreateClusterResource(ctx context.Context, obj *ClusterResource, opts ...client.CreateOption) error

	// Delete deletes the ClusterResource object.
	DeleteClusterResource(ctx context.Context, name string, opts ...client.DeleteOption) error

	// Update updates the given ClusterResource object.
	UpdateClusterResource(ctx context.Context, obj *ClusterResource, opts ...client.UpdateOption) error

	// Patch patches the given ClusterResource object.
	PatchClusterResource(ctx context.Context, obj *ClusterResource, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all ClusterResource objects matching the given options.
	DeleteAllOfClusterResource(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the ClusterResource object.
	UpsertClusterResource(ctx context.Context, obj *ClusterResource, transitionFuncs ...ClusterResourceTransitionFunction) error
}

Writer knows how to create, delete, and update ClusterResources.

type MulticlusterClientset

type MulticlusterClientset interface {
	// Cluster returns a Clientset for the given cluster
	Cluster(cluster string) (Clientset, error)
}

MulticlusterClientset for the things.test.io/v1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterClusterResourceClient

type MulticlusterClusterResourceClient interface {
	// Cluster returns a ClusterResourceClient for the given cluster
	Cluster(cluster string) (ClusterResourceClient, error)
}

Provides ClusterResourceClients for multiple clusters.

func NewMulticlusterClusterResourceClient

func NewMulticlusterClusterResourceClient(client multicluster.Client) MulticlusterClusterResourceClient

type MulticlusterPaintClient

type MulticlusterPaintClient interface {
	// Cluster returns a PaintClient for the given cluster
	Cluster(cluster string) (PaintClient, error)
}

Provides PaintClients for multiple clusters.

func NewMulticlusterPaintClient

func NewMulticlusterPaintClient(client multicluster.Client) MulticlusterPaintClient

type OilType

type OilType struct {
	WaterMixable bool `protobuf:"varint,1,opt,name=waterMixable,proto3" json:"waterMixable,omitempty"`
	// Types that are assignable to PigmentType:
	//	*OilType_Powder
	//	*OilType_Fluid
	PigmentType isOilType_PigmentType `protobuf_oneof:"pigmentType"`
	// contains filtered or unexported fields
}

func (*OilType) Descriptor deprecated

func (*OilType) Descriptor() ([]byte, []int)

Deprecated: Use OilType.ProtoReflect.Descriptor instead.

func (*OilType) GetFluid

func (x *OilType) GetFluid() string

func (*OilType) GetPigmentType

func (m *OilType) GetPigmentType() isOilType_PigmentType

func (*OilType) GetPowder

func (x *OilType) GetPowder() string

func (*OilType) GetWaterMixable

func (x *OilType) GetWaterMixable() bool

func (*OilType) ProtoMessage

func (*OilType) ProtoMessage()

func (*OilType) ProtoReflect added in v0.7.17

func (x *OilType) ProtoReflect() protoreflect.Message

func (*OilType) Reset

func (x *OilType) Reset()

func (*OilType) String

func (x *OilType) String() string

type OilType_Fluid

type OilType_Fluid struct {
	Fluid string `protobuf:"bytes,3,opt,name=fluid,proto3,oneof"`
}

type OilType_Powder

type OilType_Powder struct {
	Powder string `protobuf:"bytes,2,opt,name=powder,proto3,oneof"`
}

type Paint

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

	Spec   PaintSpec   `json:"spec,omitempty"`
	Status PaintStatus `json:"status,omitempty"`
}

Paint is the Schema for the paint API

func (*Paint) DeepCopy

func (in *Paint) DeepCopy() *Paint

func (*Paint) DeepCopyInto

func (in *Paint) DeepCopyInto(out *Paint)

func (*Paint) DeepCopyObject

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

func (Paint) GVK added in v0.7.17

GVK returns the GroupVersionKind associated with the resource type.

type PaintClient

type PaintClient interface {
	PaintReader
	PaintWriter
	PaintStatusWriter
}

Client knows how to perform CRUD operations on Paints.

type PaintColor

type PaintColor struct {
	Hue   string  `protobuf:"bytes,1,opt,name=hue,proto3" json:"hue,omitempty"`
	Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PaintColor) Descriptor deprecated

func (*PaintColor) Descriptor() ([]byte, []int)

Deprecated: Use PaintColor.ProtoReflect.Descriptor instead.

func (*PaintColor) GetHue

func (x *PaintColor) GetHue() string

func (*PaintColor) GetValue

func (x *PaintColor) GetValue() float32

func (*PaintColor) ProtoMessage

func (*PaintColor) ProtoMessage()

func (*PaintColor) ProtoReflect added in v0.7.17

func (x *PaintColor) ProtoReflect() protoreflect.Message

func (*PaintColor) Reset

func (x *PaintColor) Reset()

func (*PaintColor) String

func (x *PaintColor) String() string

type PaintList

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

PaintList contains a list of Paint

func (*PaintList) DeepCopy

func (in *PaintList) DeepCopy() *PaintList

func (*PaintList) DeepCopyInto

func (in *PaintList) DeepCopyInto(out *PaintList)

func (*PaintList) DeepCopyObject

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

type PaintReader

type PaintReader interface {
	// Get retrieves a Paint for the given object key
	GetPaint(ctx context.Context, key client.ObjectKey) (*Paint, error)

	// List retrieves list of Paints for a given namespace and list options.
	ListPaint(ctx context.Context, opts ...client.ListOption) (*PaintList, error)
}

Reader knows how to read and list Paints.

type PaintSlice

type PaintSlice []*Paint

PaintSlice represents a slice of *Paint

type PaintSpec

type PaintSpec struct {
	Color *PaintColor `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"`
	// Types that are assignable to PaintType:
	//	*PaintSpec_Acrylic
	//	*PaintSpec_Oil
	PaintType  isPaintSpec_PaintType `protobuf_oneof:"paintType"`
	MyFavorite *any.Any              `protobuf:"bytes,4,opt,name=my_favorite,json=myFavorite,proto3" json:"my_favorite,omitempty"`
	// contains filtered or unexported fields
}

func (*PaintSpec) DeepCopyInto

func (in *PaintSpec) DeepCopyInto(out *PaintSpec)

DeepCopyInto for the Paint.Spec

func (*PaintSpec) Descriptor deprecated

func (*PaintSpec) Descriptor() ([]byte, []int)

Deprecated: Use PaintSpec.ProtoReflect.Descriptor instead.

func (*PaintSpec) GetAcrylic

func (x *PaintSpec) GetAcrylic() *AcrylicType

func (*PaintSpec) GetColor

func (x *PaintSpec) GetColor() *PaintColor

func (*PaintSpec) GetMyFavorite added in v0.7.17

func (x *PaintSpec) GetMyFavorite() *any.Any

func (*PaintSpec) GetOil

func (x *PaintSpec) GetOil() *OilType

func (*PaintSpec) GetPaintType

func (m *PaintSpec) GetPaintType() isPaintSpec_PaintType

func (*PaintSpec) MarshalJSON

func (this *PaintSpec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for PaintSpec

func (*PaintSpec) ProtoMessage

func (*PaintSpec) ProtoMessage()

func (*PaintSpec) ProtoReflect added in v0.7.17

func (x *PaintSpec) ProtoReflect() protoreflect.Message

func (*PaintSpec) Reset

func (x *PaintSpec) Reset()

func (*PaintSpec) String

func (x *PaintSpec) String() string

func (*PaintSpec) UnmarshalJSON

func (this *PaintSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for PaintSpec

type PaintSpec_Acrylic

type PaintSpec_Acrylic struct {
	Acrylic *AcrylicType `protobuf:"bytes,2,opt,name=acrylic,proto3,oneof"`
}

type PaintSpec_Oil

type PaintSpec_Oil struct {
	Oil *OilType `protobuf:"bytes,3,opt,name=oil,proto3,oneof"`
}

type PaintStatus

type PaintStatus struct {
	ObservedGeneration int64 `protobuf:"varint,1,opt,name=observedGeneration,proto3" json:"observedGeneration,omitempty"`
	PercentRemaining   int64 `protobuf:"varint,2,opt,name=percentRemaining,proto3" json:"percentRemaining,omitempty"`
	// contains filtered or unexported fields
}

func (*PaintStatus) DeepCopyInto

func (in *PaintStatus) DeepCopyInto(out *PaintStatus)

DeepCopyInto for the Paint.Status

func (*PaintStatus) Descriptor deprecated

func (*PaintStatus) Descriptor() ([]byte, []int)

Deprecated: Use PaintStatus.ProtoReflect.Descriptor instead.

func (*PaintStatus) GetObservedGeneration

func (x *PaintStatus) GetObservedGeneration() int64

func (*PaintStatus) GetPercentRemaining

func (x *PaintStatus) GetPercentRemaining() int64

func (*PaintStatus) MarshalJSON

func (this *PaintStatus) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for PaintStatus

func (*PaintStatus) ProtoMessage

func (*PaintStatus) ProtoMessage()

func (*PaintStatus) ProtoReflect added in v0.7.17

func (x *PaintStatus) ProtoReflect() protoreflect.Message

func (*PaintStatus) Reset

func (x *PaintStatus) Reset()

func (*PaintStatus) String

func (x *PaintStatus) String() string

func (*PaintStatus) UnmarshalJSON

func (this *PaintStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for PaintStatus

type PaintStatusWriter

type PaintStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given Paint object.
	UpdatePaintStatus(ctx context.Context, obj *Paint, opts ...client.UpdateOption) error

	// Patch patches the given Paint object's subresource.
	PatchPaintStatus(ctx context.Context, obj *Paint, patch client.Patch, opts ...client.PatchOption) error
}

StatusWriter knows how to update status subresource of a Paint object.

type PaintTransitionFunction

type PaintTransitionFunction func(existing, desired *Paint) error

PaintTransitionFunction instructs the PaintWriter how to transition between an existing Paint object and a desired on an Upsert

type PaintWriter

type PaintWriter interface {
	// Create saves the Paint object.
	CreatePaint(ctx context.Context, obj *Paint, opts ...client.CreateOption) error

	// Delete deletes the Paint object.
	DeletePaint(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given Paint object.
	UpdatePaint(ctx context.Context, obj *Paint, opts ...client.UpdateOption) error

	// Patch patches the given Paint object.
	PatchPaint(ctx context.Context, obj *Paint, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all Paint objects matching the given options.
	DeleteAllOfPaint(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the Paint object.
	UpsertPaint(ctx context.Context, obj *Paint, transitionFuncs ...PaintTransitionFunction) error
}

Writer knows how to create, delete, and update Paints.

Directories

Path Synopsis
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
mocks
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
mocks
Package mock_v1sets is a generated GoMock package.
Package mock_v1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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