|
- // Code generated by goctl. DO NOT EDIT.
- // Source: pcm-scf.proto
-
- package scfclient
-
- import (
- "context"
-
- "PCM/adaptor/PCM-FC/PCM-SCF/scf"
-
- "github.com/zeromicro/go-zero/zrpc"
- "google.golang.org/grpc"
- )
-
- type (
- Accessinfo = scf.Accessinfo
- Cfsconfig = scf.Cfsconfig
- Cfsinslist = scf.Cfsinslist
- Deadletterconfig = scf.Deadletterconfig
- Eipconfig = scf.Eipconfig
- Eipconfig1 = scf.Eipconfig1
- Environment = scf.Environment
- Filters = scf.Filters
- Functions = scf.Functions
- GetFunctionsReq = scf.GetFunctionsReq
- GetFunctionsResp = scf.GetFunctionsResp
- GetFunctionsResponse = scf.GetFunctionsResponse
- Layers = scf.Layers
- ListFunctionsReq = scf.ListFunctionsReq
- ListFunctionsResp = scf.ListFunctionsResp
- ListFunctionsResponse = scf.ListFunctionsResponse
- Protocolparams = scf.Protocolparams
- Publicnetconfig = scf.Publicnetconfig
- Statusreasons = scf.Statusreasons
- Tags = scf.Tags
- Triggers = scf.Triggers
- Variables = scf.Variables
- Vpcconfig = scf.Vpcconfig
- Wsparams = scf.Wsparams
-
- Scf interface {
- // ListFunctions 查询腾讯云云函数列表
- ListFunctions(ctx context.Context, in *ListFunctionsReq, opts ...grpc.CallOption) (*ListFunctionsResp, error)
- // GetFunctions 查询腾讯云云函数详情
- GetFunctions(ctx context.Context, in *GetFunctionsReq, opts ...grpc.CallOption) (*GetFunctionsResp, error)
- }
-
- defaultScf struct {
- cli zrpc.Client
- }
- )
-
- func NewScf(cli zrpc.Client) Scf {
- return &defaultScf{
- cli: cli,
- }
- }
-
- // ListFunctions 查询腾讯云云函数列表
- func (m *defaultScf) ListFunctions(ctx context.Context, in *ListFunctionsReq, opts ...grpc.CallOption) (*ListFunctionsResp, error) {
- client := scf.NewScfClient(m.cli.Conn())
- return client.ListFunctions(ctx, in, opts...)
- }
-
- // GetFunctions 查询腾讯云云函数详情
- func (m *defaultScf) GetFunctions(ctx context.Context, in *GetFunctionsReq, opts ...grpc.CallOption) (*GetFunctionsResp, error) {
- client := scf.NewScfClient(m.cli.Conn())
- return client.GetFunctions(ctx, in, opts...)
- }
|