GroupName is the group name use in this package
const GroupName = "internal.apiserver.k8s.io"
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
type ConditionStatus string
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
type ServerStorageVersion struct { // The ID of the reporting API server. APIServerID string `json:"apiServerID,omitempty" protobuf:"bytes,1,opt,name=apiServerID"` // The API server encodes the object to this version when persisting it in // the backend (e.g., etcd). EncodingVersion string `json:"encodingVersion,omitempty" protobuf:"bytes,2,opt,name=encodingVersion"` // The API server can decode objects encoded in these versions. // The encodingVersion must be included in the decodableVersions. // +listType=set DecodableVersions []string `json:"decodableVersions,omitempty" protobuf:"bytes,3,opt,name=decodableVersions"` // The API server can serve these versions. // DecodableVersions must include all ServedVersions. // +listType=set ServedVersions []string `json:"servedVersions,omitempty" protobuf:"bytes,4,opt,name=servedVersions"` }
func (in *ServerStorageVersion) DeepCopy() *ServerStorageVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStorageVersion.
func (in *ServerStorageVersion) DeepCopyInto(out *ServerStorageVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerStorageVersion) Descriptor() ([]byte, []int)
func (m *ServerStorageVersion) Marshal() (dAtA []byte, err error)
func (m *ServerStorageVersion) MarshalTo(dAtA []byte) (int, error)
func (m *ServerStorageVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServerStorageVersion) ProtoMessage()
func (m *ServerStorageVersion) Reset()
func (m *ServerStorageVersion) Size() (n int)
func (this *ServerStorageVersion) String() string
func (ServerStorageVersion) SwaggerDoc() map[string]string
func (m *ServerStorageVersion) Unmarshal(dAtA []byte) error
func (m *ServerStorageVersion) XXX_DiscardUnknown()
func (m *ServerStorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ServerStorageVersion) XXX_Merge(src proto.Message)
func (m *ServerStorageVersion) XXX_Size() int
func (m *ServerStorageVersion) XXX_Unmarshal(b []byte) error
Storage version of a specific resource.
type StorageVersion struct { metav1.TypeMeta `json:",inline"` // The name is <group>.<resource>. metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is an empty spec. It is here to comply with Kubernetes API style. Spec StorageVersionSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // API server instances report the version they can decode and the version they // encode objects to when persisting objects in the backend. Status StorageVersionStatus `json:"status" protobuf:"bytes,3,opt,name=status"` }
func (in *StorageVersion) DeepCopy() *StorageVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersion.
func (in *StorageVersion) DeepCopyInto(out *StorageVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StorageVersion) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StorageVersion) Descriptor() ([]byte, []int)
func (m *StorageVersion) Marshal() (dAtA []byte, err error)
func (m *StorageVersion) MarshalTo(dAtA []byte) (int, error)
func (m *StorageVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageVersion) ProtoMessage()
func (m *StorageVersion) Reset()
func (m *StorageVersion) Size() (n int)
func (this *StorageVersion) String() string
func (StorageVersion) SwaggerDoc() map[string]string
func (m *StorageVersion) Unmarshal(dAtA []byte) error
func (m *StorageVersion) XXX_DiscardUnknown()
func (m *StorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StorageVersion) XXX_Merge(src proto.Message)
func (m *StorageVersion) XXX_Size() int
func (m *StorageVersion) XXX_Unmarshal(b []byte) error
Describes the state of the storageVersion at a certain point.
type StorageVersionCondition struct { // Type of the condition. // +required Type StorageVersionConditionType `json:"type" protobuf:"bytes,1,opt,name=type"` // Status of the condition, one of True, False, Unknown. // +required Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // If set, this represents the .metadata.generation that the condition was set based upon. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // The reason for the condition's last transition. // +required Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"` // A human readable message indicating details about the transition. // +required Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` }
func (in *StorageVersionCondition) DeepCopy() *StorageVersionCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionCondition.
func (in *StorageVersionCondition) DeepCopyInto(out *StorageVersionCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageVersionCondition) Descriptor() ([]byte, []int)
func (m *StorageVersionCondition) Marshal() (dAtA []byte, err error)
func (m *StorageVersionCondition) MarshalTo(dAtA []byte) (int, error)
func (m *StorageVersionCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageVersionCondition) ProtoMessage()
func (m *StorageVersionCondition) Reset()
func (m *StorageVersionCondition) Size() (n int)
func (this *StorageVersionCondition) String() string
func (StorageVersionCondition) SwaggerDoc() map[string]string
func (m *StorageVersionCondition) Unmarshal(dAtA []byte) error
func (m *StorageVersionCondition) XXX_DiscardUnknown()
func (m *StorageVersionCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StorageVersionCondition) XXX_Merge(src proto.Message)
func (m *StorageVersionCondition) XXX_Size() int
func (m *StorageVersionCondition) XXX_Unmarshal(b []byte) error
type StorageVersionConditionType string
const ( // Indicates that encoding storage versions reported by all servers are equal. AllEncodingVersionsEqual StorageVersionConditionType = "AllEncodingVersionsEqual" )
A list of StorageVersions.
type StorageVersionList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items holds a list of StorageVersion Items []StorageVersion `json:"items" protobuf:"bytes,2,rep,name=items"` }
func (in *StorageVersionList) DeepCopy() *StorageVersionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionList.
func (in *StorageVersionList) DeepCopyInto(out *StorageVersionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StorageVersionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StorageVersionList) Descriptor() ([]byte, []int)
func (m *StorageVersionList) Marshal() (dAtA []byte, err error)
func (m *StorageVersionList) MarshalTo(dAtA []byte) (int, error)
func (m *StorageVersionList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageVersionList) ProtoMessage()
func (m *StorageVersionList) Reset()
func (m *StorageVersionList) Size() (n int)
func (this *StorageVersionList) String() string
func (StorageVersionList) SwaggerDoc() map[string]string
func (m *StorageVersionList) Unmarshal(dAtA []byte) error
func (m *StorageVersionList) XXX_DiscardUnknown()
func (m *StorageVersionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StorageVersionList) XXX_Merge(src proto.Message)
func (m *StorageVersionList) XXX_Size() int
func (m *StorageVersionList) XXX_Unmarshal(b []byte) error
StorageVersionSpec is an empty spec.
type StorageVersionSpec struct{}
func (in *StorageVersionSpec) DeepCopy() *StorageVersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionSpec.
func (in *StorageVersionSpec) DeepCopyInto(out *StorageVersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageVersionSpec) Descriptor() ([]byte, []int)
func (m *StorageVersionSpec) Marshal() (dAtA []byte, err error)
func (m *StorageVersionSpec) MarshalTo(dAtA []byte) (int, error)
func (m *StorageVersionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageVersionSpec) ProtoMessage()
func (m *StorageVersionSpec) Reset()
func (m *StorageVersionSpec) Size() (n int)
func (this *StorageVersionSpec) String() string
func (StorageVersionSpec) SwaggerDoc() map[string]string
func (m *StorageVersionSpec) Unmarshal(dAtA []byte) error
func (m *StorageVersionSpec) XXX_DiscardUnknown()
func (m *StorageVersionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StorageVersionSpec) XXX_Merge(src proto.Message)
func (m *StorageVersionSpec) XXX_Size() int
func (m *StorageVersionSpec) XXX_Unmarshal(b []byte) error
API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.
type StorageVersionStatus struct { // The reported versions per API server instance. // +optional // +listType=map // +listMapKey=apiServerID StorageVersions []ServerStorageVersion `json:"storageVersions,omitempty" protobuf:"bytes,1,opt,name=storageVersions"` // If all API server instances agree on the same encoding storage version, // then this field is set to that version. Otherwise this field is left empty. // API servers should finish updating its storageVersionStatus entry before // serving write operations, so that this field will be in sync with the reality. // +optional CommonEncodingVersion *string `json:"commonEncodingVersion,omitempty" protobuf:"bytes,2,opt,name=commonEncodingVersion"` // The latest available observations of the storageVersion's state. // +optional // +listType=map // +listMapKey=type Conditions []StorageVersionCondition `json:"conditions,omitempty" protobuf:"bytes,3,opt,name=conditions"` }
func (in *StorageVersionStatus) DeepCopy() *StorageVersionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionStatus.
func (in *StorageVersionStatus) DeepCopyInto(out *StorageVersionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageVersionStatus) Descriptor() ([]byte, []int)
func (m *StorageVersionStatus) Marshal() (dAtA []byte, err error)
func (m *StorageVersionStatus) MarshalTo(dAtA []byte) (int, error)
func (m *StorageVersionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageVersionStatus) ProtoMessage()
func (m *StorageVersionStatus) Reset()
func (m *StorageVersionStatus) Size() (n int)
func (this *StorageVersionStatus) String() string
func (StorageVersionStatus) SwaggerDoc() map[string]string
func (m *StorageVersionStatus) Unmarshal(dAtA []byte) error
func (m *StorageVersionStatus) XXX_DiscardUnknown()
func (m *StorageVersionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StorageVersionStatus) XXX_Merge(src proto.Message)
func (m *StorageVersionStatus) XXX_Size() int
func (m *StorageVersionStatus) XXX_Unmarshal(b []byte) error