MCPcopy Index your code
hub / github.com/lxc/incus / ObjectProject

Function ObjectProject

internal/server/auth/authorization_objects.go:270–273  ·  view source on GitHub ↗

ObjectProject represents a project.

(projectName string)

Source from the content-addressed store, hash-verified

268
269// ObjectProject represents a project.
270func ObjectProject(projectName string) Object {
271 object, _ := NewObject(ObjectTypeProject, projectName)
272 return object
273}
274
275// ObjectImage represents an image.
276func ObjectImage(projectName string, imageFingerprint string) Object {

Callers 15

broadcastMethod · 0.92
setupOpenFGAMethod · 0.92
storagePoolVolumePostFunction · 0.92
instancePostFunction · 0.92
operationsGetFunction · 0.92
projectsGetFunction · 0.92
eventsSocketFunction · 0.92
imagesPostFunction · 0.92
TestObjectProjectMethod · 0.85
TestRemakeMethod · 0.85
ObjectFromRequestFunction · 0.85
AddProjectMethod · 0.85

Calls 1

NewObjectFunction · 0.85

Tested by 2

TestObjectProjectMethod · 0.68
TestRemakeMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…