12483: Add comments.
[arvados.git] / sdk / go / arvados / collection.go
index bdd8e6e6b3f9ba1a015efe79567e49884b3b6794..999b4e9d483454ace177cad829e90f85ddccc44c 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
 package arvados
 
 import (
@@ -26,6 +30,10 @@ type Collection struct {
        IsTrashed              bool       `json:"is_trashed,omitempty"`
 }
 
+func (c Collection) resourceName() string {
+       return "collection"
+}
+
 // SizedDigests returns the hash+size part of each data block
 // referenced by the collection.
 func (c *Collection) SizedDigests() ([]SizedDigest, error) {