MCPcopy
hub / github.com/spacecloud-io/space-cloud / Create

Method Create

gateway/modules/crud/crud.go:56–56  ·  view source on GitHub ↗
(ctx context.Context, col string, req *model.CreateRequest)

Source from the content-addressed store, hash-verified

54// Crud abstracts the implementation crud operations of databases
55type Crud interface {
56 Create(ctx context.Context, col string, req *model.CreateRequest) (int64, error)
57 Read(ctx context.Context, col string, req *model.ReadRequest) (int64, interface{}, map[string]map[string]string, *model.SQLMetaData, error)
58 Update(ctx context.Context, col string, req *model.UpdateRequest) (int64, error)
59 Delete(ctx context.Context, col string, req *model.DeleteRequest) (int64, error)

Callers 15

CreateProjectMethod · 0.65
CreateSecretMethod · 0.65
applyDeploymentMethod · 0.65
applyServiceMethod · 0.65
applyVirtualServiceMethod · 0.65
applyDestinationRulesMethod · 0.65

Implementers 3

SQLgateway/modules/crud/sql/sql.go
Mongogateway/modules/crud/mgo/mongo.go
Boltgateway/modules/crud/bolt/bolt.go

Calls

no outgoing calls

Tested by 6

TestIstio_ListSecretsFunction · 0.52
TestSQL_CreateFunction · 0.52
TestSQL_CreateFunction · 0.52
TestBolt_CreateFunction · 0.52