Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBucketServiceServer(s grpc.ServiceRegistrar, srv BucketServiceServer)
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)deprecated
- func (x *Bucket) GetCreated() string
- func (x *Bucket) GetDescription() string
- func (x *Bucket) GetDisplayName() string
- func (x *Bucket) GetId() string
- func (x *Bucket) GetName() string
- func (*Bucket) ProtoMessage()
- func (x *Bucket) ProtoReflect() protoreflect.Message
- func (x *Bucket) Reset()
- func (x *Bucket) String() string
- type BucketServiceClient
- type BucketServiceServer
- type CreateBucketRequest
- func (*CreateBucketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBucketRequest) GetAccountName() string
- func (x *CreateBucketRequest) GetBucketName() string
- func (x *CreateBucketRequest) GetDomainId() int64
- func (x *CreateBucketRequest) GetEncryption() bool
- func (x *CreateBucketRequest) GetInjectedJobId() string
- func (x *CreateBucketRequest) GetObjectLocking() bool
- func (x *CreateBucketRequest) GetObjectStoragePoolId() int64
- func (x *CreateBucketRequest) GetPolicy() string
- func (x *CreateBucketRequest) GetProjectId() int64
- func (x *CreateBucketRequest) GetQuota() int32
- func (x *CreateBucketRequest) GetResponseType() string
- func (x *CreateBucketRequest) GetStartEventId() int64
- func (x *CreateBucketRequest) GetVersioning() bool
- func (*CreateBucketRequest) ProtoMessage()
- func (x *CreateBucketRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBucketRequest) Reset()
- func (x *CreateBucketRequest) String() string
- type CreateBucketResponse
- func (*CreateBucketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBucketResponse) GetResult() *Result
- func (*CreateBucketResponse) ProtoMessage()
- func (x *CreateBucketResponse) ProtoReflect() protoreflect.Message
- func (x *CreateBucketResponse) Reset()
- func (x *CreateBucketResponse) String() string
- type DeleteBucketRequest
- func (*DeleteBucketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBucketRequest) GetId() int64
- func (x *DeleteBucketRequest) GetResponseType() string
- func (*DeleteBucketRequest) ProtoMessage()
- func (x *DeleteBucketRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBucketRequest) Reset()
- func (x *DeleteBucketRequest) String() string
- type DeleteBucketResponse
- func (*DeleteBucketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBucketResponse) GetResult() *Result
- func (*DeleteBucketResponse) ProtoMessage()
- func (x *DeleteBucketResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteBucketResponse) Reset()
- func (x *DeleteBucketResponse) String() string
- type ListBucketsRequest
- func (*ListBucketsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBucketsRequest) GetAccountName() string
- func (x *ListBucketsRequest) GetBucketName() string
- func (x *ListBucketsRequest) GetDomainId() int64
- func (x *ListBucketsRequest) GetId() int64
- func (x *ListBucketsRequest) GetIds() []string
- func (x *ListBucketsRequest) GetKeyword() string
- func (x *ListBucketsRequest) GetListAll() bool
- func (x *ListBucketsRequest) GetObjectStorageId() int64
- func (x *ListBucketsRequest) GetPage() int32
- func (x *ListBucketsRequest) GetPageSize() int32
- func (x *ListBucketsRequest) GetProjectId() int64
- func (x *ListBucketsRequest) GetRecursive() bool
- func (x *ListBucketsRequest) GetResponseType() string
- func (x *ListBucketsRequest) GetTags() map[string]string
- func (*ListBucketsRequest) ProtoMessage()
- func (x *ListBucketsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBucketsRequest) Reset()
- func (x *ListBucketsRequest) String() string
- type ListBucketsResponse
- func (*ListBucketsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBucketsResponse) GetItems() []*Bucket
- func (x *ListBucketsResponse) GetTotalCount() int32
- func (*ListBucketsResponse) ProtoMessage()
- func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBucketsResponse) Reset()
- func (x *ListBucketsResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetDisplayText() string
- func (x *Result) GetId() string
- func (x *Result) GetJobId() string
- func (x *Result) GetJobStatus() string
- func (x *Result) GetSuccess() bool
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Success
- type UnimplementedBucketServiceServer
- func (UnimplementedBucketServiceServer) CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error)
- func (UnimplementedBucketServiceServer) DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error)
- func (UnimplementedBucketServiceServer) ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error)
- func (UnimplementedBucketServiceServer) UpdateBucket(context.Context, *UpdateBucketRequest) (*UpdateBucketResponse, error)
- type UnsafeBucketServiceServer
- type UpdateBucketRequest
- func (*UpdateBucketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBucketRequest) GetEncryption() bool
- func (x *UpdateBucketRequest) GetId() int64
- func (x *UpdateBucketRequest) GetPolicy() string
- func (x *UpdateBucketRequest) GetQuota() int32
- func (x *UpdateBucketRequest) GetResponseType() string
- func (x *UpdateBucketRequest) GetVersioning() bool
- func (*UpdateBucketRequest) ProtoMessage()
- func (x *UpdateBucketRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBucketRequest) Reset()
- func (x *UpdateBucketRequest) String() string
- type UpdateBucketResponse
- func (*UpdateBucketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBucketResponse) GetResult() *Result
- func (*UpdateBucketResponse) ProtoMessage()
- func (x *UpdateBucketResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateBucketResponse) Reset()
- func (x *UpdateBucketResponse) String() string
Constants ¶
const ( BucketService_CreateBucket_FullMethodName = "/cloudstack.management.bucket.v1.BucketService/CreateBucket" BucketService_DeleteBucket_FullMethodName = "/cloudstack.management.bucket.v1.BucketService/DeleteBucket" BucketService_ListBuckets_FullMethodName = "/cloudstack.management.bucket.v1.BucketService/ListBuckets" BucketService_UpdateBucket_FullMethodName = "/cloudstack.management.bucket.v1.BucketService/UpdateBucket" )
Variables ¶
var BucketService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.bucket.v1.BucketService", HandlerType: (*BucketServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBucket", Handler: _BucketService_CreateBucket_Handler, }, { MethodName: "DeleteBucket", Handler: _BucketService_DeleteBucket_Handler, }, { MethodName: "ListBuckets", Handler: _BucketService_ListBuckets_Handler, }, { MethodName: "UpdateBucket", Handler: _BucketService_UpdateBucket_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/bucket/v1/bucket.gen.proto", }
BucketService_ServiceDesc is the grpc.ServiceDesc for BucketService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloudstack_management_bucket_v1_bucket_gen_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBucketServiceServer ¶
func RegisterBucketServiceServer(s grpc.ServiceRegistrar, srv BucketServiceServer)
Types ¶
type Bucket ¶
type Bucket struct {
// The ID of the Bucket
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the Bucket
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the Bucket
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the Bucket
Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
// The date this entity was created
Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
// contains filtered or unexported fields
}
Bucket represents a Bucket Item
func (*Bucket) Descriptor
deprecated
func (*Bucket) GetCreated ¶
func (*Bucket) GetDescription ¶
func (*Bucket) GetDisplayName ¶
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) ProtoReflect ¶
func (x *Bucket) ProtoReflect() protoreflect.Message
type BucketServiceClient ¶
type BucketServiceClient interface {
// CreateBucket Creates a bucket in the specified object storage pool.
CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error)
// DeleteBucket Deletes an empty Bucket.
DeleteBucket(ctx context.Context, in *DeleteBucketRequest, opts ...grpc.CallOption) (*DeleteBucketResponse, error)
// ListBuckets Lists all Buckets.
ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, error)
// UpdateBucket Updates Bucket properties
UpdateBucket(ctx context.Context, in *UpdateBucketRequest, opts ...grpc.CallOption) (*UpdateBucketResponse, error)
}
BucketServiceClient is the client API for BucketService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
BucketService provides operations for managing Buckets
func NewBucketServiceClient ¶
func NewBucketServiceClient(cc grpc.ClientConnInterface) BucketServiceClient
type BucketServiceServer ¶
type BucketServiceServer interface {
// CreateBucket Creates a bucket in the specified object storage pool.
CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error)
// DeleteBucket Deletes an empty Bucket.
DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error)
// ListBuckets Lists all Buckets.
ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error)
// UpdateBucket Updates Bucket properties
UpdateBucket(context.Context, *UpdateBucketRequest) (*UpdateBucketResponse, error)
// contains filtered or unexported methods
}
BucketServiceServer is the server API for BucketService service. All implementations must embed UnimplementedBucketServiceServer for forward compatibility.
BucketService provides operations for managing Buckets
type CreateBucketRequest ¶
type CreateBucketRequest struct {
// the account associated with the bucket. Must be used with the domainId parameter.
AccountName *string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
// the project associated with the bucket. Mutually exclusive with account parameter
ProjectId *int64 `protobuf:"varint,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
// the domain ID associated with the bucket. If used with the account parameter returns the bucket associated with the account for the specified domain.
DomainId *int64 `protobuf:"varint,3,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
// the name of the bucket
BucketName *string `protobuf:"bytes,4,opt,name=bucket_name,json=bucketName" json:"bucket_name,omitempty"`
// Id of the Object Storage Pool where bucket is created
ObjectStoragePoolId *int64 `protobuf:"varint,5,opt,name=object_storage_pool_id,json=objectStoragePoolId" json:"object_storage_pool_id,omitempty"`
// Bucket Quota in GiB
Quota *int32 `protobuf:"varint,6,opt,name=quota" json:"quota,omitempty"`
// Enable bucket encryption
Encryption *bool `protobuf:"varint,7,opt,name=encryption" json:"encryption,omitempty"`
// Enable bucket versioning
Versioning *bool `protobuf:"varint,8,opt,name=versioning" json:"versioning,omitempty"`
// Enable object locking in bucket
ObjectLocking *bool `protobuf:"varint,9,opt,name=object_locking,json=objectLocking" json:"object_locking,omitempty"`
// The Bucket access policy
Policy *string `protobuf:"bytes,10,opt,name=policy" json:"policy,omitempty"`
StartEventId *int64 `protobuf:"varint,11,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,12,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,13,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CreateBucketRequest represents the parameters for creates a bucket in the specified object storage pool.
func (*CreateBucketRequest) Descriptor
deprecated
func (*CreateBucketRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBucketRequest.ProtoReflect.Descriptor instead.
func (*CreateBucketRequest) GetAccountName ¶
func (x *CreateBucketRequest) GetAccountName() string
func (*CreateBucketRequest) GetBucketName ¶
func (x *CreateBucketRequest) GetBucketName() string
func (*CreateBucketRequest) GetDomainId ¶
func (x *CreateBucketRequest) GetDomainId() int64
func (*CreateBucketRequest) GetEncryption ¶
func (x *CreateBucketRequest) GetEncryption() bool
func (*CreateBucketRequest) GetInjectedJobId ¶
func (x *CreateBucketRequest) GetInjectedJobId() string
func (*CreateBucketRequest) GetObjectLocking ¶
func (x *CreateBucketRequest) GetObjectLocking() bool
func (*CreateBucketRequest) GetObjectStoragePoolId ¶
func (x *CreateBucketRequest) GetObjectStoragePoolId() int64
func (*CreateBucketRequest) GetPolicy ¶
func (x *CreateBucketRequest) GetPolicy() string
func (*CreateBucketRequest) GetProjectId ¶
func (x *CreateBucketRequest) GetProjectId() int64
func (*CreateBucketRequest) GetQuota ¶
func (x *CreateBucketRequest) GetQuota() int32
func (*CreateBucketRequest) GetResponseType ¶
func (x *CreateBucketRequest) GetResponseType() string
func (*CreateBucketRequest) GetStartEventId ¶
func (x *CreateBucketRequest) GetStartEventId() int64
func (*CreateBucketRequest) GetVersioning ¶
func (x *CreateBucketRequest) GetVersioning() bool
func (*CreateBucketRequest) ProtoMessage ¶
func (*CreateBucketRequest) ProtoMessage()
func (*CreateBucketRequest) ProtoReflect ¶
func (x *CreateBucketRequest) ProtoReflect() protoreflect.Message
func (*CreateBucketRequest) Reset ¶
func (x *CreateBucketRequest) Reset()
func (*CreateBucketRequest) String ¶
func (x *CreateBucketRequest) String() string
type CreateBucketResponse ¶
type CreateBucketResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CreateBucketResponse represents the response from creates a bucket in the specified object storage pool.
func (*CreateBucketResponse) Descriptor
deprecated
func (*CreateBucketResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBucketResponse.ProtoReflect.Descriptor instead.
func (*CreateBucketResponse) GetResult ¶
func (x *CreateBucketResponse) GetResult() *Result
func (*CreateBucketResponse) ProtoMessage ¶
func (*CreateBucketResponse) ProtoMessage()
func (*CreateBucketResponse) ProtoReflect ¶
func (x *CreateBucketResponse) ProtoReflect() protoreflect.Message
func (*CreateBucketResponse) Reset ¶
func (x *CreateBucketResponse) Reset()
func (*CreateBucketResponse) String ¶
func (x *CreateBucketResponse) String() string
type DeleteBucketRequest ¶
type DeleteBucketRequest struct {
// The ID of the Bucket
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
DeleteBucketRequest represents the parameters for deletes an empty bucket.
func (*DeleteBucketRequest) Descriptor
deprecated
func (*DeleteBucketRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBucketRequest.ProtoReflect.Descriptor instead.
func (*DeleteBucketRequest) GetId ¶
func (x *DeleteBucketRequest) GetId() int64
func (*DeleteBucketRequest) GetResponseType ¶
func (x *DeleteBucketRequest) GetResponseType() string
func (*DeleteBucketRequest) ProtoMessage ¶
func (*DeleteBucketRequest) ProtoMessage()
func (*DeleteBucketRequest) ProtoReflect ¶
func (x *DeleteBucketRequest) ProtoReflect() protoreflect.Message
func (*DeleteBucketRequest) Reset ¶
func (x *DeleteBucketRequest) Reset()
func (*DeleteBucketRequest) String ¶
func (x *DeleteBucketRequest) String() string
type DeleteBucketResponse ¶
type DeleteBucketResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
DeleteBucketResponse represents the response from deletes an empty bucket.
func (*DeleteBucketResponse) Descriptor
deprecated
func (*DeleteBucketResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBucketResponse.ProtoReflect.Descriptor instead.
func (*DeleteBucketResponse) GetResult ¶
func (x *DeleteBucketResponse) GetResult() *Result
func (*DeleteBucketResponse) ProtoMessage ¶
func (*DeleteBucketResponse) ProtoMessage()
func (*DeleteBucketResponse) ProtoReflect ¶
func (x *DeleteBucketResponse) ProtoReflect() protoreflect.Message
func (*DeleteBucketResponse) Reset ¶
func (x *DeleteBucketResponse) Reset()
func (*DeleteBucketResponse) String ¶
func (x *DeleteBucketResponse) String() string
type ListBucketsRequest ¶
type ListBucketsRequest struct {
// the ID of the bucket
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// the IDs of the Buckets, mutually exclusive with id
Ids []string `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"`
// the name of the bucket
BucketName *string `protobuf:"bytes,3,opt,name=bucket_name,json=bucketName" json:"bucket_name,omitempty"`
// the ID of the object storage pool, available to ROOT admin only
ObjectStorageId *int64 `protobuf:"varint,4,opt,name=object_storage_id,json=objectStorageId" json:"object_storage_id,omitempty"`
// List resources by tags (key/value pairs)
Tags map[string]string `` /* 128-byte string literal not displayed */
// list objects by project; if projectid=-1 lists All VMs
ProjectId *int64 `protobuf:"varint,6,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
// list resources by account. Must be used with the domainId parameter.
AccountName *string `protobuf:"bytes,7,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
// If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter.
ListAll *bool `protobuf:"varint,8,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
// list only resources belonging to the domain specified
DomainId *int64 `protobuf:"varint,9,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
// defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.
Recursive *bool `protobuf:"varint,10,opt,name=recursive" json:"recursive,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,11,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,12,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,13,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,14,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListBucketsRequest represents the parameters for lists all buckets.
func (*ListBucketsRequest) Descriptor
deprecated
func (*ListBucketsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBucketsRequest.ProtoReflect.Descriptor instead.
func (*ListBucketsRequest) GetAccountName ¶
func (x *ListBucketsRequest) GetAccountName() string
func (*ListBucketsRequest) GetBucketName ¶
func (x *ListBucketsRequest) GetBucketName() string
func (*ListBucketsRequest) GetDomainId ¶
func (x *ListBucketsRequest) GetDomainId() int64
func (*ListBucketsRequest) GetId ¶
func (x *ListBucketsRequest) GetId() int64
func (*ListBucketsRequest) GetIds ¶
func (x *ListBucketsRequest) GetIds() []string
func (*ListBucketsRequest) GetKeyword ¶
func (x *ListBucketsRequest) GetKeyword() string
func (*ListBucketsRequest) GetListAll ¶
func (x *ListBucketsRequest) GetListAll() bool
func (*ListBucketsRequest) GetObjectStorageId ¶
func (x *ListBucketsRequest) GetObjectStorageId() int64
func (*ListBucketsRequest) GetPage ¶
func (x *ListBucketsRequest) GetPage() int32
func (*ListBucketsRequest) GetPageSize ¶
func (x *ListBucketsRequest) GetPageSize() int32
func (*ListBucketsRequest) GetProjectId ¶
func (x *ListBucketsRequest) GetProjectId() int64
func (*ListBucketsRequest) GetRecursive ¶
func (x *ListBucketsRequest) GetRecursive() bool
func (*ListBucketsRequest) GetResponseType ¶
func (x *ListBucketsRequest) GetResponseType() string
func (*ListBucketsRequest) GetTags ¶
func (x *ListBucketsRequest) GetTags() map[string]string
func (*ListBucketsRequest) ProtoMessage ¶
func (*ListBucketsRequest) ProtoMessage()
func (*ListBucketsRequest) ProtoReflect ¶
func (x *ListBucketsRequest) ProtoReflect() protoreflect.Message
func (*ListBucketsRequest) Reset ¶
func (x *ListBucketsRequest) Reset()
func (*ListBucketsRequest) String ¶
func (x *ListBucketsRequest) String() string
type ListBucketsResponse ¶
type ListBucketsResponse struct {
// The list of Buckets
Items []*Bucket `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of Buckets
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListBucketsResponse represents the response from lists all buckets.
func (*ListBucketsResponse) Descriptor
deprecated
func (*ListBucketsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead.
func (*ListBucketsResponse) GetItems ¶
func (x *ListBucketsResponse) GetItems() []*Bucket
func (*ListBucketsResponse) GetTotalCount ¶
func (x *ListBucketsResponse) GetTotalCount() int32
func (*ListBucketsResponse) ProtoMessage ¶
func (*ListBucketsResponse) ProtoMessage()
func (*ListBucketsResponse) ProtoReflect ¶
func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message
func (*ListBucketsResponse) Reset ¶
func (x *ListBucketsResponse) Reset()
func (*ListBucketsResponse) String ¶
func (x *ListBucketsResponse) String() string
type Result ¶
type Result struct {
// Whether the operation was successful
Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
// Any text associated with the success or failure
DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
// The ID of the resource affected by the operation
Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
// The job ID for an async operation
JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
// The status of the job
JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
// contains filtered or unexported fields
}
Result represents a generic operation result
func (*Result) Descriptor
deprecated
func (*Result) GetDisplayText ¶
func (*Result) GetJobStatus ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Success ¶
type Success struct {
// true if operation is executed successfully
Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
// any text associated with the success or failure
DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
// contains filtered or unexported fields
}
Success represents a Success Operation Response
func (*Success) Descriptor
deprecated
func (*Success) GetDisplayText ¶
func (*Success) GetSuccess ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnimplementedBucketServiceServer ¶
type UnimplementedBucketServiceServer struct{}
UnimplementedBucketServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedBucketServiceServer) CreateBucket ¶
func (UnimplementedBucketServiceServer) CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error)
func (UnimplementedBucketServiceServer) DeleteBucket ¶
func (UnimplementedBucketServiceServer) DeleteBucket(context.Context, *DeleteBucketRequest) (*DeleteBucketResponse, error)
func (UnimplementedBucketServiceServer) ListBuckets ¶
func (UnimplementedBucketServiceServer) ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error)
func (UnimplementedBucketServiceServer) UpdateBucket ¶
func (UnimplementedBucketServiceServer) UpdateBucket(context.Context, *UpdateBucketRequest) (*UpdateBucketResponse, error)
type UnsafeBucketServiceServer ¶
type UnsafeBucketServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBucketServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BucketServiceServer will result in compilation errors.
type UpdateBucketRequest ¶
type UpdateBucketRequest struct {
// The ID of the Bucket
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// Enable/Disable Bucket Versioning
Versioning *bool `protobuf:"varint,2,opt,name=versioning" json:"versioning,omitempty"`
// Enable/Disable Bucket encryption
Encryption *bool `protobuf:"varint,3,opt,name=encryption" json:"encryption,omitempty"`
// Bucket Access Policy
Policy *string `protobuf:"bytes,4,opt,name=policy" json:"policy,omitempty"`
// Bucket Quota in GiB
Quota *int32 `protobuf:"varint,5,opt,name=quota" json:"quota,omitempty"`
ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
UpdateBucketRequest represents the parameters for updates bucket properties
func (*UpdateBucketRequest) Descriptor
deprecated
func (*UpdateBucketRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBucketRequest.ProtoReflect.Descriptor instead.
func (*UpdateBucketRequest) GetEncryption ¶
func (x *UpdateBucketRequest) GetEncryption() bool
func (*UpdateBucketRequest) GetId ¶
func (x *UpdateBucketRequest) GetId() int64
func (*UpdateBucketRequest) GetPolicy ¶
func (x *UpdateBucketRequest) GetPolicy() string
func (*UpdateBucketRequest) GetQuota ¶
func (x *UpdateBucketRequest) GetQuota() int32
func (*UpdateBucketRequest) GetResponseType ¶
func (x *UpdateBucketRequest) GetResponseType() string
func (*UpdateBucketRequest) GetVersioning ¶
func (x *UpdateBucketRequest) GetVersioning() bool
func (*UpdateBucketRequest) ProtoMessage ¶
func (*UpdateBucketRequest) ProtoMessage()
func (*UpdateBucketRequest) ProtoReflect ¶
func (x *UpdateBucketRequest) ProtoReflect() protoreflect.Message
func (*UpdateBucketRequest) Reset ¶
func (x *UpdateBucketRequest) Reset()
func (*UpdateBucketRequest) String ¶
func (x *UpdateBucketRequest) String() string
type UpdateBucketResponse ¶
type UpdateBucketResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
UpdateBucketResponse represents the response from updates bucket properties
func (*UpdateBucketResponse) Descriptor
deprecated
func (*UpdateBucketResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBucketResponse.ProtoReflect.Descriptor instead.
func (*UpdateBucketResponse) GetResult ¶
func (x *UpdateBucketResponse) GetResult() *Result
func (*UpdateBucketResponse) ProtoMessage ¶
func (*UpdateBucketResponse) ProtoMessage()
func (*UpdateBucketResponse) ProtoReflect ¶
func (x *UpdateBucketResponse) ProtoReflect() protoreflect.Message
func (*UpdateBucketResponse) Reset ¶
func (x *UpdateBucketResponse) Reset()
func (*UpdateBucketResponse) String ¶
func (x *UpdateBucketResponse) String() string