File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
172184func BuildRuntimeInfo (name string ,
173185 namespace string ,
174186 runtimeType string ,
You can’t perform that action at this time.
0 commit comments