blob: df8a7f1b025cd2a7960613057a0d2306250b9d29 [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package misc
import (
"fmt"
"cloud.google.com/go/storage"
)
// GsURI returns the gs:// URI for the object handle.
func GsURI(obj *storage.ObjectHandle) string {
return fmt.Sprintf("gs://%s/%s", obj.BucketName(), obj.ObjectName())
}