Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the gingersnap v1alpha1 API group +kubebuilder:object:generate=true +groupName=gingersnap-project.io
Index ¶
- Constants
- Variables
- func EnsureRuleImmutability(allErrs *field.ErrorList, ruleKind string, a, b CacheRule) error
- func FieldMustBeDefined(field string) string
- func RegisterEagerRuleValidatingWebhook(mgr ctrl.Manager)
- func RegisterLazyRuleValidatingWebhook(mgr ctrl.Manager)
- func RequireField(allErrs *field.ErrorList, name, value string, p *field.Path)
- func RequireNonEmptyArray(allErrs *field.ErrorList, name string, value []string, p *field.Path)
- func StatusError(allErrs field.ErrorList, name, kind string) error
- type Cache
- func (c *Cache) CacheManagerImage() string
- func (c *Cache) CacheService() CacheService
- func (c *Cache) Cluster() bool
- func (c *Cache) Condition(condition CacheConditionType) CacheCondition
- func (c *Cache) DBSyncerLimits() v1.ResourceList
- func (c *Cache) DBSyncerName() string
- func (c *Cache) DBSyncerRequests() v1.ResourceList
- func (in *Cache) DeepCopy() *Cache
- func (in *Cache) DeepCopyInto(out *Cache)
- func (in *Cache) DeepCopyObject() runtime.Object
- func (c *Cache) Default()
- func (c *Cache) DeploymentLimits() v1.ResourceList
- func (c *Cache) DeploymentRequests() v1.ResourceList
- func (c *Cache) Local() bool
- func (c *Cache) SetCondition(condition CacheCondition) (updated bool)
- func (c *Cache) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *Cache) ValidateCreate() error
- func (c *Cache) ValidateDelete() error
- func (c *Cache) ValidateUpdate(_ runtime.Object) error
- type CacheCondition
- type CacheConditionType
- type CacheConf
- func (in *CacheConf) DeepCopy() *CacheConf
- func (in *CacheConf) DeepCopyInterface() interface{}
- func (in *CacheConf) DeepCopyInto(out *CacheConf)
- func (*CacheConf) Descriptor() ([]byte, []int)deprecated
- func (x *CacheConf) GetCacheSpec() *CacheSpec
- func (x *CacheConf) GetEagerCacheRuleSpecs() map[string]*EagerCacheRuleSpec
- func (x *CacheConf) GetLazyCacheRuleSpecs() map[string]*LazyCacheRuleSpec
- func (*CacheConf) ProtoMessage()
- func (x *CacheConf) ProtoReflect() protoreflect.Message
- func (x *CacheConf) Reset()
- func (x *CacheConf) String() string
- type CacheDeploymentSpec
- func (in *CacheDeploymentSpec) DeepCopy() *CacheDeploymentSpec
- func (in *CacheDeploymentSpec) DeepCopyInterface() interface{}
- func (in *CacheDeploymentSpec) DeepCopyInto(out *CacheDeploymentSpec)
- func (*CacheDeploymentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *CacheDeploymentSpec) GetReplicas() int32
- func (x *CacheDeploymentSpec) GetResources() *Resources
- func (x *CacheDeploymentSpec) GetType() CacheDeploymentType
- func (*CacheDeploymentSpec) ProtoMessage()
- func (x *CacheDeploymentSpec) ProtoReflect() protoreflect.Message
- func (x *CacheDeploymentSpec) Reset()
- func (x *CacheDeploymentSpec) String() string
- type CacheDeploymentType
- func (CacheDeploymentType) Descriptor() protoreflect.EnumDescriptor
- func (x CacheDeploymentType) Enum() *CacheDeploymentType
- func (CacheDeploymentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CacheDeploymentType) MarshalJSON() ([]byte, error)
- func (x CacheDeploymentType) Number() protoreflect.EnumNumber
- func (x CacheDeploymentType) String() string
- func (CacheDeploymentType) Type() protoreflect.EnumType
- func (x *CacheDeploymentType) UnmarshalJSON(b []byte) error
- type CacheList
- type CacheRule
- type CacheService
- func (s CacheService) ApplyLabels(meta *metav1.ObjectMeta)
- func (s CacheService) ApplyLabelsToMap(m map[string]string)
- func (s CacheService) DBSyncerCacheServiceBinding() string
- func (s CacheService) DBSyncerCacheServiceBindingSecret() string
- func (s CacheService) DBSyncerDataServiceBinding() string
- func (s CacheService) DBSyncerName() string
- func (s CacheService) DataSourceServiceBinding() string
- func (in *CacheService) DeepCopy() *CacheService
- func (in *CacheService) DeepCopyInto(out *CacheService)
- func (s CacheService) EagerCacheConfigMap() string
- func (s CacheService) LabelSelector() map[string]string
- func (s CacheService) LazyCacheConfigMap() string
- func (s CacheService) String() string
- func (s CacheService) SvcName() string
- func (s CacheService) UserServiceBindingSecret() string
- type CacheSpec
- func (in *CacheSpec) DeepCopy() *CacheSpec
- func (in *CacheSpec) DeepCopyInterface() interface{}
- func (in *CacheSpec) DeepCopyInto(out *CacheSpec)
- func (*CacheSpec) Descriptor() ([]byte, []int)deprecated
- func (x *CacheSpec) GetDataSource() *DataSourceSpec
- func (x *CacheSpec) GetDbSyncer() *DBSyncerDeploymentSpec
- func (x *CacheSpec) GetDeployment() *CacheDeploymentSpec
- func (*CacheSpec) ProtoMessage()
- func (x *CacheSpec) ProtoReflect() protoreflect.Message
- func (x *CacheSpec) Reset()
- func (x *CacheSpec) String() string
- type CacheStatus
- type DBSyncerDeploymentSpec
- func (in *DBSyncerDeploymentSpec) DeepCopy() *DBSyncerDeploymentSpec
- func (in *DBSyncerDeploymentSpec) DeepCopyInterface() interface{}
- func (in *DBSyncerDeploymentSpec) DeepCopyInto(out *DBSyncerDeploymentSpec)
- func (*DBSyncerDeploymentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *DBSyncerDeploymentSpec) GetResources() *Resources
- func (*DBSyncerDeploymentSpec) ProtoMessage()
- func (x *DBSyncerDeploymentSpec) ProtoReflect() protoreflect.Message
- func (x *DBSyncerDeploymentSpec) Reset()
- func (x *DBSyncerDeploymentSpec) String() string
- type DBType
- func (DBType) Descriptor() protoreflect.EnumDescriptor
- func (x DBType) Enum() *DBType
- func (DBType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DBType) MarshalJSON() ([]byte, error)
- func (x DBType) Number() protoreflect.EnumNumber
- func (dbType *DBType) ServiceBinding() string
- func (x DBType) String() string
- func (DBType) Type() protoreflect.EnumType
- func (x *DBType) UnmarshalJSON(b []byte) error
- type DataSourceSpec
- func (in *DataSourceSpec) DeepCopy() *DataSourceSpec
- func (in *DataSourceSpec) DeepCopyInterface() interface{}
- func (in *DataSourceSpec) DeepCopyInto(out *DataSourceSpec)
- func (*DataSourceSpec) Descriptor() ([]byte, []int)deprecated
- func (x *DataSourceSpec) GetConnectionProperties() map[string]string
- func (x *DataSourceSpec) GetDbType() DBType
- func (x *DataSourceSpec) GetSecretRef() *LocalObjectReference
- func (x *DataSourceSpec) GetServiceProviderRef() *ServiceRef
- func (*DataSourceSpec) ProtoMessage()
- func (x *DataSourceSpec) ProtoReflect() protoreflect.Message
- func (x *DataSourceSpec) Reset()
- func (x *DataSourceSpec) String() string
- type EagerCacheKey
- func (in *EagerCacheKey) DeepCopy() *EagerCacheKey
- func (in *EagerCacheKey) DeepCopyInterface() interface{}
- func (in *EagerCacheKey) DeepCopyInto(out *EagerCacheKey)
- func (*EagerCacheKey) Descriptor() ([]byte, []int)deprecated
- func (x *EagerCacheKey) GetFormat() KeyFormat
- func (x *EagerCacheKey) GetKeyColumns() []string
- func (x *EagerCacheKey) GetKeySeparator() string
- func (*EagerCacheKey) ProtoMessage()
- func (x *EagerCacheKey) ProtoReflect() protoreflect.Message
- func (x *EagerCacheKey) Reset()
- func (x *EagerCacheKey) String() string
- type EagerCacheRule
- func (r *EagerCacheRule) CacheService() CacheService
- func (r *EagerCacheRule) Condition(condition EagerCacheRuleConditionType) EagerCacheRuleCondition
- func (r *EagerCacheRule) ConfigMap() string
- func (in *EagerCacheRule) DeepCopy() *EagerCacheRule
- func (in *EagerCacheRule) DeepCopyInto(out *EagerCacheRule)
- func (in *EagerCacheRule) DeepCopyObject() runtime.Object
- func (r *EagerCacheRule) Default()
- func (r *EagerCacheRule) Finalizer() string
- func (r *EagerCacheRule) MarshallSpec() ([]byte, error)
- func (r *EagerCacheRule) NamespacedName() types.NamespacedName
- func (r *EagerCacheRule) SetCondition(condition EagerCacheRuleCondition) (updated bool)
- func (r *EagerCacheRule) SetupWebhookWithManager(mgr ctrl.Manager) error
- type EagerCacheRuleCondition
- type EagerCacheRuleConditionType
- type EagerCacheRuleList
- type EagerCacheRuleSpec
- func (in *EagerCacheRuleSpec) DeepCopy() *EagerCacheRuleSpec
- func (in *EagerCacheRuleSpec) DeepCopyInterface() interface{}
- func (in *EagerCacheRuleSpec) DeepCopyInto(out *EagerCacheRuleSpec)
- func (*EagerCacheRuleSpec) Descriptor() ([]byte, []int)deprecated
- func (x *EagerCacheRuleSpec) GetCacheRef() *NamespacedObjectReference
- func (x *EagerCacheRuleSpec) GetKey() *EagerCacheKey
- func (x *EagerCacheRuleSpec) GetTableName() string
- func (x *EagerCacheRuleSpec) GetValue() *Value
- func (*EagerCacheRuleSpec) ProtoMessage()
- func (x *EagerCacheRuleSpec) ProtoReflect() protoreflect.Message
- func (x *EagerCacheRuleSpec) Reset()
- func (x *EagerCacheRuleSpec) String() string
- type EagerCacheRuleStatus
- type KeyFormat
- func (KeyFormat) Descriptor() protoreflect.EnumDescriptor
- func (x KeyFormat) Enum() *KeyFormat
- func (KeyFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyFormat) MarshalJSON() ([]byte, error)
- func (x KeyFormat) Number() protoreflect.EnumNumber
- func (x KeyFormat) String() string
- func (KeyFormat) Type() protoreflect.EnumType
- func (x *KeyFormat) UnmarshalJSON(b []byte) error
- type LazyCacheKey
- func (in *LazyCacheKey) DeepCopy() *LazyCacheKey
- func (in *LazyCacheKey) DeepCopyInterface() interface{}
- func (in *LazyCacheKey) DeepCopyInto(out *LazyCacheKey)
- func (*LazyCacheKey) Descriptor() ([]byte, []int)deprecated
- func (x *LazyCacheKey) GetFormat() KeyFormat
- func (x *LazyCacheKey) GetKeySeparator() string
- func (*LazyCacheKey) ProtoMessage()
- func (x *LazyCacheKey) ProtoReflect() protoreflect.Message
- func (x *LazyCacheKey) Reset()
- func (x *LazyCacheKey) String() string
- type LazyCacheRule
- func (r *LazyCacheRule) CacheService() CacheService
- func (r *LazyCacheRule) Condition(condition LazyCacheRuleConditionType) LazyCacheRuleCondition
- func (r *LazyCacheRule) ConfigMap() string
- func (in *LazyCacheRule) DeepCopy() *LazyCacheRule
- func (in *LazyCacheRule) DeepCopyInto(out *LazyCacheRule)
- func (in *LazyCacheRule) DeepCopyObject() runtime.Object
- func (r *LazyCacheRule) Default()
- func (r *LazyCacheRule) Finalizer() string
- func (r *LazyCacheRule) MarshallSpec() ([]byte, error)
- func (r *LazyCacheRule) NamespacedName() types.NamespacedName
- func (r *LazyCacheRule) SetCondition(condition LazyCacheRuleCondition) (updated bool)
- func (r *LazyCacheRule) SetupWebhookWithManager(mgr ctrl.Manager) error
- type LazyCacheRuleCondition
- type LazyCacheRuleConditionType
- type LazyCacheRuleList
- type LazyCacheRuleSpec
- func (in *LazyCacheRuleSpec) DeepCopy() *LazyCacheRuleSpec
- func (in *LazyCacheRuleSpec) DeepCopyInterface() interface{}
- func (in *LazyCacheRuleSpec) DeepCopyInto(out *LazyCacheRuleSpec)
- func (*LazyCacheRuleSpec) Descriptor() ([]byte, []int)deprecated
- func (x *LazyCacheRuleSpec) GetCacheRef() *NamespacedObjectReference
- func (x *LazyCacheRuleSpec) GetKey() *LazyCacheKey
- func (x *LazyCacheRuleSpec) GetQuery() string
- func (*LazyCacheRuleSpec) ProtoMessage()
- func (x *LazyCacheRuleSpec) ProtoReflect() protoreflect.Message
- func (x *LazyCacheRuleSpec) Reset()
- func (x *LazyCacheRuleSpec) String() string
- type LazyCacheRuleStatus
- type LocalObjectReference
- func (in *LocalObjectReference) DeepCopy() *LocalObjectReference
- func (in *LocalObjectReference) DeepCopyInterface() interface{}
- func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference)
- func (*LocalObjectReference) Descriptor() ([]byte, []int)deprecated
- func (x *LocalObjectReference) GetName() string
- func (*LocalObjectReference) ProtoMessage()
- func (x *LocalObjectReference) ProtoReflect() protoreflect.Message
- func (x *LocalObjectReference) Reset()
- func (x *LocalObjectReference) String() string
- type NamespacedObjectReference
- func (in *NamespacedObjectReference) DeepCopy() *NamespacedObjectReference
- func (in *NamespacedObjectReference) DeepCopyInterface() interface{}
- func (in *NamespacedObjectReference) DeepCopyInto(out *NamespacedObjectReference)
- func (*NamespacedObjectReference) Descriptor() ([]byte, []int)deprecated
- func (x *NamespacedObjectReference) GetName() string
- func (x *NamespacedObjectReference) GetNamespace() string
- func (*NamespacedObjectReference) ProtoMessage()
- func (x *NamespacedObjectReference) ProtoReflect() protoreflect.Message
- func (x *NamespacedObjectReference) Reset()
- func (x *NamespacedObjectReference) String() string
- type ResourceQuantity
- func (in *ResourceQuantity) DeepCopy() *ResourceQuantity
- func (in *ResourceQuantity) DeepCopyInterface() interface{}
- func (in *ResourceQuantity) DeepCopyInto(out *ResourceQuantity)
- func (*ResourceQuantity) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceQuantity) GetCpu() string
- func (x *ResourceQuantity) GetMemory() string
- func (*ResourceQuantity) ProtoMessage()
- func (x *ResourceQuantity) ProtoReflect() protoreflect.Message
- func (x *ResourceQuantity) Reset()
- func (x *ResourceQuantity) String() string
- type Resources
- func (in *Resources) DeepCopy() *Resources
- func (in *Resources) DeepCopyInterface() interface{}
- func (in *Resources) DeepCopyInto(out *Resources)
- func (*Resources) Descriptor() ([]byte, []int)deprecated
- func (x *Resources) GetLimits() *ResourceQuantity
- func (x *Resources) GetRequests() *ResourceQuantity
- func (*Resources) ProtoMessage()
- func (x *Resources) ProtoReflect() protoreflect.Message
- func (x *Resources) Reset()
- func (x *Resources) String() string
- type ServiceBinding
- type ServiceRef
- func (in *ServiceRef) DeepCopy() *ServiceRef
- func (in *ServiceRef) DeepCopyInterface() interface{}
- func (in *ServiceRef) DeepCopyInto(out *ServiceRef)
- func (*ServiceRef) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceRef) GetApiVersion() string
- func (x *ServiceRef) GetKind() string
- func (x *ServiceRef) GetName() string
- func (*ServiceRef) ProtoMessage()
- func (x *ServiceRef) ProtoReflect() protoreflect.Message
- func (x *ServiceRef) Reset()
- func (x *ServiceRef) String() string
- type Value
- func (in *Value) DeepCopy() *Value
- func (in *Value) DeepCopyInterface() interface{}
- func (in *Value) DeepCopyInto(out *Value)
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetValueColumns() []string
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
Constants ¶
const ( LabelCache = Group + "/cache" LabelCacheNamespace = LabelCache + "-namespace" )
const (
Group = "gingersnap-project.io"
)
const KindCache = "Cache"
const KindEagerCacheRule = "EagerCacheRule"
const KindLazyCacheRule = "LazyCacheRule"
Variables ¶
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 )
var ( CacheDeploymentType_name = map[int32]string{ 0: "LOCAL", 1: "CLUSTER", } CacheDeploymentType_value = map[string]int32{ "LOCAL": 0, "CLUSTER": 1, } )
Enum value maps for CacheDeploymentType.
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.
var ( KeyFormat_name = map[int32]string{ 0: "TEXT", 1: "JSON", } KeyFormat_value = map[string]int32{ "TEXT": 0, "JSON": 1, } )
Enum value maps for KeyFormat.
var File_config_cache_v1alpha1_cache_proto protoreflect.FileDescriptor
var File_config_cache_v1alpha1_rules_proto protoreflect.FileDescriptor
Functions ¶
func EnsureRuleImmutability ¶
func FieldMustBeDefined ¶
func RegisterEagerRuleValidatingWebhook ¶
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 ¶
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 RequireNonEmptyArray ¶
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 (*Cache) CacheService ¶
func (c *Cache) CacheService() CacheService
func (*Cache) Condition ¶
func (c *Cache) Condition(condition CacheConditionType) CacheCondition
func (*Cache) DBSyncerLimits ¶
func (c *Cache) DBSyncerLimits() v1.ResourceList
func (*Cache) DBSyncerName ¶
func (*Cache) DBSyncerRequests ¶
func (c *Cache) DBSyncerRequests() v1.ResourceList
func (*Cache) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cache.
func (*Cache) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cache) DeepCopyObject ¶
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) SetCondition ¶
func (c *Cache) SetCondition(condition CacheCondition) (updated bool)
func (*Cache) SetupWebhookWithManager ¶
func (*Cache) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Cache) ValidateDelete ¶
ValidateDelete 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 ¶
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 ¶
DeepCopyInto supports using CacheConf within kubernetes types, where deepcopy-gen is used.
func (*CacheConf) Descriptor
deprecated
func (*CacheConf) GetCacheSpec ¶
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
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 (x *CacheDeploymentSpec) GetType() CacheDeploymentType
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) Descriptor() protoreflect.EnumDescriptor
func (CacheDeploymentType) Enum ¶
func (x CacheDeploymentType) Enum() *CacheDeploymentType
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 (x CacheDeploymentType) Number() protoreflect.EnumNumber
func (CacheDeploymentType) String ¶
func (x CacheDeploymentType) String() string
func (CacheDeploymentType) Type ¶
func (CacheDeploymentType) Type() protoreflect.EnumType
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheList.
func (*CacheList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CacheList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
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 ¶
DeepCopyInto supports using CacheSpec within kubernetes types, where deepcopy-gen is used.
func (*CacheSpec) Descriptor
deprecated
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
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 ¶
func (in *DBSyncerDeploymentSpec) DeepCopy() *DBSyncerDeploymentSpec
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
func (DBType) Descriptor ¶
func (DBType) Descriptor() protoreflect.EnumDescriptor
func (DBType) EnumDescriptor
deprecated
func (DBType) MarshalJSON ¶
func (DBType) Number ¶
func (x DBType) Number() protoreflect.EnumNumber
func (*DBType) ServiceBinding ¶
func (DBType) Type ¶
func (DBType) Type() protoreflect.EnumType
func (*DBType) UnmarshalJSON ¶
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 (r *EagerCacheRule) Condition(condition EagerCacheRuleConditionType) EagerCacheRuleCondition
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 (x *EagerCacheRuleSpec) GetCacheRef() *NamespacedObjectReference
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 ¶
func (in *EagerCacheRuleStatus) DeepCopy() *EagerCacheRuleStatus
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
func (KeyFormat) Descriptor ¶
func (KeyFormat) Descriptor() protoreflect.EnumDescriptor
func (KeyFormat) EnumDescriptor
deprecated
func (KeyFormat) MarshalJSON ¶
func (KeyFormat) Number ¶
func (x KeyFormat) Number() protoreflect.EnumNumber
func (KeyFormat) Type ¶
func (KeyFormat) Type() protoreflect.EnumType
func (*KeyFormat) UnmarshalJSON ¶
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 (r *LazyCacheRule) Condition(condition LazyCacheRuleConditionType) LazyCacheRuleCondition
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 ¶
func (in *LocalObjectReference) DeepCopy() *LocalObjectReference
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 ¶
func (in *NamespacedObjectReference) DeepCopy() *NamespacedObjectReference
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 ¶
func (in *NamespacedObjectReference) DeepCopyInto(out *NamespacedObjectReference)
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 (x *NamespacedObjectReference) ProtoReflect() protoreflect.Message
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 ¶
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 ¶
DeepCopyInto supports using Resources within kubernetes types, where deepcopy-gen is used.
func (*Resources) Descriptor
deprecated
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
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 ¶
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 ¶
DeepCopyInto supports using Value within kubernetes types, where deepcopy-gen is used.
func (*Value) Descriptor
deprecated
func (*Value) GetValueColumns ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
Source Files
¶
- cache_type_methods.go
- cache_types.go
- cache_webhook.go
- cacheservice.go
- doc.go
- eagercacherule_type_methods.go
- eagercacherule_types.go
- eagercacherule_webhook.go
- groupversion_info.go
- lazycacherule_type_methods.go
- lazycacherule_types.go
- lazycacherule_webhook.go
- rules_type_methods.go
- webhook_common.go
- zz_cache.pb.go
- zz_cache_deepcopy.pb.go
- zz_generated.deepcopy.go
- zz_rules.pb.go
- zz_rules_deepcopy.pb.go