MCPcopy Create free account
hub / github.com/clouditor/clouditor / Create

Method Create

persistence/persistence.go:46–46  ·  view source on GitHub ↗

Create creates a new object and put it into the DB

(r any)

Source from the content-addressed store, hash-verified

44
45 // Create creates a new object and put it into the DB
46 Create(r any) error
47
48 // Save updates the record r (workaround with conds needed that e.g. user has no specific ID, and we can not touch
49 // the generated (gRPC) code s.t. user.username has primary key annotation)

Callers 15

TestNewStorageFunction · 0.95
TestStorageOptionsFunction · 0.95
TestListIngressesFunction · 0.65
TestService_GetEvidenceFunction · 0.65
StoreEvidenceMethod · 0.65

Implementers 2

StorageWithErrorinternal/testutil/storage.go
storagepersistence/gorm/gorm.go

Calls

no outgoing calls

Tested by 15

TestNewStorageFunction · 0.76
TestStorageOptionsFunction · 0.76
TestListIngressesFunction · 0.52
TestService_GetEvidenceFunction · 0.52