Documentation
¶
Overview ¶
Generate deepcopy object for memcache/v1beta1 API group
Package v1beta1 contains API Schema definitions for the memcache v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/memcache +k8s:defaulter-gen=TypeMeta +groupName=memcache.cnrm.cloud.google.com
Index ¶
- Variables
- type InstanceMaintenancePolicy
- type InstanceMaintenanceScheduleStatus
- type InstanceMemcacheNodesStatus
- type InstanceMemcacheParameters
- type InstanceNodeConfig
- type InstanceStartTime
- type InstanceWeeklyMaintenanceWindow
- type MemcacheInstance
- type MemcacheInstanceList
- type MemcacheInstanceSpec
- type MemcacheInstanceStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: "memcache.cnrm.cloud.google.com", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme MemcacheInstanceGVK = schema.GroupVersionKind{ Group: SchemeGroupVersion.Group, Version: SchemeGroupVersion.Version, Kind: reflect.TypeOf(MemcacheInstance{}).Name(), } )
Functions ¶
This section is empty.
Types ¶
type InstanceMaintenancePolicy ¶ added in v1.88.0
type InstanceMaintenancePolicy struct {
/* Output only. The time when the policy was created.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
resolution and up to nine fractional digits. */
// +optional
CreateTime *string `json:"createTime,omitempty"`
/* Optional. Description of what this policy is for.
Create/Update methods return INVALID_ARGUMENT if the
length is greater than 512. */
// +optional
Description *string `json:"description,omitempty"`
/* Output only. The time when the policy was updated.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
resolution and up to nine fractional digits. */
// +optional
UpdateTime *string `json:"updateTime,omitempty"`
/* Required. Maintenance window that is applied to resources covered by this policy.
Minimum 1. For the current version, the maximum number of weekly_maintenance_windows
is expected to be one. */
WeeklyMaintenanceWindow []InstanceWeeklyMaintenanceWindow `json:"weeklyMaintenanceWindow"`
}
func (*InstanceMaintenancePolicy) DeepCopy ¶ added in v1.88.0
func (in *InstanceMaintenancePolicy) DeepCopy() *InstanceMaintenancePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceMaintenancePolicy.
func (*InstanceMaintenancePolicy) DeepCopyInto ¶ added in v1.88.0
func (in *InstanceMaintenancePolicy) DeepCopyInto(out *InstanceMaintenancePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceMaintenanceScheduleStatus ¶ added in v1.88.0
type InstanceMaintenanceScheduleStatus struct {
/* Output only. The end time of any upcoming scheduled maintenance for this instance.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
resolution and up to nine fractional digits. */
// +optional
EndTime *string `json:"endTime,omitempty"`
/* Output only. The deadline that the maintenance schedule start time
can not go beyond, including reschedule.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
resolution and up to nine fractional digits. */
// +optional
ScheduleDeadlineTime *string `json:"scheduleDeadlineTime,omitempty"`
/* Output only. The start time of any upcoming scheduled maintenance for this instance.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
resolution and up to nine fractional digits. */
// +optional
StartTime *string `json:"startTime,omitempty"`
}
func (*InstanceMaintenanceScheduleStatus) DeepCopy ¶ added in v1.88.0
func (in *InstanceMaintenanceScheduleStatus) DeepCopy() *InstanceMaintenanceScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceMaintenanceScheduleStatus.
func (*InstanceMaintenanceScheduleStatus) DeepCopyInto ¶ added in v1.88.0
func (in *InstanceMaintenanceScheduleStatus) DeepCopyInto(out *InstanceMaintenanceScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceMemcacheNodesStatus ¶
type InstanceMemcacheNodesStatus struct {
/* Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. */
// +optional
Host *string `json:"host,omitempty"`
/* Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. */
// +optional
NodeId *string `json:"nodeId,omitempty"`
/* The port number of the Memcached server on this node. */
// +optional
Port *int64 `json:"port,omitempty"`
/* Current state of the Memcached node. */
// +optional
State *string `json:"state,omitempty"`
/* Location (GCP Zone) for the Memcached node. */
// +optional
Zone *string `json:"zone,omitempty"`
}
func (*InstanceMemcacheNodesStatus) DeepCopy ¶
func (in *InstanceMemcacheNodesStatus) DeepCopy() *InstanceMemcacheNodesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceMemcacheNodesStatus.
func (*InstanceMemcacheNodesStatus) DeepCopyInto ¶
func (in *InstanceMemcacheNodesStatus) DeepCopyInto(out *InstanceMemcacheNodesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceMemcacheParameters ¶
type InstanceMemcacheParameters struct {
/* This is a unique ID associated with this set of parameters. */
// +optional
Id *string `json:"id,omitempty"`
/* User-defined set of parameters to use in the memcache process. */
// +optional
Params map[string]string `json:"params,omitempty"`
}
func (*InstanceMemcacheParameters) DeepCopy ¶
func (in *InstanceMemcacheParameters) DeepCopy() *InstanceMemcacheParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceMemcacheParameters.
func (*InstanceMemcacheParameters) DeepCopyInto ¶
func (in *InstanceMemcacheParameters) DeepCopyInto(out *InstanceMemcacheParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceNodeConfig ¶
type InstanceNodeConfig struct {
/* Number of CPUs per node. */
CpuCount int64 `json:"cpuCount"`
/* Memory size in Mebibytes for each memcache node. */
MemorySizeMb int64 `json:"memorySizeMb"`
}
func (*InstanceNodeConfig) DeepCopy ¶
func (in *InstanceNodeConfig) DeepCopy() *InstanceNodeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceNodeConfig.
func (*InstanceNodeConfig) DeepCopyInto ¶
func (in *InstanceNodeConfig) DeepCopyInto(out *InstanceNodeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceStartTime ¶ added in v1.88.0
type InstanceStartTime struct {
/* Hours of day in 24 hour format. Should be from 0 to 23.
An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
// +optional
Hours *int64 `json:"hours,omitempty"`
/* Minutes of hour of day. Must be from 0 to 59. */
// +optional
Minutes *int64 `json:"minutes,omitempty"`
/* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
// +optional
Nanos *int64 `json:"nanos,omitempty"`
/* Seconds of minutes of the time. Must normally be from 0 to 59.
An API may allow the value 60 if it allows leap-seconds. */
// +optional
Seconds *int64 `json:"seconds,omitempty"`
}
func (*InstanceStartTime) DeepCopy ¶ added in v1.88.0
func (in *InstanceStartTime) DeepCopy() *InstanceStartTime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStartTime.
func (*InstanceStartTime) DeepCopyInto ¶ added in v1.88.0
func (in *InstanceStartTime) DeepCopyInto(out *InstanceStartTime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceWeeklyMaintenanceWindow ¶ added in v1.88.0
type InstanceWeeklyMaintenanceWindow struct {
/* Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]. */
Day string `json:"day"`
/* Required. The length of the maintenance window, ranging from 3 hours to 8 hours.
A duration in seconds with up to nine fractional digits,
terminated by 's'. Example: "3.5s". */
Duration string `json:"duration"`
/* Required. Start time of the window in UTC time. */
StartTime InstanceStartTime `json:"startTime"`
}
func (*InstanceWeeklyMaintenanceWindow) DeepCopy ¶ added in v1.88.0
func (in *InstanceWeeklyMaintenanceWindow) DeepCopy() *InstanceWeeklyMaintenanceWindow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceWeeklyMaintenanceWindow.
func (*InstanceWeeklyMaintenanceWindow) DeepCopyInto ¶ added in v1.88.0
func (in *InstanceWeeklyMaintenanceWindow) DeepCopyInto(out *InstanceWeeklyMaintenanceWindow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemcacheInstance ¶
type MemcacheInstance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MemcacheInstanceSpec `json:"spec,omitempty"`
Status MemcacheInstanceStatus `json:"status,omitempty"`
}
MemcacheInstance is the Schema for the memcache API +k8s:openapi-gen=true
func (*MemcacheInstance) DeepCopy ¶
func (in *MemcacheInstance) DeepCopy() *MemcacheInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcacheInstance.
func (*MemcacheInstance) DeepCopyInto ¶
func (in *MemcacheInstance) DeepCopyInto(out *MemcacheInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcacheInstance) DeepCopyObject ¶
func (in *MemcacheInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcacheInstanceList ¶
type MemcacheInstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MemcacheInstance `json:"items"`
}
MemcacheInstanceList contains a list of MemcacheInstance
func (*MemcacheInstanceList) DeepCopy ¶
func (in *MemcacheInstanceList) DeepCopy() *MemcacheInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcacheInstanceList.
func (*MemcacheInstanceList) DeepCopyInto ¶
func (in *MemcacheInstanceList) DeepCopyInto(out *MemcacheInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcacheInstanceList) DeepCopyObject ¶
func (in *MemcacheInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcacheInstanceSpec ¶
type MemcacheInstanceSpec struct {
/* A user-visible name for the instance. */
// +optional
DisplayName *string `json:"displayName,omitempty"`
/* Maintenance policy for an instance. */
// +optional
MaintenancePolicy *InstanceMaintenancePolicy `json:"maintenancePolicy,omitempty"`
/* Immutable. User-specified parameters for this memcache instance. */
// +optional
MemcacheParameters *InstanceMemcacheParameters `json:"memcacheParameters,omitempty"`
/* The major version of Memcached software. If not provided, latest supported version will be used.
Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically
determined by our system based on the latest supported minor version. Default value: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5"]. */
// +optional
MemcacheVersion *string `json:"memcacheVersion,omitempty"`
/* The full name of the network to connect the instance to. */
// +optional
NetworkRef *v1alpha1.ResourceRef `json:"networkRef,omitempty"`
/* Immutable. Configuration for memcache nodes. */
NodeConfig InstanceNodeConfig `json:"nodeConfig"`
/* Number of nodes in the memcache instance. */
NodeCount int64 `json:"nodeCount"`
/* Immutable. The region of the Memcache instance. If it is not provided, the provider region is used. */
Region string `json:"region"`
/* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
// +optional
ResourceID *string `json:"resourceID,omitempty"`
/* Immutable. Zones where memcache nodes should be provisioned. If not
provided, all zones will be used. */
// +optional
Zones []string `json:"zones,omitempty"`
}
func (*MemcacheInstanceSpec) DeepCopy ¶
func (in *MemcacheInstanceSpec) DeepCopy() *MemcacheInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcacheInstanceSpec.
func (*MemcacheInstanceSpec) DeepCopyInto ¶
func (in *MemcacheInstanceSpec) DeepCopyInto(out *MemcacheInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemcacheInstanceStatus ¶
type MemcacheInstanceStatus struct {
/* Conditions represent the latest available observations of the
MemcacheInstance's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* Creation timestamp in RFC3339 text format. */
// +optional
CreateTime *string `json:"createTime,omitempty"`
/* Endpoint for Discovery API. */
// +optional
DiscoveryEndpoint *string `json:"discoveryEndpoint,omitempty"`
/* Output only. Published maintenance schedule. */
// +optional
MaintenanceSchedule []InstanceMaintenanceScheduleStatus `json:"maintenanceSchedule,omitempty"`
/* The full version of memcached server running on this instance. */
// +optional
MemcacheFullVersion *string `json:"memcacheFullVersion,omitempty"`
/* Additional information about the instance state, if available. */
// +optional
MemcacheNodes []InstanceMemcacheNodesStatus `json:"memcacheNodes,omitempty"`
/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
// +optional
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
}
func (*MemcacheInstanceStatus) DeepCopy ¶
func (in *MemcacheInstanceStatus) DeepCopy() *MemcacheInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcacheInstanceStatus.
func (*MemcacheInstanceStatus) DeepCopyInto ¶
func (in *MemcacheInstanceStatus) DeepCopyInto(out *MemcacheInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.