Merge branch '18682-use-keyrings-instead-of-key-ids'
[arvados.git] / sdk / go / config / load.go
index 9c65d65e84a57d9120d69dd84912615ff3949e35..cab09c74e883c3dafabd22d11037e6e1a3dcc3ab 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
 package config
 
 import (
@@ -22,3 +26,8 @@ func LoadFile(cfg interface{}, configPath string) error {
        }
        return nil
 }
+
+// Dump returns a YAML representation of cfg.
+func Dump(cfg interface{}) ([]byte, error) {
+       return yaml.Marshal(cfg)
+}