MCPcopy Create free account
hub / github.com/blobcache/blobcache / CreateVolume

Method CreateVolume

src/blobcache/blobcache.go:405–405  ·  view source on GitHub ↗

CreateVolume creates a new volume. CreateVolume always creates a Volume on the local Node. CreateVolume returns a handle to the Volume. If no other references to the Volume have been created by the time the handle expires, the Volume will be deleted. Leave caller nil to skip Authorization checks. H

(ctx context.Context, host *Endpoint, vspec VolumeSpec)

Source from the content-addressed store, hash-verified

403 // Host describes where the Volume should be created.
404 // If the Host is nil, the Volume will be created on the local Node.
405 CreateVolume(ctx context.Context, host *Endpoint, vspec VolumeSpec) (*Handle, error)
406
407 // CreateQueue creates a new queue and returns a handle to it.
408 CreateQueue(ctx context.Context, host *Endpoint, qspec QueueSpec) (*Handle, error)

Callers 15

handleVolumeMethod · 0.65
ns.goFile · 0.65
git.goFile · 0.65
mkvolFunction · 0.65
CreateVolumeMethod · 0.65
createRemoteVolumeMethod · 0.65
CreateVolumeMethod · 0.65
ServiceAPIFunction · 0.65
TestMultiNodeFunction · 0.65
CreateVolumeFunction · 0.65
CreateOnSameHostFunction · 0.65
ServeBCPMethod · 0.65

Implementers 5

Clientsrc/bchttp/client.go
Servicesrc/blobcachecmd/service.go
Servicesrc/bclocal/bclocal.go
Servicesrc/bcremote/bcremote.go
Clientsrc/bcipc/client.go

Calls

no outgoing calls

Tested by 6

TestMultiNodeFunction · 0.52
TestGLFSFunction · 0.52
TestSuiteFunction · 0.52
newFSFunction · 0.52
setupFunction · 0.52