INNER CODE UNIT · Go

objectStorageBuildFunc

bliporg/blip · deps/deptool/cmd/main.go:214

func objectStorageBuildFunc() (objectstorage.ObjectStorage, error) {
	// construct object storage client opts
	opts := deptool.DigitalOceanObjectStorageClientOpts{}
	authKey, authSecret, err := getObjectStorageCredentialsFromEnvVars()
	if err == nil {
		opts.AuthKey = authKey
		opts.AuthSecret = authSecret
	}
	objectStorage, err := deptool.NewDigitalOceanObjectStorageClient(opts)
	if err != nil {
		return nil, err
	}
	return objectStorage, nil
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…