File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,6 +172,18 @@ type CachePath struct {
172172 Quota * resource.Quantity
173173}
174174
175+ // BuildRuntimeInfo creates and initializes a RuntimeInfoInterface instance with the specified name, namespace, and runtime type.
176+ // It applies any number of optional configuration functions (opts) to customize the runtime information before returning.
177+ //
178+ // Parameters:
179+ // - name (string): The name of the runtime.
180+ // - namespace (string): The namespace of the runtime.
181+ // - runtimeType (string): The type of the runtime (e.g., Alluxio, JuiceFS).
182+ // - opts (...RuntimeInfoOption): Optional configuration functions that modify the RuntimeInfo struct.
183+ //
184+ // Returns:
185+ // - runtime (RuntimeInfoInterface): A fully configured runtime information object.
186+ // - err (error): Returns an error if any of the provided options fails to apply.
175187func BuildRuntimeInfo (name string ,
176188 namespace string ,
177189 runtimeType string ,
You can’t perform that action at this time.
0 commit comments