v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the gingersnap v1alpha1 API group +kubebuilder:object:generate=true +groupName=gingersnap-project.io

Index

Constants

View Source
const (
	LabelCache          = Group + "/cache"
	LabelCacheNamespace = LabelCache + "-namespace"
)
View Source
const (
	Group = "gingersnap-project.io"
)
View Source
const KindCache = "Cache"
View Source
const KindEagerCacheRule = "EagerCacheRule"
View Source
const KindLazyCacheRule = "LazyCacheRule"

Variables

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

	// SchemeGroupVersion is the same as GroupVersion and is required by client-gen
	SchemeGroupVersion = GroupVersion

	// 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
)
View Source
var (
	CacheDeploymentType_name = map[int32]string{
		0: "LOCAL",
		1: "CLUSTER",
	}
	CacheDeploymentType_value = map[string]int32{
		"LOCAL":   0,
		"CLUSTER": 1,
	}
)

Enum value maps for CacheDeploymentType.

View Source
var (
	DBType_name = map[int32]string{
		0: "POSTGRES_14",
		1: "MYSQL_8",
		2: "SQL_SERVER_2019",
	}
	DBType_value = map[string]int32{
		"POSTGRES_14":     0,
		"MYSQL_8":         1,
		"SQL_SERVER_2019": 2,
	}
)

Enum value maps for DBType.

View Source
var (
	KeyFormat_name = map[int32]string{
		0: "TEXT",
		1: "JSON",
	}
	KeyFormat_value = map[string]int32{
		"TEXT": 0,
		"JSON": 1,
	}
)

Enum value maps for KeyFormat.

View Source
var File_config_cache_v1alpha1_cache_proto protoreflect.FileDescriptor
View Source
var File_config_cache_v1alpha1_rules_proto protoreflect.FileDescriptor

Functions

func EnsureRuleImmutability

func EnsureRuleImmutability(allErrs *field.ErrorList, ruleKind string, a, b CacheRule) error

func FieldMustBeDefined

func FieldMustBeDefined(field string) string

func RegisterEagerRuleValidatingWebhook

func RegisterEagerRuleValidatingWebhook(mgr ctrl.Manager)

RegisterEagerRuleValidatingWebhook explicitly adds the validating webhook to the Webhook Server This is necessary as we need to implement admission.Handler interface directly so that the request context can be used by the runtime client

func RegisterLazyRuleValidatingWebhook

func RegisterLazyRuleValidatingWebhook(mgr ctrl.Manager)

RegisterLazyRuleValidatingWebhook explicitly adds the validating webhook to the Webhook Server This is necessary as we need to implement admission.Handler interface directly so that the request context can be used by the runtime client

func RequireField

func RequireField(allErrs *field.ErrorList, name, value string, p *field.Path)

func RequireNonEmptyArray

func RequireNonEmptyArray(allErrs *field.ErrorList, name string, value []string, p *field.Path)

func StatusError

func StatusError(allErrs field.ErrorList, name, kind string) error

Types

type Cache

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

	Spec   CacheSpec   `json:"spec,omitempty"`
	Status CacheStatus `json:"status,omitempty"`
}

Cache is the Schema for the caches API

func (*Cache) CacheManagerImage

func (c *Cache) CacheManagerImage() string

func (*Cache) CacheService

func (c *Cache) CacheService() CacheService

func (*Cache) Cluster

func (c *Cache) Cluster() bool

func (*Cache) Condition

func (c *Cache) Condition(condition CacheConditionType) CacheCondition

func (*Cache) DBSyncerLimits

func (c *Cache) DBSyncerLimits() v1.ResourceList

func (*Cache) DBSyncerName

func (c *Cache) DBSyncerName() string

func (*Cache) DBSyncerRequests

func (c *Cache) DBSyncerRequests() v1.ResourceList

func (*Cache) DeepCopy

func (in *Cache) DeepCopy() *Cache

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

func (*Cache) DeepCopyInto

func (in *Cache) DeepCopyInto(out *Cache)

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

func (*Cache) DeepCopyObject

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

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

func (*Cache) Default

func (c *Cache) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Cache) DeploymentLimits

func (c *Cache) DeploymentLimits() v1.ResourceList

func (*Cache) DeploymentRequests

func (c *Cache) DeploymentRequests() v1.ResourceList

func (*Cache) Local

func (c *Cache) Local() bool

func (*Cache) SetCondition

func (c *Cache) SetCondition(condition CacheCondition) (updated bool)

func (*Cache) SetupWebhookWithManager

func (c *Cache) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Cache) ValidateCreate

func (c *Cache) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cache) ValidateDelete

func (c *Cache) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cache) ValidateUpdate

func (c *Cache) ValidateUpdate(_ runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CacheCondition

type CacheCondition struct {
	// Type is the type of the condition.
	Type CacheConditionType `json:"type,omitempty"`
	// +kubebuilder:validation:Enum=True;False;Unknown
	// Status is the status of the condition.
	Status metav1.ConditionStatus `json:"status,omitempty"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

CacheCondition indicates the current status of a deployment

type CacheConditionType

type CacheConditionType string

+kubebuilder:validation:Enum=Ready

const (
	CacheConditionReady CacheConditionType = "Ready"
)

type CacheConf

type CacheConf struct {
	CacheSpec *CacheSpec `protobuf:"bytes,1,opt,name=cache_spec,json=cacheSpec,proto3" json:"cacheSpec,omitempty"`
	// map of all the Eager rules attached to this cache. Key should be of the for
	// namespace.name (needs to be a string, NamespacedRef cannot be used).
	EagerCacheRuleSpecs map[string]*EagerCacheRuleSpec `` /* 207-byte string literal not displayed */
	// map of all the Lazy rules attached to this cache. Key should be of the for
	// namespace.name.
	LazyCacheRuleSpecs map[string]*LazyCacheRuleSpec `` /* 204-byte string literal not displayed */
	// contains filtered or unexported fields
}

Document representation of a cache and all the related rules

func (*CacheConf) DeepCopy

func (in *CacheConf) DeepCopy() *CacheConf

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheConf. Required by controller-gen.

func (*CacheConf) DeepCopyInterface

func (in *CacheConf) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CacheConf. Required by controller-gen.

func (*CacheConf) DeepCopyInto

func (in *CacheConf) DeepCopyInto(out *CacheConf)

DeepCopyInto supports using CacheConf within kubernetes types, where deepcopy-gen is used.

func (*CacheConf) Descriptor deprecated

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

Deprecated: Use CacheConf.ProtoReflect.Descriptor instead.

func (*CacheConf) GetCacheSpec

func (x *CacheConf) GetCacheSpec() *CacheSpec

func (*CacheConf) GetEagerCacheRuleSpecs

func (x *CacheConf) GetEagerCacheRuleSpecs() map[string]*EagerCacheRuleSpec

func (*CacheConf) GetLazyCacheRuleSpecs

func (x *CacheConf) GetLazyCacheRuleSpecs() map[string]*LazyCacheRuleSpec

func (*CacheConf) ProtoMessage

func (*CacheConf) ProtoMessage()

func (*CacheConf) ProtoReflect

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

func (*CacheConf) Reset

func (x *CacheConf) Reset()

func (*CacheConf) String

func (x *CacheConf) String() string

type CacheDeploymentSpec

type CacheDeploymentSpec struct {

	// +kubebuilder:validation:Enum=LOCAL;CLUSTER
	// The type of Cache deployment
	Type CacheDeploymentType `protobuf:"varint,1,opt,name=type,proto3,enum=gingersnap.config.cache.v1alpha1.CacheDeploymentType" json:"type,omitempty"`
	// Resource profile for cache pods
	Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
	// Max number of replicas for type CLUSTER
	Replicas int32 `protobuf:"varint,3,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes the spec of the cache provider

func (*CacheDeploymentSpec) DeepCopy

func (in *CacheDeploymentSpec) DeepCopy() *CacheDeploymentSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheDeploymentSpec. Required by controller-gen.

func (*CacheDeploymentSpec) DeepCopyInterface

func (in *CacheDeploymentSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CacheDeploymentSpec. Required by controller-gen.

func (*CacheDeploymentSpec) DeepCopyInto

func (in *CacheDeploymentSpec) DeepCopyInto(out *CacheDeploymentSpec)

DeepCopyInto supports using CacheDeploymentSpec within kubernetes types, where deepcopy-gen is used.

func (*CacheDeploymentSpec) Descriptor deprecated

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

Deprecated: Use CacheDeploymentSpec.ProtoReflect.Descriptor instead.

func (*CacheDeploymentSpec) GetReplicas

func (x *CacheDeploymentSpec) GetReplicas() int32

func (*CacheDeploymentSpec) GetResources

func (x *CacheDeploymentSpec) GetResources() *Resources

func (*CacheDeploymentSpec) GetType

func (*CacheDeploymentSpec) ProtoMessage

func (*CacheDeploymentSpec) ProtoMessage()

func (*CacheDeploymentSpec) ProtoReflect

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

func (*CacheDeploymentSpec) Reset

func (x *CacheDeploymentSpec) Reset()

func (*CacheDeploymentSpec) String

func (x *CacheDeploymentSpec) String() string

type CacheDeploymentType

type CacheDeploymentType int32

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:validation:Type=string The type of cache deployment

const (
	CacheDeploymentType_LOCAL   CacheDeploymentType = 0
	CacheDeploymentType_CLUSTER CacheDeploymentType = 1
)

func (CacheDeploymentType) Descriptor

func (CacheDeploymentType) Enum

func (CacheDeploymentType) EnumDescriptor deprecated

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

Deprecated: Use CacheDeploymentType.Descriptor instead.

func (CacheDeploymentType) MarshalJSON

func (x CacheDeploymentType) MarshalJSON() ([]byte, error)

func (CacheDeploymentType) Number

func (CacheDeploymentType) String

func (x CacheDeploymentType) String() string

func (CacheDeploymentType) Type

func (*CacheDeploymentType) UnmarshalJSON

func (x *CacheDeploymentType) UnmarshalJSON(b []byte) error

type CacheList

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

CacheList contains a list of Cache

func (*CacheList) DeepCopy

func (in *CacheList) DeepCopy() *CacheList

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

func (*CacheList) DeepCopyInto

func (in *CacheList) DeepCopyInto(out *CacheList)

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

func (*CacheList) DeepCopyObject

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

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

type CacheRule

type CacheRule interface {
	MarshallSpec() ([]byte, error)
}

type CacheService

type CacheService struct {
	// Name is the name of the Cache resource that the LazyCacheRule will be applied to
	Name string `json:"name"`
	// Namespace is the namespace in which the Cache CR belongs
	Namespace string `json:"namespace"`
}

CacheService defines the location of the Cache resource that this LazyCacheRule should be applied to

func (CacheService) ApplyLabels

func (s CacheService) ApplyLabels(meta *metav1.ObjectMeta)

func (CacheService) ApplyLabelsToMap

func (s CacheService) ApplyLabelsToMap(m map[string]string)

func (CacheService) DBSyncerCacheServiceBinding

func (s CacheService) DBSyncerCacheServiceBinding() string

func (CacheService) DBSyncerCacheServiceBindingSecret

func (s CacheService) DBSyncerCacheServiceBindingSecret() string

func (CacheService) DBSyncerDataServiceBinding

func (s CacheService) DBSyncerDataServiceBinding() string

func (CacheService) DBSyncerName

func (s CacheService) DBSyncerName() string

func (CacheService) DataSourceServiceBinding

func (s CacheService) DataSourceServiceBinding() string

func (*CacheService) DeepCopy

func (in *CacheService) DeepCopy() *CacheService

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

func (*CacheService) DeepCopyInto

func (in *CacheService) DeepCopyInto(out *CacheService)

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

func (CacheService) EagerCacheConfigMap

func (s CacheService) EagerCacheConfigMap() string

func (CacheService) LabelSelector

func (s CacheService) LabelSelector() map[string]string

func (CacheService) LazyCacheConfigMap

func (s CacheService) LazyCacheConfigMap() string

func (CacheService) String

func (s CacheService) String() string

func (CacheService) SvcName

func (s CacheService) SvcName() string

func (CacheService) UserServiceBindingSecret

func (s CacheService) UserServiceBindingSecret() string

type CacheSpec

type CacheSpec struct {

	// Resource profile for the cache provider
	Deployment *CacheDeploymentSpec `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// Resource profile for the db-syncer
	DbSyncer *DBSyncerDeploymentSpec `protobuf:"bytes,2,opt,name=db_syncer,json=dbSyncer,proto3" json:"dbSyncer,omitempty"`
	// DatasourceRef or a ServiceBindingRef (TODO clarify)
	DataSource *DataSourceSpec `protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"dataSource,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes the desired configuration for a Cache. Only DB Cache Service is supported atm

func (*CacheSpec) DeepCopy

func (in *CacheSpec) DeepCopy() *CacheSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheSpec. Required by controller-gen.

func (*CacheSpec) DeepCopyInterface

func (in *CacheSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CacheSpec. Required by controller-gen.

func (*CacheSpec) DeepCopyInto

func (in *CacheSpec) DeepCopyInto(out *CacheSpec)

DeepCopyInto supports using CacheSpec within kubernetes types, where deepcopy-gen is used.

func (*CacheSpec) Descriptor deprecated

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

Deprecated: Use CacheSpec.ProtoReflect.Descriptor instead.

func (*CacheSpec) GetDataSource

func (x *CacheSpec) GetDataSource() *DataSourceSpec

func (*CacheSpec) GetDbSyncer

func (x *CacheSpec) GetDbSyncer() *DBSyncerDeploymentSpec

func (*CacheSpec) GetDeployment

func (x *CacheSpec) GetDeployment() *CacheDeploymentSpec

func (*CacheSpec) ProtoMessage

func (*CacheSpec) ProtoMessage()

func (*CacheSpec) ProtoReflect

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

func (*CacheSpec) Reset

func (x *CacheSpec) Reset()

func (*CacheSpec) String

func (x *CacheSpec) String() string

type CacheStatus

type CacheStatus struct {
	// +optional
	Conditions []CacheCondition `json:"conditions,omitempty"`
	// +optional
	ServiceBinding *ServiceBinding `json:"binding,omitempty"`
}

CacheStatus defines the observed state of Cache

func (*CacheStatus) DeepCopy

func (in *CacheStatus) DeepCopy() *CacheStatus

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

func (*CacheStatus) DeepCopyInto

func (in *CacheStatus) DeepCopyInto(out *CacheStatus)

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

type DBSyncerDeploymentSpec

type DBSyncerDeploymentSpec struct {

	// Resource profile for db-syncer pods
	Resources *Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes the spec of the db-syncer deployment

func (*DBSyncerDeploymentSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBSyncerDeploymentSpec. Required by controller-gen.

func (*DBSyncerDeploymentSpec) DeepCopyInterface

func (in *DBSyncerDeploymentSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DBSyncerDeploymentSpec. Required by controller-gen.

func (*DBSyncerDeploymentSpec) DeepCopyInto

func (in *DBSyncerDeploymentSpec) DeepCopyInto(out *DBSyncerDeploymentSpec)

DeepCopyInto supports using DBSyncerDeploymentSpec within kubernetes types, where deepcopy-gen is used.

func (*DBSyncerDeploymentSpec) Descriptor deprecated

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

Deprecated: Use DBSyncerDeploymentSpec.ProtoReflect.Descriptor instead.

func (*DBSyncerDeploymentSpec) GetResources

func (x *DBSyncerDeploymentSpec) GetResources() *Resources

func (*DBSyncerDeploymentSpec) ProtoMessage

func (*DBSyncerDeploymentSpec) ProtoMessage()

func (*DBSyncerDeploymentSpec) ProtoReflect

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

func (*DBSyncerDeploymentSpec) Reset

func (x *DBSyncerDeploymentSpec) Reset()

func (*DBSyncerDeploymentSpec) String

func (x *DBSyncerDeploymentSpec) String() string

type DBType

type DBType int32

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:validation:Type=string Type of the database in format DBTYPE_VERSION

const (
	DBType_POSTGRES_14     DBType = 0
	DBType_MYSQL_8         DBType = 1
	DBType_SQL_SERVER_2019 DBType = 2
)

func (DBType) Descriptor

func (DBType) Descriptor() protoreflect.EnumDescriptor

func (DBType) Enum

func (x DBType) Enum() *DBType

func (DBType) EnumDescriptor deprecated

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

Deprecated: Use DBType.Descriptor instead.

func (DBType) MarshalJSON

func (x DBType) MarshalJSON() ([]byte, error)

func (DBType) Number

func (x DBType) Number() protoreflect.EnumNumber

func (*DBType) ServiceBinding

func (dbType *DBType) ServiceBinding() string

func (DBType) String

func (x DBType) String() string

func (DBType) Type

func (DBType) Type() protoreflect.EnumType

func (*DBType) UnmarshalJSON

func (x *DBType) UnmarshalJSON(b []byte) error

type DataSourceSpec

type DataSourceSpec struct {

	// +kubebuilder:validation:Enum=POSTGRES_14;MYSQL_8;SQL_SERVER_2019
	// Type and version of the underlaying DB. Needed to decide which drivers need to be used
	DbType *DBType `` /* 130-byte string literal not displayed */
	// Additional properties. DB specific
	ConnectionProperties map[string]string `` /* 208-byte string literal not displayed */
	// Reference to a local secret containing DB connection details.
	SecretRef *LocalObjectReference `protobuf:"bytes,3,opt,name=secret_ref,json=secretRef,proto3" json:"secretRef,omitempty"`
	// Reference to ServiceBinding provider
	ServiceProviderRef *ServiceRef `protobuf:"bytes,4,opt,name=service_provider_ref,json=serviceProviderRef,proto3" json:"serviceProviderRef,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a data source connection. A map is available for passing implementation specific properties.

func (*DataSourceSpec) DeepCopy

func (in *DataSourceSpec) DeepCopy() *DataSourceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSourceSpec. Required by controller-gen.

func (*DataSourceSpec) DeepCopyInterface

func (in *DataSourceSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DataSourceSpec. Required by controller-gen.

func (*DataSourceSpec) DeepCopyInto

func (in *DataSourceSpec) DeepCopyInto(out *DataSourceSpec)

DeepCopyInto supports using DataSourceSpec within kubernetes types, where deepcopy-gen is used.

func (*DataSourceSpec) Descriptor deprecated

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

Deprecated: Use DataSourceSpec.ProtoReflect.Descriptor instead.

func (*DataSourceSpec) GetConnectionProperties

func (x *DataSourceSpec) GetConnectionProperties() map[string]string

func (*DataSourceSpec) GetDbType

func (x *DataSourceSpec) GetDbType() DBType

func (*DataSourceSpec) GetSecretRef

func (x *DataSourceSpec) GetSecretRef() *LocalObjectReference

func (*DataSourceSpec) GetServiceProviderRef

func (x *DataSourceSpec) GetServiceProviderRef() *ServiceRef

func (*DataSourceSpec) ProtoMessage

func (*DataSourceSpec) ProtoMessage()

func (*DataSourceSpec) ProtoReflect

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

func (*DataSourceSpec) Reset

func (x *DataSourceSpec) Reset()

func (*DataSourceSpec) String

func (x *DataSourceSpec) String() string

type EagerCacheKey

type EagerCacheKey struct {

	// +kubebuilder:validation:Enum=TEXT;JSON
	// Format of the key for the get(key) operation
	Format KeyFormat `protobuf:"varint,1,opt,name=format,proto3,enum=gingersnap.config.cache.v1alpha1.KeyFormat" json:"format,omitempty"`
	// Separator character in case of plain test key format
	KeySeparator string `protobuf:"bytes,2,opt,name=key_separator,json=keySeparator,proto3" json:"keySeparator,omitempty"`
	// Table columns composing the primary key
	KeyColumns []string `protobuf:"bytes,3,rep,name=key_columns,json=keyColumns,proto3" json:"keyColumns,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes how the key is build from the query result row

func (*EagerCacheKey) DeepCopy

func (in *EagerCacheKey) DeepCopy() *EagerCacheKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EagerCacheKey. Required by controller-gen.

func (*EagerCacheKey) DeepCopyInterface

func (in *EagerCacheKey) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EagerCacheKey. Required by controller-gen.

func (*EagerCacheKey) DeepCopyInto

func (in *EagerCacheKey) DeepCopyInto(out *EagerCacheKey)

DeepCopyInto supports using EagerCacheKey within kubernetes types, where deepcopy-gen is used.

func (*EagerCacheKey) Descriptor deprecated

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

Deprecated: Use EagerCacheKey.ProtoReflect.Descriptor instead.

func (*EagerCacheKey) GetFormat

func (x *EagerCacheKey) GetFormat() KeyFormat

func (*EagerCacheKey) GetKeyColumns

func (x *EagerCacheKey) GetKeyColumns() []string

func (*EagerCacheKey) GetKeySeparator

func (x *EagerCacheKey) GetKeySeparator() string

func (*EagerCacheKey) ProtoMessage

func (*EagerCacheKey) ProtoMessage()

func (*EagerCacheKey) ProtoReflect

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

func (*EagerCacheKey) Reset

func (x *EagerCacheKey) Reset()

func (*EagerCacheKey) String

func (x *EagerCacheKey) String() string

type EagerCacheRule

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

	Spec   EagerCacheRuleSpec   `json:"spec,omitempty"`
	Status EagerCacheRuleStatus `json:"status,omitempty"`
}

EagerCacheRule is the Schema for the eagercacherules API

func (*EagerCacheRule) CacheService

func (r *EagerCacheRule) CacheService() CacheService

func (*EagerCacheRule) Condition

func (*EagerCacheRule) ConfigMap

func (r *EagerCacheRule) ConfigMap() string

func (*EagerCacheRule) DeepCopy

func (in *EagerCacheRule) DeepCopy() *EagerCacheRule

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

func (*EagerCacheRule) DeepCopyInto

func (in *EagerCacheRule) DeepCopyInto(out *EagerCacheRule)

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

func (*EagerCacheRule) DeepCopyObject

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

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

func (*EagerCacheRule) Default

func (r *EagerCacheRule) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*EagerCacheRule) Finalizer

func (r *EagerCacheRule) Finalizer() string

func (*EagerCacheRule) MarshallSpec

func (r *EagerCacheRule) MarshallSpec() ([]byte, error)

func (*EagerCacheRule) NamespacedName

func (r *EagerCacheRule) NamespacedName() types.NamespacedName

func (*EagerCacheRule) SetCondition

func (r *EagerCacheRule) SetCondition(condition EagerCacheRuleCondition) (updated bool)

func (*EagerCacheRule) SetupWebhookWithManager

func (r *EagerCacheRule) SetupWebhookWithManager(mgr ctrl.Manager) error

type EagerCacheRuleCondition

type EagerCacheRuleCondition struct {
	// Type is the type of the condition.
	Type EagerCacheRuleConditionType `json:"type,omitempty"`
	// +kubebuilder:validation:Enum=True;False;Unknown
	// Status is the status of the condition.
	Status metav1.ConditionStatus `json:"status,omitempty"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

EagerCacheRuleCondition indicates the current status of a deployment

type EagerCacheRuleConditionType

type EagerCacheRuleConditionType string

+kubebuilder:validation:Enum=Ready

const (
	EagerCacheRuleConditionReady EagerCacheRuleConditionType = "Ready"
)

type EagerCacheRuleList

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

EagerCacheRuleList contains a list of EagerCacheRule

func (*EagerCacheRuleList) DeepCopy

func (in *EagerCacheRuleList) DeepCopy() *EagerCacheRuleList

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

func (*EagerCacheRuleList) DeepCopyInto

func (in *EagerCacheRuleList) DeepCopyInto(out *EagerCacheRuleList)

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

func (*EagerCacheRuleList) DeepCopyObject

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

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

type EagerCacheRuleSpec

type EagerCacheRuleSpec struct {

	// Reference to the related Cache CR
	CacheRef *NamespacedObjectReference `protobuf:"bytes,1,opt,name=cache_ref,json=cacheRef,proto3" json:"cacheRef,omitempty"`
	// Name of the table from where the data will be produced. Format could change depending
	// on the DB: table or schema.table must be at least supported
	TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"tableName,omitempty"`
	// Format of the key for the get(key) operation
	Key *EagerCacheKey `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// Query columns used to build the entry value
	Value *Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a caching rule behaviours

func (*EagerCacheRuleSpec) DeepCopy

func (in *EagerCacheRuleSpec) DeepCopy() *EagerCacheRuleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EagerCacheRuleSpec. Required by controller-gen.

func (*EagerCacheRuleSpec) DeepCopyInterface

func (in *EagerCacheRuleSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EagerCacheRuleSpec. Required by controller-gen.

func (*EagerCacheRuleSpec) DeepCopyInto

func (in *EagerCacheRuleSpec) DeepCopyInto(out *EagerCacheRuleSpec)

DeepCopyInto supports using EagerCacheRuleSpec within kubernetes types, where deepcopy-gen is used.

func (*EagerCacheRuleSpec) Descriptor deprecated

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

Deprecated: Use EagerCacheRuleSpec.ProtoReflect.Descriptor instead.

func (*EagerCacheRuleSpec) GetCacheRef

func (*EagerCacheRuleSpec) GetKey

func (x *EagerCacheRuleSpec) GetKey() *EagerCacheKey

func (*EagerCacheRuleSpec) GetTableName

func (x *EagerCacheRuleSpec) GetTableName() string

func (*EagerCacheRuleSpec) GetValue

func (x *EagerCacheRuleSpec) GetValue() *Value

func (*EagerCacheRuleSpec) ProtoMessage

func (*EagerCacheRuleSpec) ProtoMessage()

func (*EagerCacheRuleSpec) ProtoReflect

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

func (*EagerCacheRuleSpec) Reset

func (x *EagerCacheRuleSpec) Reset()

func (*EagerCacheRuleSpec) String

func (x *EagerCacheRuleSpec) String() string

type EagerCacheRuleStatus

type EagerCacheRuleStatus struct {
	// +optional
	Conditions []EagerCacheRuleCondition `json:"conditions,omitempty"`
}

EagerCacheRuleStatus defines the observed state of EagerCacheRule

func (*EagerCacheRuleStatus) DeepCopy

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

func (*EagerCacheRuleStatus) DeepCopyInto

func (in *EagerCacheRuleStatus) DeepCopyInto(out *EagerCacheRuleStatus)

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

type KeyFormat

type KeyFormat int32

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:validation:Type=string Supported format for the key of the cache entry

const (
	KeyFormat_TEXT KeyFormat = 0
	KeyFormat_JSON KeyFormat = 1
)

func (KeyFormat) Descriptor

func (KeyFormat) Descriptor() protoreflect.EnumDescriptor

func (KeyFormat) Enum

func (x KeyFormat) Enum() *KeyFormat

func (KeyFormat) EnumDescriptor deprecated

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

Deprecated: Use KeyFormat.Descriptor instead.

func (KeyFormat) MarshalJSON

func (x KeyFormat) MarshalJSON() ([]byte, error)

func (KeyFormat) Number

func (x KeyFormat) Number() protoreflect.EnumNumber

func (KeyFormat) String

func (x KeyFormat) String() string

func (KeyFormat) Type

func (*KeyFormat) UnmarshalJSON

func (x *KeyFormat) UnmarshalJSON(b []byte) error

type LazyCacheKey

type LazyCacheKey struct {

	// +kubebuilder:validation:Enum=TEXT;JSON
	// Format of the key for the get(key) operation
	Format KeyFormat `protobuf:"varint,1,opt,name=format,proto3,enum=gingersnap.config.cache.v1alpha1.KeyFormat" json:"format,omitempty"`
	// Separator character in case of plain test key format
	KeySeparator string `protobuf:"bytes,2,opt,name=key_separator,json=keySeparator,proto3" json:"keySeparator,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes how the key is build from the query result row

func (*LazyCacheKey) DeepCopy

func (in *LazyCacheKey) DeepCopy() *LazyCacheKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LazyCacheKey. Required by controller-gen.

func (*LazyCacheKey) DeepCopyInterface

func (in *LazyCacheKey) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LazyCacheKey. Required by controller-gen.

func (*LazyCacheKey) DeepCopyInto

func (in *LazyCacheKey) DeepCopyInto(out *LazyCacheKey)

DeepCopyInto supports using LazyCacheKey within kubernetes types, where deepcopy-gen is used.

func (*LazyCacheKey) Descriptor deprecated

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

Deprecated: Use LazyCacheKey.ProtoReflect.Descriptor instead.

func (*LazyCacheKey) GetFormat

func (x *LazyCacheKey) GetFormat() KeyFormat

func (*LazyCacheKey) GetKeySeparator

func (x *LazyCacheKey) GetKeySeparator() string

func (*LazyCacheKey) ProtoMessage

func (*LazyCacheKey) ProtoMessage()

func (*LazyCacheKey) ProtoReflect

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

func (*LazyCacheKey) Reset

func (x *LazyCacheKey) Reset()

func (*LazyCacheKey) String

func (x *LazyCacheKey) String() string

type LazyCacheRule

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

	Spec   LazyCacheRuleSpec   `json:"spec,omitempty"`
	Status LazyCacheRuleStatus `json:"status,omitempty"`
}

LazyCacheRule is the Schema for the lazycacherules API

func (*LazyCacheRule) CacheService

func (r *LazyCacheRule) CacheService() CacheService

func (*LazyCacheRule) Condition

func (*LazyCacheRule) ConfigMap

func (r *LazyCacheRule) ConfigMap() string

func (*LazyCacheRule) DeepCopy

func (in *LazyCacheRule) DeepCopy() *LazyCacheRule

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

func (*LazyCacheRule) DeepCopyInto

func (in *LazyCacheRule) DeepCopyInto(out *LazyCacheRule)

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

func (*LazyCacheRule) DeepCopyObject

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

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

func (*LazyCacheRule) Default

func (r *LazyCacheRule) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*LazyCacheRule) Finalizer

func (r *LazyCacheRule) Finalizer() string

func (*LazyCacheRule) MarshallSpec

func (r *LazyCacheRule) MarshallSpec() ([]byte, error)

func (*LazyCacheRule) NamespacedName

func (r *LazyCacheRule) NamespacedName() types.NamespacedName

func (*LazyCacheRule) SetCondition

func (r *LazyCacheRule) SetCondition(condition LazyCacheRuleCondition) (updated bool)

func (*LazyCacheRule) SetupWebhookWithManager

func (r *LazyCacheRule) SetupWebhookWithManager(mgr ctrl.Manager) error

type LazyCacheRuleCondition

type LazyCacheRuleCondition struct {
	// Type is the type of the condition.
	Type LazyCacheRuleConditionType `json:"type,omitempty"`
	// +kubebuilder:validation:Enum=True;False;Unknown
	// Status is the status of the condition.
	Status metav1.ConditionStatus `json:"status,omitempty"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

LazyCacheRuleCondition indicates the current status of a deployment

type LazyCacheRuleConditionType

type LazyCacheRuleConditionType string

+kubebuilder:validation:Enum=Ready

const (
	LazyCacheRuleConditionReady LazyCacheRuleConditionType = "Ready"
)

type LazyCacheRuleList

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

LazyCacheRuleList contains a list of LazyCacheRule

func (*LazyCacheRuleList) DeepCopy

func (in *LazyCacheRuleList) DeepCopy() *LazyCacheRuleList

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

func (*LazyCacheRuleList) DeepCopyInto

func (in *LazyCacheRuleList) DeepCopyInto(out *LazyCacheRuleList)

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

func (*LazyCacheRuleList) DeepCopyObject

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

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

type LazyCacheRuleSpec

type LazyCacheRuleSpec struct {

	// Reference to the related Cache CR
	CacheRef *NamespacedObjectReference `protobuf:"bytes,1,opt,name=cache_ref,json=cacheRef,proto3" json:"cacheRef,omitempty"`
	// The select query needed to fetch values from the DB
	Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// Format of the key for the get(key) operation
	Key *LazyCacheKey `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a caching rule behaviours

func (*LazyCacheRuleSpec) DeepCopy

func (in *LazyCacheRuleSpec) DeepCopy() *LazyCacheRuleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LazyCacheRuleSpec. Required by controller-gen.

func (*LazyCacheRuleSpec) DeepCopyInterface

func (in *LazyCacheRuleSpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LazyCacheRuleSpec. Required by controller-gen.

func (*LazyCacheRuleSpec) DeepCopyInto

func (in *LazyCacheRuleSpec) DeepCopyInto(out *LazyCacheRuleSpec)

DeepCopyInto supports using LazyCacheRuleSpec within kubernetes types, where deepcopy-gen is used.

func (*LazyCacheRuleSpec) Descriptor deprecated

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

Deprecated: Use LazyCacheRuleSpec.ProtoReflect.Descriptor instead.

func (*LazyCacheRuleSpec) GetCacheRef

func (x *LazyCacheRuleSpec) GetCacheRef() *NamespacedObjectReference

func (*LazyCacheRuleSpec) GetKey

func (x *LazyCacheRuleSpec) GetKey() *LazyCacheKey

func (*LazyCacheRuleSpec) GetQuery

func (x *LazyCacheRuleSpec) GetQuery() string

func (*LazyCacheRuleSpec) ProtoMessage

func (*LazyCacheRuleSpec) ProtoMessage()

func (*LazyCacheRuleSpec) ProtoReflect

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

func (*LazyCacheRuleSpec) Reset

func (x *LazyCacheRuleSpec) Reset()

func (*LazyCacheRuleSpec) String

func (x *LazyCacheRuleSpec) String() string

type LazyCacheRuleStatus

type LazyCacheRuleStatus struct {
	// +optional
	Conditions []LazyCacheRuleCondition `json:"conditions,omitempty"`
}

LazyCacheRuleStatus defines the observed state of LazyCacheRule

func (*LazyCacheRuleStatus) DeepCopy

func (in *LazyCacheRuleStatus) DeepCopy() *LazyCacheRuleStatus

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

func (*LazyCacheRuleStatus) DeepCopyInto

func (in *LazyCacheRuleStatus) DeepCopyInto(out *LazyCacheRuleStatus)

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

type LocalObjectReference

type LocalObjectReference struct {

	// Resource name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

LocalObjectRef contains enough information to let you locate the referenced object inside the same namespace. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*LocalObjectReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalObjectReference. Required by controller-gen.

func (*LocalObjectReference) DeepCopyInterface

func (in *LocalObjectReference) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LocalObjectReference. Required by controller-gen.

func (*LocalObjectReference) DeepCopyInto

func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference)

DeepCopyInto supports using LocalObjectReference within kubernetes types, where deepcopy-gen is used.

func (*LocalObjectReference) Descriptor deprecated

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

Deprecated: Use LocalObjectReference.ProtoReflect.Descriptor instead.

func (*LocalObjectReference) GetName

func (x *LocalObjectReference) GetName() string

func (*LocalObjectReference) ProtoMessage

func (*LocalObjectReference) ProtoMessage()

func (*LocalObjectReference) ProtoReflect

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

func (*LocalObjectReference) Reset

func (x *LocalObjectReference) Reset()

func (*LocalObjectReference) String

func (x *LocalObjectReference) String() string

type NamespacedObjectReference

type NamespacedObjectReference struct {

	// Resource name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Resource namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

A namespaced reference to a resource +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*NamespacedObjectReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedObjectReference. Required by controller-gen.

func (*NamespacedObjectReference) DeepCopyInterface

func (in *NamespacedObjectReference) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedObjectReference. Required by controller-gen.

func (*NamespacedObjectReference) DeepCopyInto

DeepCopyInto supports using NamespacedObjectReference within kubernetes types, where deepcopy-gen is used.

func (*NamespacedObjectReference) Descriptor deprecated

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

Deprecated: Use NamespacedObjectReference.ProtoReflect.Descriptor instead.

func (*NamespacedObjectReference) GetName

func (x *NamespacedObjectReference) GetName() string

func (*NamespacedObjectReference) GetNamespace

func (x *NamespacedObjectReference) GetNamespace() string

func (*NamespacedObjectReference) ProtoMessage

func (*NamespacedObjectReference) ProtoMessage()

func (*NamespacedObjectReference) ProtoReflect

func (*NamespacedObjectReference) Reset

func (x *NamespacedObjectReference) Reset()

func (*NamespacedObjectReference) String

func (x *NamespacedObjectReference) String() string

type ResourceQuantity

type ResourceQuantity struct {

	// TODO: use the k8s type for quantity. Check the Java side
	// k8s.io.apimachinery.pkg.api.resource.Quantity memory = 1;
	// Memory quantity
	Memory string `protobuf:"bytes,1,opt,name=memory,proto3" json:"memory,omitempty"`
	// TODO: use the k8s type for quantity. Check the Java side
	// k8s.io.apimachinery.pkg.api.resource.Quantity cpu = 2;
	// CPU quantity
	Cpu string `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a resource quantities

func (*ResourceQuantity) DeepCopy

func (in *ResourceQuantity) DeepCopy() *ResourceQuantity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuantity. Required by controller-gen.

func (*ResourceQuantity) DeepCopyInterface

func (in *ResourceQuantity) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuantity. Required by controller-gen.

func (*ResourceQuantity) DeepCopyInto

func (in *ResourceQuantity) DeepCopyInto(out *ResourceQuantity)

DeepCopyInto supports using ResourceQuantity within kubernetes types, where deepcopy-gen is used.

func (*ResourceQuantity) Descriptor deprecated

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

Deprecated: Use ResourceQuantity.ProtoReflect.Descriptor instead.

func (*ResourceQuantity) GetCpu

func (x *ResourceQuantity) GetCpu() string

func (*ResourceQuantity) GetMemory

func (x *ResourceQuantity) GetMemory() string

func (*ResourceQuantity) ProtoMessage

func (*ResourceQuantity) ProtoMessage()

func (*ResourceQuantity) ProtoReflect

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

func (*ResourceQuantity) Reset

func (x *ResourceQuantity) Reset()

func (*ResourceQuantity) String

func (x *ResourceQuantity) String() string

type Resources

type Resources struct {
	Requests *ResourceQuantity `protobuf:"bytes,1,opt,name=requests,proto3" json:"requests,omitempty"`
	Limits   *ResourceQuantity `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a resources profile required for a workload

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources. Required by controller-gen.

func (*Resources) DeepCopyInterface

func (in *Resources) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Resources. Required by controller-gen.

func (*Resources) DeepCopyInto

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

DeepCopyInto supports using Resources within kubernetes types, where deepcopy-gen is used.

func (*Resources) Descriptor deprecated

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

Deprecated: Use Resources.ProtoReflect.Descriptor instead.

func (*Resources) GetLimits

func (x *Resources) GetLimits() *ResourceQuantity

func (*Resources) GetRequests

func (x *Resources) GetRequests() *ResourceQuantity

func (*Resources) ProtoMessage

func (*Resources) ProtoMessage()

func (*Resources) ProtoReflect

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

func (*Resources) Reset

func (x *Resources) Reset()

func (*Resources) String

func (x *Resources) String() string

type ServiceBinding

type ServiceBinding struct {
	Name string `json:"name,omitempty"`
}

func (*ServiceBinding) DeepCopy

func (in *ServiceBinding) DeepCopy() *ServiceBinding

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

func (*ServiceBinding) DeepCopyInto

func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)

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

type ServiceRef

type ServiceRef struct {

	// API version of the referent.
	ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"apiVersion,omitempty"`
	// Kind of the referent.
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// Name of the referent.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes a ServiceBinding provider in the Cache namespace

func (*ServiceRef) DeepCopy

func (in *ServiceRef) DeepCopy() *ServiceRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRef. Required by controller-gen.

func (*ServiceRef) DeepCopyInterface

func (in *ServiceRef) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRef. Required by controller-gen.

func (*ServiceRef) DeepCopyInto

func (in *ServiceRef) DeepCopyInto(out *ServiceRef)

DeepCopyInto supports using ServiceRef within kubernetes types, where deepcopy-gen is used.

func (*ServiceRef) Descriptor deprecated

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

Deprecated: Use ServiceRef.ProtoReflect.Descriptor instead.

func (*ServiceRef) GetApiVersion

func (x *ServiceRef) GetApiVersion() string

func (*ServiceRef) GetKind

func (x *ServiceRef) GetKind() string

func (*ServiceRef) GetName

func (x *ServiceRef) GetName() string

func (*ServiceRef) ProtoMessage

func (*ServiceRef) ProtoMessage()

func (*ServiceRef) ProtoReflect

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

func (*ServiceRef) Reset

func (x *ServiceRef) Reset()

func (*ServiceRef) String

func (x *ServiceRef) String() string

type Value

type Value struct {

	// Table columns that will be fetched from the DB (select clause)
	ValueColumns []string `protobuf:"bytes,1,rep,name=value_columns,json=valueColumns,proto3" json:"valueColumns,omitempty"`
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Describes how the entry value is build from the query result row

func (*Value) DeepCopy

func (in *Value) DeepCopy() *Value

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Value. Required by controller-gen.

func (*Value) DeepCopyInterface

func (in *Value) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Value. Required by controller-gen.

func (*Value) DeepCopyInto

func (in *Value) DeepCopyInto(out *Value)

DeepCopyInto supports using Value within kubernetes types, where deepcopy-gen is used.

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetValueColumns

func (x *Value) GetValueColumns() []string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Jump to

Keyboard shortcuts

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