You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

scf.go 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Code generated by goctl. DO NOT EDIT.
  2. // Source: pcm-scf.proto
  3. package scfclient
  4. import (
  5. "context"
  6. "PCM/adaptor/PCM-FC/PCM-SCF/scf"
  7. "github.com/zeromicro/go-zero/zrpc"
  8. "google.golang.org/grpc"
  9. )
  10. type (
  11. Accessinfo = scf.Accessinfo
  12. Cfsconfig = scf.Cfsconfig
  13. Cfsinslist = scf.Cfsinslist
  14. Deadletterconfig = scf.Deadletterconfig
  15. Eipconfig = scf.Eipconfig
  16. Eipconfig1 = scf.Eipconfig1
  17. Environment = scf.Environment
  18. Filters = scf.Filters
  19. Functions = scf.Functions
  20. GetFunctionsReq = scf.GetFunctionsReq
  21. GetFunctionsResp = scf.GetFunctionsResp
  22. GetFunctionsResponse = scf.GetFunctionsResponse
  23. Layers = scf.Layers
  24. ListFunctionsReq = scf.ListFunctionsReq
  25. ListFunctionsResp = scf.ListFunctionsResp
  26. ListFunctionsResponse = scf.ListFunctionsResponse
  27. Protocolparams = scf.Protocolparams
  28. Publicnetconfig = scf.Publicnetconfig
  29. Statusreasons = scf.Statusreasons
  30. Tags = scf.Tags
  31. Triggers = scf.Triggers
  32. Variables = scf.Variables
  33. Vpcconfig = scf.Vpcconfig
  34. Wsparams = scf.Wsparams
  35. Scf interface {
  36. // ListFunctions 查询腾讯云云函数列表
  37. ListFunctions(ctx context.Context, in *ListFunctionsReq, opts ...grpc.CallOption) (*ListFunctionsResp, error)
  38. // GetFunctions 查询腾讯云云函数详情
  39. GetFunctions(ctx context.Context, in *GetFunctionsReq, opts ...grpc.CallOption) (*GetFunctionsResp, error)
  40. }
  41. defaultScf struct {
  42. cli zrpc.Client
  43. }
  44. )
  45. func NewScf(cli zrpc.Client) Scf {
  46. return &defaultScf{
  47. cli: cli,
  48. }
  49. }
  50. // ListFunctions 查询腾讯云云函数列表
  51. func (m *defaultScf) ListFunctions(ctx context.Context, in *ListFunctionsReq, opts ...grpc.CallOption) (*ListFunctionsResp, error) {
  52. client := scf.NewScfClient(m.cli.Conn())
  53. return client.ListFunctions(ctx, in, opts...)
  54. }
  55. // GetFunctions 查询腾讯云云函数详情
  56. func (m *defaultScf) GetFunctions(ctx context.Context, in *GetFunctionsReq, opts ...grpc.CallOption) (*GetFunctionsResp, error) {
  57. client := scf.NewScfClient(m.cli.Conn())
  58. return client.GetFunctions(ctx, in, opts...)
  59. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.