storage

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageServices_UpdateCloudApprove_FullMethodName = "/storage.StorageServices/UpdateCloudApprove"
	StorageServices_DeleteCloudApprove_FullMethodName = "/storage.StorageServices/DeleteCloudApprove"
)

Variables

View Source
var File_storage_storage_proto protoreflect.FileDescriptor
View Source
var StorageServices_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "storage.StorageServices",
	HandlerType: (*StorageServicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateCloudApprove",
			Handler:    _StorageServices_UpdateCloudApprove_Handler,
		},
		{
			MethodName: "DeleteCloudApprove",
			Handler:    _StorageServices_DeleteCloudApprove_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "storage/storage.proto",
}

StorageServices_ServiceDesc is the grpc.ServiceDesc for StorageServices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStorageServicesServer

func RegisterStorageServicesServer(s grpc.ServiceRegistrar, srv StorageServicesServer)

Types

type Cloud

type Cloud struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Url       string                 `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	CreatedBy string                 `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	DeletedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Cloud) Descriptor deprecated

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

Deprecated: Use Cloud.ProtoReflect.Descriptor instead.

func (*Cloud) GetCreatedAt

func (x *Cloud) GetCreatedAt() *timestamppb.Timestamp

func (*Cloud) GetCreatedBy

func (x *Cloud) GetCreatedBy() string

func (*Cloud) GetDeletedAt

func (x *Cloud) GetDeletedAt() *timestamppb.Timestamp

func (*Cloud) GetId

func (x *Cloud) GetId() string

func (*Cloud) GetName

func (x *Cloud) GetName() string

func (*Cloud) GetUrl

func (x *Cloud) GetUrl() string

func (*Cloud) ProtoMessage

func (*Cloud) ProtoMessage()

func (*Cloud) ProtoReflect

func (x *Cloud) ProtoReflect() protoreflect.Message

func (*Cloud) Reset

func (x *Cloud) Reset()

func (*Cloud) String

func (x *Cloud) String() string

type CloudApproveRequest

type CloudApproveRequest struct {
	Url []string `protobuf:"bytes,1,rep,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*CloudApproveRequest) Descriptor deprecated

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

Deprecated: Use CloudApproveRequest.ProtoReflect.Descriptor instead.

func (*CloudApproveRequest) GetUrl

func (x *CloudApproveRequest) GetUrl() []string

func (*CloudApproveRequest) ProtoMessage

func (*CloudApproveRequest) ProtoMessage()

func (*CloudApproveRequest) ProtoReflect

func (x *CloudApproveRequest) ProtoReflect() protoreflect.Message

func (*CloudApproveRequest) Reset

func (x *CloudApproveRequest) Reset()

func (*CloudApproveRequest) String

func (x *CloudApproveRequest) String() string

type StorageServicesClient

type StorageServicesClient interface {
	UpdateCloudApprove(ctx context.Context, in *CloudApproveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteCloudApprove(ctx context.Context, in *CloudApproveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

StorageServicesClient is the client API for StorageServices 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.

type StorageServicesServer

type StorageServicesServer interface {
	UpdateCloudApprove(context.Context, *CloudApproveRequest) (*emptypb.Empty, error)
	DeleteCloudApprove(context.Context, *CloudApproveRequest) (*emptypb.Empty, error)
}

StorageServicesServer is the server API for StorageServices service. All implementations should embed UnimplementedStorageServicesServer for forward compatibility.

type UnimplementedStorageServicesServer

type UnimplementedStorageServicesServer struct{}

UnimplementedStorageServicesServer should 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 (UnimplementedStorageServicesServer) DeleteCloudApprove

func (UnimplementedStorageServicesServer) UpdateCloudApprove

type UnsafeStorageServicesServer

type UnsafeStorageServicesServer interface {
	// contains filtered or unexported methods
}

UnsafeStorageServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServicesServer will result in compilation errors.

Jump to

Keyboard shortcuts

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