MCPcopy
hub / github.com/kopia/kopia / WriteKopiaRepositoryBlob

Method WriteKopiaRepositoryBlob

repo/format/format_blob.go:171–173  ·  view source on GitHub ↗

WriteKopiaRepositoryBlob writes `kopia.repository` blob to a given storage.

(ctx context.Context, st blob.Storage, blobCfg BlobStorageConfiguration)

Source from the content-addressed store, hash-verified

169
170// WriteKopiaRepositoryBlob writes `kopia.repository` blob to a given storage.
171func (f *KopiaRepositoryJSON) WriteKopiaRepositoryBlob(ctx context.Context, st blob.Storage, blobCfg BlobStorageConfiguration) error {
172 return f.WriteKopiaRepositoryBlobWithID(ctx, st, blobCfg, KopiaRepositoryBlobID)
173}
174
175// WriteKopiaRepositoryBlobWithID writes `kopia.repository` blob to a given storage under an alternate blobID.
176func (f *KopiaRepositoryJSON) WriteKopiaRepositoryBlobWithID(ctx context.Context, st blob.Storage, blobCfg BlobStorageConfiguration, id blob.ID) error {

Callers 4

SetParametersMethod · 0.80
ChangePasswordMethod · 0.80
InitializeFunction · 0.80

Calls 1

Tested by

no test coverage detected