v1alpha1

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ServerStorageVersion

type ServerStorageVersion struct {
	// The ID of the reporting API server.
	ApiServerID *string `protobuf:"bytes,1,opt,name=apiServerID" json:"apiServerID,omitempty"`
	// The API server encodes the object to this version when persisting it in
	// the backend (e.g., etcd).
	EncodingVersion *string `protobuf:"bytes,2,opt,name=encodingVersion" json:"encodingVersion,omitempty"`
	// The API server can decode objects encoded in these versions.
	// The encodingVersion must be included in the decodableVersions.
	// +listType=set
	DecodableVersions    []string `protobuf:"bytes,3,rep,name=decodableVersions" json:"decodableVersions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.

func (*ServerStorageVersion) Descriptor

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

func (*ServerStorageVersion) GetApiServerID

func (m *ServerStorageVersion) GetApiServerID() string

func (*ServerStorageVersion) GetDecodableVersions

func (m *ServerStorageVersion) GetDecodableVersions() []string

func (*ServerStorageVersion) GetEncodingVersion

func (m *ServerStorageVersion) GetEncodingVersion() string

func (*ServerStorageVersion) Marshal

func (m *ServerStorageVersion) Marshal() (dAtA []byte, err error)

func (*ServerStorageVersion) MarshalTo

func (m *ServerStorageVersion) MarshalTo(dAtA []byte) (int, error)

func (*ServerStorageVersion) MarshalToSizedBuffer

func (m *ServerStorageVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServerStorageVersion) ProtoMessage

func (*ServerStorageVersion) ProtoMessage()

func (*ServerStorageVersion) Reset

func (m *ServerStorageVersion) Reset()

func (*ServerStorageVersion) Size

func (m *ServerStorageVersion) Size() (n int)

func (*ServerStorageVersion) String

func (m *ServerStorageVersion) String() string

func (*ServerStorageVersion) Unmarshal

func (m *ServerStorageVersion) Unmarshal(dAtA []byte) error

func (*ServerStorageVersion) XXX_DiscardUnknown

func (m *ServerStorageVersion) XXX_DiscardUnknown()

func (*ServerStorageVersion) XXX_Marshal

func (m *ServerStorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerStorageVersion) XXX_Merge

func (m *ServerStorageVersion) XXX_Merge(src proto.Message)

func (*ServerStorageVersion) XXX_Size

func (m *ServerStorageVersion) XXX_Size() int

func (*ServerStorageVersion) XXX_Unmarshal

func (m *ServerStorageVersion) XXX_Unmarshal(b []byte) error

type StorageVersion

type StorageVersion struct {
	// The name is <group>.<resource>.
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec is an empty spec. It is here to comply with Kubernetes API style.
	Spec *StorageVersionSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// API server instances report the version they can decode and the version they
	// encode objects to when persisting objects in the backend.
	Status               *StorageVersionStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Storage version of a specific resource.

func (*StorageVersion) Descriptor

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

func (*StorageVersion) GetMetadata

func (m *StorageVersion) GetMetadata() *v1.ObjectMeta

func (*StorageVersion) GetSpec

func (m *StorageVersion) GetSpec() *StorageVersionSpec

func (*StorageVersion) GetStatus

func (m *StorageVersion) GetStatus() *StorageVersionStatus

func (*StorageVersion) Marshal

func (m *StorageVersion) Marshal() (dAtA []byte, err error)

func (*StorageVersion) MarshalTo

func (m *StorageVersion) MarshalTo(dAtA []byte) (int, error)

func (*StorageVersion) MarshalToSizedBuffer

func (m *StorageVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageVersion) ProtoMessage

func (*StorageVersion) ProtoMessage()

func (*StorageVersion) Reset

func (m *StorageVersion) Reset()

func (*StorageVersion) Size

func (m *StorageVersion) Size() (n int)

func (*StorageVersion) String

func (m *StorageVersion) String() string

func (*StorageVersion) Unmarshal

func (m *StorageVersion) Unmarshal(dAtA []byte) error

func (*StorageVersion) XXX_DiscardUnknown

func (m *StorageVersion) XXX_DiscardUnknown()

func (*StorageVersion) XXX_Marshal

func (m *StorageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageVersion) XXX_Merge

func (m *StorageVersion) XXX_Merge(src proto.Message)

func (*StorageVersion) XXX_Size

func (m *StorageVersion) XXX_Size() int

func (*StorageVersion) XXX_Unmarshal

func (m *StorageVersion) XXX_Unmarshal(b []byte) error

type StorageVersionCondition

type StorageVersionCondition struct {
	// Type of the condition.
	// +required
	Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	// +required
	Status *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
	// If set, this represents the .metadata.generation that the condition was set based upon.
	// +optional
	ObservedGeneration *int64 `protobuf:"varint,3,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
	// Last time the condition transitioned from one status to another.
	// +required
	LastTransitionTime *v1.Time `protobuf:"bytes,4,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	// +required
	Reason *string `protobuf:"bytes,5,opt,name=reason" json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	// +required
	Message              *string  `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes the state of the storageVersion at a certain point.

func (*StorageVersionCondition) Descriptor

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

func (*StorageVersionCondition) GetLastTransitionTime

func (m *StorageVersionCondition) GetLastTransitionTime() *v1.Time

func (*StorageVersionCondition) GetMessage

func (m *StorageVersionCondition) GetMessage() string

func (*StorageVersionCondition) GetObservedGeneration

func (m *StorageVersionCondition) GetObservedGeneration() int64

func (*StorageVersionCondition) GetReason

func (m *StorageVersionCondition) GetReason() string

func (*StorageVersionCondition) GetStatus

func (m *StorageVersionCondition) GetStatus() string

func (*StorageVersionCondition) GetType

func (m *StorageVersionCondition) GetType() string

func (*StorageVersionCondition) Marshal

func (m *StorageVersionCondition) Marshal() (dAtA []byte, err error)

func (*StorageVersionCondition) MarshalTo

func (m *StorageVersionCondition) MarshalTo(dAtA []byte) (int, error)

func (*StorageVersionCondition) MarshalToSizedBuffer

func (m *StorageVersionCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageVersionCondition) ProtoMessage

func (*StorageVersionCondition) ProtoMessage()

func (*StorageVersionCondition) Reset

func (m *StorageVersionCondition) Reset()

func (*StorageVersionCondition) Size

func (m *StorageVersionCondition) Size() (n int)

func (*StorageVersionCondition) String

func (m *StorageVersionCondition) String() string

func (*StorageVersionCondition) Unmarshal

func (m *StorageVersionCondition) Unmarshal(dAtA []byte) error

func (*StorageVersionCondition) XXX_DiscardUnknown

func (m *StorageVersionCondition) XXX_DiscardUnknown()

func (*StorageVersionCondition) XXX_Marshal

func (m *StorageVersionCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageVersionCondition) XXX_Merge

func (m *StorageVersionCondition) XXX_Merge(src proto.Message)

func (*StorageVersionCondition) XXX_Size

func (m *StorageVersionCondition) XXX_Size() int

func (*StorageVersionCondition) XXX_Unmarshal

func (m *StorageVersionCondition) XXX_Unmarshal(b []byte) error

type StorageVersionList

type StorageVersionList struct {
	// +optional
	Metadata             *v1.ListMeta      `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	Items                []*StorageVersion `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

A list of StorageVersions.

func (*StorageVersionList) Descriptor

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

func (*StorageVersionList) GetItems

func (m *StorageVersionList) GetItems() []*StorageVersion

func (*StorageVersionList) GetMetadata

func (m *StorageVersionList) GetMetadata() *v1.ListMeta

func (*StorageVersionList) Marshal

func (m *StorageVersionList) Marshal() (dAtA []byte, err error)

func (*StorageVersionList) MarshalTo

func (m *StorageVersionList) MarshalTo(dAtA []byte) (int, error)

func (*StorageVersionList) MarshalToSizedBuffer

func (m *StorageVersionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageVersionList) ProtoMessage

func (*StorageVersionList) ProtoMessage()

func (*StorageVersionList) Reset

func (m *StorageVersionList) Reset()

func (*StorageVersionList) Size

func (m *StorageVersionList) Size() (n int)

func (*StorageVersionList) String

func (m *StorageVersionList) String() string

func (*StorageVersionList) Unmarshal

func (m *StorageVersionList) Unmarshal(dAtA []byte) error

func (*StorageVersionList) XXX_DiscardUnknown

func (m *StorageVersionList) XXX_DiscardUnknown()

func (*StorageVersionList) XXX_Marshal

func (m *StorageVersionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageVersionList) XXX_Merge

func (m *StorageVersionList) XXX_Merge(src proto.Message)

func (*StorageVersionList) XXX_Size

func (m *StorageVersionList) XXX_Size() int

func (*StorageVersionList) XXX_Unmarshal

func (m *StorageVersionList) XXX_Unmarshal(b []byte) error

type StorageVersionSpec

type StorageVersionSpec struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StorageVersionSpec is an empty spec.

func (*StorageVersionSpec) Descriptor

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

func (*StorageVersionSpec) Marshal

func (m *StorageVersionSpec) Marshal() (dAtA []byte, err error)

func (*StorageVersionSpec) MarshalTo

func (m *StorageVersionSpec) MarshalTo(dAtA []byte) (int, error)

func (*StorageVersionSpec) MarshalToSizedBuffer

func (m *StorageVersionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageVersionSpec) ProtoMessage

func (*StorageVersionSpec) ProtoMessage()

func (*StorageVersionSpec) Reset

func (m *StorageVersionSpec) Reset()

func (*StorageVersionSpec) Size

func (m *StorageVersionSpec) Size() (n int)

func (*StorageVersionSpec) String

func (m *StorageVersionSpec) String() string

func (*StorageVersionSpec) Unmarshal

func (m *StorageVersionSpec) Unmarshal(dAtA []byte) error

func (*StorageVersionSpec) XXX_DiscardUnknown

func (m *StorageVersionSpec) XXX_DiscardUnknown()

func (*StorageVersionSpec) XXX_Marshal

func (m *StorageVersionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageVersionSpec) XXX_Merge

func (m *StorageVersionSpec) XXX_Merge(src proto.Message)

func (*StorageVersionSpec) XXX_Size

func (m *StorageVersionSpec) XXX_Size() int

func (*StorageVersionSpec) XXX_Unmarshal

func (m *StorageVersionSpec) XXX_Unmarshal(b []byte) error

type StorageVersionStatus

type StorageVersionStatus struct {
	// The reported versions per API server instance.
	// +optional
	// +listType=map
	// +listMapKey=apiServerID
	StorageVersions []*ServerStorageVersion `protobuf:"bytes,1,rep,name=storageVersions" json:"storageVersions,omitempty"`
	// 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 `protobuf:"bytes,2,opt,name=commonEncodingVersion" json:"commonEncodingVersion,omitempty"`
	// The latest available observations of the storageVersion's state.
	// +optional
	// +listType=map
	// +listMapKey=type
	Conditions           []*StorageVersionCondition `protobuf:"bytes,3,rep,name=conditions" json:"conditions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.

func (*StorageVersionStatus) Descriptor

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

func (*StorageVersionStatus) GetCommonEncodingVersion

func (m *StorageVersionStatus) GetCommonEncodingVersion() string

func (*StorageVersionStatus) GetConditions

func (m *StorageVersionStatus) GetConditions() []*StorageVersionCondition

func (*StorageVersionStatus) GetStorageVersions

func (m *StorageVersionStatus) GetStorageVersions() []*ServerStorageVersion

func (*StorageVersionStatus) Marshal

func (m *StorageVersionStatus) Marshal() (dAtA []byte, err error)

func (*StorageVersionStatus) MarshalTo

func (m *StorageVersionStatus) MarshalTo(dAtA []byte) (int, error)

func (*StorageVersionStatus) MarshalToSizedBuffer

func (m *StorageVersionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageVersionStatus) ProtoMessage

func (*StorageVersionStatus) ProtoMessage()

func (*StorageVersionStatus) Reset

func (m *StorageVersionStatus) Reset()

func (*StorageVersionStatus) Size

func (m *StorageVersionStatus) Size() (n int)

func (*StorageVersionStatus) String

func (m *StorageVersionStatus) String() string

func (*StorageVersionStatus) Unmarshal

func (m *StorageVersionStatus) Unmarshal(dAtA []byte) error

func (*StorageVersionStatus) XXX_DiscardUnknown

func (m *StorageVersionStatus) XXX_DiscardUnknown()

func (*StorageVersionStatus) XXX_Marshal

func (m *StorageVersionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageVersionStatus) XXX_Merge

func (m *StorageVersionStatus) XXX_Merge(src proto.Message)

func (*StorageVersionStatus) XXX_Size

func (m *StorageVersionStatus) XXX_Size() int

func (*StorageVersionStatus) XXX_Unmarshal

func (m *StorageVersionStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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