Skip to content

Commit 8610bf6

Browse files
committed
Add Notation to BuildRuntimeInfo in pkg/ddc/base/runtime.go
Signed-off-by: Hanxian Lao <1687483153@qq.com>
1 parent d14dcc7 commit 8610bf6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

pkg/ddc/base/runtime.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,18 @@ type CachePath struct {
169169
Quota *resource.Quantity
170170
}
171171

172+
// BuildRuntimeInfo creates and initializes a RuntimeInfoInterface instance with the specified name, namespace, and runtime type.
173+
// It applies any number of optional configuration functions (opts) to customize the runtime information before returning.
174+
//
175+
// Parameters:
176+
// - name (string): The name of the runtime.
177+
// - namespace (string): The namespace of the runtime.
178+
// - runtimeType (string): The type of the runtime (e.g., Alluxio, JuiceFS).
179+
// - opts (...RuntimeInfoOption): Optional configuration functions that modify the RuntimeInfo struct.
180+
//
181+
// Returns:
182+
// - runtime (RuntimeInfoInterface): A fully configured runtime information object.
183+
// - err (error): Returns an error if any of the provided options fails to apply.
172184
func BuildRuntimeInfo(name string,
173185
namespace string,
174186
runtimeType string,

0 commit comments

Comments
 (0)