pb

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StsRpc_GenCosSts_FullMethodName      = "/sts.sts_rpc/genCosSts"
	StsRpc_GenSignedUrl_FullMethodName   = "/sts.sts_rpc/genSignedUrl"
	StsRpc_DeleteObject_FullMethodName   = "/sts.sts_rpc/deleteObject"
	StsRpc_GetAccessToken_FullMethodName = "/sts.sts_rpc/GetAccessToken"
)

Variables

View Source
var StsRpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sts.sts_rpc",
	HandlerType: (*StsRpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "genCosSts",
			Handler:    _StsRpc_GenCosSts_Handler,
		},
		{
			MethodName: "genSignedUrl",
			Handler:    _StsRpc_GenSignedUrl_Handler,
		},
		{
			MethodName: "deleteObject",
			Handler:    _StsRpc_DeleteObject_Handler,
		},
		{
			MethodName: "GetAccessToken",
			Handler:    _StsRpc_GetAccessToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sts.proto",
}

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

Functions

func RegisterStsRpcServer added in v1.1.0

func RegisterStsRpcServer(s grpc.ServiceRegistrar, srv StsRpcServer)

Types

type DeleteObjectReq added in v1.3.1

type DeleteObjectReq struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteObjectReq) Descriptor deprecated added in v1.3.1

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

Deprecated: Use DeleteObjectReq.ProtoReflect.Descriptor instead.

func (*DeleteObjectReq) GetPath added in v1.3.1

func (x *DeleteObjectReq) GetPath() string

func (*DeleteObjectReq) ProtoMessage added in v1.3.1

func (*DeleteObjectReq) ProtoMessage()

func (*DeleteObjectReq) ProtoReflect added in v1.3.1

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

func (*DeleteObjectReq) Reset added in v1.3.1

func (x *DeleteObjectReq) Reset()

func (*DeleteObjectReq) String added in v1.3.1

func (x *DeleteObjectReq) String() string

type DeleteObjectResp added in v1.3.1

type DeleteObjectResp struct {
	// contains filtered or unexported fields
}

func (*DeleteObjectResp) Descriptor deprecated added in v1.3.1

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

Deprecated: Use DeleteObjectResp.ProtoReflect.Descriptor instead.

func (*DeleteObjectResp) ProtoMessage added in v1.3.1

func (*DeleteObjectResp) ProtoMessage()

func (*DeleteObjectResp) ProtoReflect added in v1.3.1

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

func (*DeleteObjectResp) Reset added in v1.3.1

func (x *DeleteObjectResp) Reset()

func (*DeleteObjectResp) String added in v1.3.1

func (x *DeleteObjectResp) String() string

type GenCosStsReq added in v1.2.0

type GenCosStsReq struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*GenCosStsReq) Descriptor deprecated added in v1.2.0

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

Deprecated: Use GenCosStsReq.ProtoReflect.Descriptor instead.

func (*GenCosStsReq) GetPath added in v1.2.0

func (x *GenCosStsReq) GetPath() string

func (*GenCosStsReq) ProtoMessage added in v1.2.0

func (*GenCosStsReq) ProtoMessage()

func (*GenCosStsReq) ProtoReflect added in v1.2.0

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

func (*GenCosStsReq) Reset added in v1.2.0

func (x *GenCosStsReq) Reset()

func (*GenCosStsReq) String added in v1.2.0

func (x *GenCosStsReq) String() string

type GenCosStsResp added in v1.2.0

type GenCosStsResp struct {
	SecretId     string `protobuf:"bytes,1,opt,name=secretId,proto3" json:"secretId,omitempty"`
	SecretKey    string `protobuf:"bytes,2,opt,name=secretKey,proto3" json:"secretKey,omitempty"`
	SessionToken string `protobuf:"bytes,3,opt,name=sessionToken,proto3" json:"sessionToken,omitempty"`
	ExpiredTime  int64  `protobuf:"varint,4,opt,name=expiredTime,proto3" json:"expiredTime,omitempty"`
	StartTime    int64  `protobuf:"varint,5,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// contains filtered or unexported fields
}

func (*GenCosStsResp) Descriptor deprecated added in v1.2.0

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

Deprecated: Use GenCosStsResp.ProtoReflect.Descriptor instead.

func (*GenCosStsResp) GetExpiredTime added in v1.2.0

func (x *GenCosStsResp) GetExpiredTime() int64

func (*GenCosStsResp) GetSecretId added in v1.2.0

func (x *GenCosStsResp) GetSecretId() string

func (*GenCosStsResp) GetSecretKey added in v1.2.0

func (x *GenCosStsResp) GetSecretKey() string

func (*GenCosStsResp) GetSessionToken added in v1.2.0

func (x *GenCosStsResp) GetSessionToken() string

func (*GenCosStsResp) GetStartTime added in v1.2.0

func (x *GenCosStsResp) GetStartTime() int64

func (*GenCosStsResp) ProtoMessage added in v1.2.0

func (*GenCosStsResp) ProtoMessage()

func (*GenCosStsResp) ProtoReflect added in v1.2.0

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

func (*GenCosStsResp) Reset added in v1.2.0

func (x *GenCosStsResp) Reset()

func (*GenCosStsResp) String added in v1.2.0

func (x *GenCosStsResp) String() string

type GenSignedUrlReq added in v1.2.0

type GenSignedUrlReq struct {
	SecretId  string `protobuf:"bytes,1,opt,name=secretId,proto3" json:"secretId,omitempty"`
	SecretKey string `protobuf:"bytes,2,opt,name=secretKey,proto3" json:"secretKey,omitempty"`
	Method    string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Path      string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*GenSignedUrlReq) Descriptor deprecated added in v1.2.0

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

Deprecated: Use GenSignedUrlReq.ProtoReflect.Descriptor instead.

func (*GenSignedUrlReq) GetMethod added in v1.2.0

func (x *GenSignedUrlReq) GetMethod() string

func (*GenSignedUrlReq) GetPath added in v1.2.0

func (x *GenSignedUrlReq) GetPath() string

func (*GenSignedUrlReq) GetSecretId added in v1.2.0

func (x *GenSignedUrlReq) GetSecretId() string

func (*GenSignedUrlReq) GetSecretKey added in v1.2.0

func (x *GenSignedUrlReq) GetSecretKey() string

func (*GenSignedUrlReq) ProtoMessage added in v1.2.0

func (*GenSignedUrlReq) ProtoMessage()

func (*GenSignedUrlReq) ProtoReflect added in v1.2.0

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

func (*GenSignedUrlReq) Reset added in v1.2.0

func (x *GenSignedUrlReq) Reset()

func (*GenSignedUrlReq) String added in v1.2.0

func (x *GenSignedUrlReq) String() string

type GenSignedUrlResp added in v1.2.0

type GenSignedUrlResp struct {
	SignedUrl string `protobuf:"bytes,1,opt,name=signedUrl,proto3" json:"signedUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*GenSignedUrlResp) Descriptor deprecated added in v1.2.0

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

Deprecated: Use GenSignedUrlResp.ProtoReflect.Descriptor instead.

func (*GenSignedUrlResp) GetSignedUrl added in v1.2.0

func (x *GenSignedUrlResp) GetSignedUrl() string

func (*GenSignedUrlResp) ProtoMessage added in v1.2.0

func (*GenSignedUrlResp) ProtoMessage()

func (*GenSignedUrlResp) ProtoReflect added in v1.2.0

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

func (*GenSignedUrlResp) Reset added in v1.2.0

func (x *GenSignedUrlResp) Reset()

func (*GenSignedUrlResp) String added in v1.2.0

func (x *GenSignedUrlResp) String() string

type GetAccessTokenReq added in v1.3.2

type GetAccessTokenReq struct {
	App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	// contains filtered or unexported fields
}

app值为meowchat,old,manager

func (*GetAccessTokenReq) Descriptor deprecated added in v1.3.2

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

Deprecated: Use GetAccessTokenReq.ProtoReflect.Descriptor instead.

func (*GetAccessTokenReq) GetApp added in v1.3.2

func (x *GetAccessTokenReq) GetApp() string

func (*GetAccessTokenReq) ProtoMessage added in v1.3.2

func (*GetAccessTokenReq) ProtoMessage()

func (*GetAccessTokenReq) ProtoReflect added in v1.3.2

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

func (*GetAccessTokenReq) Reset added in v1.3.2

func (x *GetAccessTokenReq) Reset()

func (*GetAccessTokenReq) String added in v1.3.2

func (x *GetAccessTokenReq) String() string

type GetAccessTokenResp added in v1.3.2

type GetAccessTokenResp struct {
	AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	ExpiresIn   int64  `protobuf:"varint,2,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccessTokenResp) Descriptor deprecated added in v1.3.2

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

Deprecated: Use GetAccessTokenResp.ProtoReflect.Descriptor instead.

func (*GetAccessTokenResp) GetAccessToken added in v1.3.2

func (x *GetAccessTokenResp) GetAccessToken() string

func (*GetAccessTokenResp) GetExpiresIn added in v1.3.2

func (x *GetAccessTokenResp) GetExpiresIn() int64

func (*GetAccessTokenResp) ProtoMessage added in v1.3.2

func (*GetAccessTokenResp) ProtoMessage()

func (*GetAccessTokenResp) ProtoReflect added in v1.3.2

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

func (*GetAccessTokenResp) Reset added in v1.3.2

func (x *GetAccessTokenResp) Reset()

func (*GetAccessTokenResp) String added in v1.3.2

func (x *GetAccessTokenResp) String() string

type StsRpcClient added in v1.1.0

type StsRpcClient interface {
	GenCosSts(ctx context.Context, in *GenCosStsReq, opts ...grpc.CallOption) (*GenCosStsResp, error)
	GenSignedUrl(ctx context.Context, in *GenSignedUrlReq, opts ...grpc.CallOption) (*GenSignedUrlResp, error)
	DeleteObject(ctx context.Context, in *DeleteObjectReq, opts ...grpc.CallOption) (*DeleteObjectResp, error)
	GetAccessToken(ctx context.Context, in *GetAccessTokenReq, opts ...grpc.CallOption) (*GetAccessTokenResp, error)
}

StsRpcClient is the client API for StsRpc 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.

func NewStsRpcClient added in v1.1.0

func NewStsRpcClient(cc grpc.ClientConnInterface) StsRpcClient

type StsRpcServer added in v1.1.0

type StsRpcServer interface {
	GenCosSts(context.Context, *GenCosStsReq) (*GenCosStsResp, error)
	GenSignedUrl(context.Context, *GenSignedUrlReq) (*GenSignedUrlResp, error)
	DeleteObject(context.Context, *DeleteObjectReq) (*DeleteObjectResp, error)
	GetAccessToken(context.Context, *GetAccessTokenReq) (*GetAccessTokenResp, error)
	// contains filtered or unexported methods
}

StsRpcServer is the server API for StsRpc service. All implementations must embed UnimplementedStsRpcServer for forward compatibility

type UnimplementedStsRpcServer added in v1.1.0

type UnimplementedStsRpcServer struct {
}

UnimplementedStsRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedStsRpcServer) DeleteObject added in v1.3.1

func (UnimplementedStsRpcServer) GenCosSts added in v1.2.0

func (UnimplementedStsRpcServer) GenSignedUrl added in v1.2.0

func (UnimplementedStsRpcServer) GetAccessToken added in v1.3.2

type UnsafeStsRpcServer added in v1.1.0

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

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

Jump to

Keyboard shortcuts

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