File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,22 @@ import (
2424 "github.com/fluid-cloudnative/fluid/pkg/utils/kubeclient"
2525)
2626
27+ // GetHCFSStatus retrieves the status information of HCFS (Hadoop Compatible File System)
28+ // This function queries the HCFS endpoint and the underlying filesystem compatible version
29+ //
30+ // Process flow:
31+ // 1. First calls queryHCFSEndpoint() to get the HCFS access endpoint
32+ // 2. If endpoint retrieval fails, logs the error and returns the error
33+ // 3. Calls queryCompatibleUFSVersion() to get the underlying filesystem compatible version
34+ // 4. If version retrieval fails, logs the error and returns the error
35+ // 5. Constructs the HCFSStatus struct and populates it with the retrieved information
36+ // 6. Returns the status information and nil error
37+ //
38+ // Returns:
39+ // - *datav1alpha1.HCFSStatus: Pointer to a struct containing HCFS status information,
40+ // including endpoint and version details
41+ // - error: Returns an error if any issues occur during the query process
42+ //
2743// Query the hcfs status
2844func (e * GooseFSEngine ) GetHCFSStatus () (status * datav1alpha1.HCFSStatus , err error ) {
2945 endpoint , err := e .queryHCFSEndpoint ()
You can’t perform that action at this time.
0 commit comments