-
Notifications
You must be signed in to change notification settings - Fork 8
/
client.go
20 lines (18 loc) · 1.52 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package client
import (
"context"
"github.com/oracle/oci-go-sdk/v65/functions"
)
// Interface extracted from Go SDK FunctionsManagementClient for mockability
type FunctionsManagementClient interface {
CreateApplication(ctx context.Context, request functions.CreateApplicationRequest) (response functions.CreateApplicationResponse, err error)
CreateFunction(ctx context.Context, request functions.CreateFunctionRequest) (response functions.CreateFunctionResponse, err error)
DeleteApplication(ctx context.Context, request functions.DeleteApplicationRequest) (response functions.DeleteApplicationResponse, err error)
DeleteFunction(ctx context.Context, request functions.DeleteFunctionRequest) (response functions.DeleteFunctionResponse, err error)
GetApplication(ctx context.Context, request functions.GetApplicationRequest) (response functions.GetApplicationResponse, err error)
GetFunction(ctx context.Context, request functions.GetFunctionRequest) (response functions.GetFunctionResponse, err error)
ListApplications(ctx context.Context, request functions.ListApplicationsRequest) (response functions.ListApplicationsResponse, err error)
ListFunctions(ctx context.Context, request functions.ListFunctionsRequest) (response functions.ListFunctionsResponse, err error)
UpdateApplication(ctx context.Context, request functions.UpdateApplicationRequest) (response functions.UpdateApplicationResponse, err error)
UpdateFunction(ctx context.Context, request functions.UpdateFunctionRequest) (response functions.UpdateFunctionResponse, err error)
}