mirror of
https://forge.liiib.re/indiehost/libre.sh/libre.sh.git
synced 2024-12-29 07:06:42 +00:00
688 lines
24 KiB
Go
688 lines
24 KiB
Go
// /*
|
|
// Copyright 2023 IndieHosters.
|
|
//
|
|
// Licensed under the EUPL, Version 1.2 or later (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
// */
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.32.0
|
|
// protoc (unknown)
|
|
// source: proto/portability/v1alpha1/objects.proto
|
|
|
|
package portabilityv1alpha1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type SyncStatus int32
|
|
|
|
const (
|
|
SyncStatus_SYNC_STATUS_UNSPECIFIED SyncStatus = 0
|
|
SyncStatus_SYNC_STATUS_COMPLETE SyncStatus = 1
|
|
SyncStatus_SYNC_STATUS_PENDING SyncStatus = 2
|
|
SyncStatus_SYNC_STATUS_FAILED SyncStatus = 3
|
|
)
|
|
|
|
// Enum value maps for SyncStatus.
|
|
var (
|
|
SyncStatus_name = map[int32]string{
|
|
0: "SYNC_STATUS_UNSPECIFIED",
|
|
1: "SYNC_STATUS_COMPLETE",
|
|
2: "SYNC_STATUS_PENDING",
|
|
3: "SYNC_STATUS_FAILED",
|
|
}
|
|
SyncStatus_value = map[string]int32{
|
|
"SYNC_STATUS_UNSPECIFIED": 0,
|
|
"SYNC_STATUS_COMPLETE": 1,
|
|
"SYNC_STATUS_PENDING": 2,
|
|
"SYNC_STATUS_FAILED": 3,
|
|
}
|
|
)
|
|
|
|
func (x SyncStatus) Enum() *SyncStatus {
|
|
p := new(SyncStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SyncStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SyncStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proto_portability_v1alpha1_objects_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SyncStatus) Type() protoreflect.EnumType {
|
|
return &file_proto_portability_v1alpha1_objects_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SyncStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SyncStatus.Descriptor instead.
|
|
func (SyncStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type S3Client struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
|
|
Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
SecretKey string `protobuf:"bytes,4,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
|
AccessKey string `protobuf:"bytes,5,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
|
|
Insecure bool `protobuf:"varint,6,opt,name=insecure,proto3" json:"insecure,omitempty"`
|
|
}
|
|
|
|
func (x *S3Client) Reset() {
|
|
*x = S3Client{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *S3Client) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*S3Client) ProtoMessage() {}
|
|
|
|
func (x *S3Client) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use S3Client.ProtoReflect.Descriptor instead.
|
|
func (*S3Client) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *S3Client) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Client) GetHost() string {
|
|
if x != nil {
|
|
return x.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Client) GetBucket() string {
|
|
if x != nil {
|
|
return x.Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Client) GetSecretKey() string {
|
|
if x != nil {
|
|
return x.SecretKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Client) GetAccessKey() string {
|
|
if x != nil {
|
|
return x.AccessKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *S3Client) GetInsecure() bool {
|
|
if x != nil {
|
|
return x.Insecure
|
|
}
|
|
return false
|
|
}
|
|
|
|
// TODO rename selectors to instance_selectors everywhere
|
|
type StartObjectsSyncRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Selectors []string `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
S3Client *S3Client `protobuf:"bytes,3,opt,name=s3_client,json=s3Client,proto3" json:"s3_client,omitempty"`
|
|
}
|
|
|
|
func (x *StartObjectsSyncRequest) Reset() {
|
|
*x = StartObjectsSyncRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StartObjectsSyncRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartObjectsSyncRequest) ProtoMessage() {}
|
|
|
|
func (x *StartObjectsSyncRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StartObjectsSyncRequest.ProtoReflect.Descriptor instead.
|
|
func (*StartObjectsSyncRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StartObjectsSyncRequest) GetSelectors() []string {
|
|
if x != nil {
|
|
return x.Selectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *StartObjectsSyncRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartObjectsSyncRequest) GetS3Client() *S3Client {
|
|
if x != nil {
|
|
return x.S3Client
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StartObjectsSyncResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StartObjectsSyncResponse) Reset() {
|
|
*x = StartObjectsSyncResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StartObjectsSyncResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartObjectsSyncResponse) ProtoMessage() {}
|
|
|
|
func (x *StartObjectsSyncResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StartObjectsSyncResponse.ProtoReflect.Descriptor instead.
|
|
func (*StartObjectsSyncResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type StopObjectsSyncRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Selectors []string `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (x *StopObjectsSyncRequest) Reset() {
|
|
*x = StopObjectsSyncRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StopObjectsSyncRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StopObjectsSyncRequest) ProtoMessage() {}
|
|
|
|
func (x *StopObjectsSyncRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StopObjectsSyncRequest.ProtoReflect.Descriptor instead.
|
|
func (*StopObjectsSyncRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *StopObjectsSyncRequest) GetSelectors() []string {
|
|
if x != nil {
|
|
return x.Selectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *StopObjectsSyncRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StopObjectsSyncResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StopObjectsSyncResponse) Reset() {
|
|
*x = StopObjectsSyncResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StopObjectsSyncResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StopObjectsSyncResponse) ProtoMessage() {}
|
|
|
|
func (x *StopObjectsSyncResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StopObjectsSyncResponse.ProtoReflect.Descriptor instead.
|
|
func (*StopObjectsSyncResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type GetObjectsSyncStatusRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Selectors []string `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusRequest) Reset() {
|
|
*x = GetObjectsSyncStatusRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetObjectsSyncStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *GetObjectsSyncStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetObjectsSyncStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetObjectsSyncStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusRequest) GetSelectors() []string {
|
|
if x != nil {
|
|
return x.Selectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetObjectsSyncStatusResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Status SyncStatus `protobuf:"varint,1,opt,name=status,proto3,enum=portability.v1alpha1.SyncStatus" json:"status,omitempty"`
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusResponse) Reset() {
|
|
*x = GetObjectsSyncStatusResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetObjectsSyncStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *GetObjectsSyncStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_portability_v1alpha1_objects_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetObjectsSyncStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetObjectsSyncStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetObjectsSyncStatusResponse) GetStatus() SyncStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return SyncStatus_SYNC_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
var File_proto_portability_v1alpha1_objects_proto protoreflect.FileDescriptor
|
|
|
|
var file_proto_portability_v1alpha1_objects_proto_rawDesc = []byte{
|
|
0x0a, 0x28, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c,
|
|
0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x62, 0x6a,
|
|
0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x70, 0x6f, 0x72, 0x74,
|
|
0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
|
|
0x22, 0xa2, 0x01, 0x0a, 0x08, 0x53, 0x33, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a,
|
|
0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12,
|
|
0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
|
|
0x6f, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
|
|
0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63,
|
|
0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73,
|
|
0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, 0x73,
|
|
0x65, 0x63, 0x75, 0x72, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f,
|
|
0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01,
|
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12,
|
|
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69,
|
|
0x6c, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x33,
|
|
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
0x22, 0x1a, 0x0a, 0x18, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
|
|
0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x16,
|
|
0x53, 0x74, 0x6f, 0x70, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x52,
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74,
|
|
0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63,
|
|
0x74, 0x6f, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x74, 0x6f, 0x70,
|
|
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x4f, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
|
0x73, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18,
|
|
0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73,
|
|
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63,
|
|
0x74, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
|
|
0x74, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63,
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x74,
|
|
0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17,
|
|
0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,
|
|
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x59, 0x4e,
|
|
0x43, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54,
|
|
0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x54, 0x41, 0x54,
|
|
0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12,
|
|
0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c,
|
|
0x45, 0x44, 0x10, 0x03, 0x42, 0xd2, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x72,
|
|
0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
|
|
0x31, 0x42, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
|
|
0x01, 0x5a, 0x37, 0x6c, 0x69, 0x62, 0x72, 0x65, 0x2e, 0x73, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31,
|
|
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
|
|
0x74, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58,
|
|
0xaa, 0x02, 0x14, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x56,
|
|
0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x62,
|
|
0x69, 0x6c, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02,
|
|
0x20, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x31, 0x61,
|
|
0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
|
0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x3a,
|
|
0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x33,
|
|
}
|
|
|
|
var (
|
|
file_proto_portability_v1alpha1_objects_proto_rawDescOnce sync.Once
|
|
file_proto_portability_v1alpha1_objects_proto_rawDescData = file_proto_portability_v1alpha1_objects_proto_rawDesc
|
|
)
|
|
|
|
func file_proto_portability_v1alpha1_objects_proto_rawDescGZIP() []byte {
|
|
file_proto_portability_v1alpha1_objects_proto_rawDescOnce.Do(func() {
|
|
file_proto_portability_v1alpha1_objects_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_portability_v1alpha1_objects_proto_rawDescData)
|
|
})
|
|
return file_proto_portability_v1alpha1_objects_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_portability_v1alpha1_objects_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_proto_portability_v1alpha1_objects_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_proto_portability_v1alpha1_objects_proto_goTypes = []interface{}{
|
|
(SyncStatus)(0), // 0: portability.v1alpha1.SyncStatus
|
|
(*S3Client)(nil), // 1: portability.v1alpha1.S3Client
|
|
(*StartObjectsSyncRequest)(nil), // 2: portability.v1alpha1.StartObjectsSyncRequest
|
|
(*StartObjectsSyncResponse)(nil), // 3: portability.v1alpha1.StartObjectsSyncResponse
|
|
(*StopObjectsSyncRequest)(nil), // 4: portability.v1alpha1.StopObjectsSyncRequest
|
|
(*StopObjectsSyncResponse)(nil), // 5: portability.v1alpha1.StopObjectsSyncResponse
|
|
(*GetObjectsSyncStatusRequest)(nil), // 6: portability.v1alpha1.GetObjectsSyncStatusRequest
|
|
(*GetObjectsSyncStatusResponse)(nil), // 7: portability.v1alpha1.GetObjectsSyncStatusResponse
|
|
}
|
|
var file_proto_portability_v1alpha1_objects_proto_depIdxs = []int32{
|
|
1, // 0: portability.v1alpha1.StartObjectsSyncRequest.s3_client:type_name -> portability.v1alpha1.S3Client
|
|
0, // 1: portability.v1alpha1.GetObjectsSyncStatusResponse.status:type_name -> portability.v1alpha1.SyncStatus
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_portability_v1alpha1_objects_proto_init() }
|
|
func file_proto_portability_v1alpha1_objects_proto_init() {
|
|
if File_proto_portability_v1alpha1_objects_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*S3Client); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StartObjectsSyncRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StartObjectsSyncResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StopObjectsSyncRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StopObjectsSyncResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetObjectsSyncStatusRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_proto_portability_v1alpha1_objects_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetObjectsSyncStatusResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_proto_portability_v1alpha1_objects_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_proto_portability_v1alpha1_objects_proto_goTypes,
|
|
DependencyIndexes: file_proto_portability_v1alpha1_objects_proto_depIdxs,
|
|
EnumInfos: file_proto_portability_v1alpha1_objects_proto_enumTypes,
|
|
MessageInfos: file_proto_portability_v1alpha1_objects_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_portability_v1alpha1_objects_proto = out.File
|
|
file_proto_portability_v1alpha1_objects_proto_rawDesc = nil
|
|
file_proto_portability_v1alpha1_objects_proto_goTypes = nil
|
|
file_proto_portability_v1alpha1_objects_proto_depIdxs = nil
|
|
}
|