Skip to content

Commit

Permalink
Merge pull request #2318 from libopenstorage/consts
Browse files Browse the repository at this point in the history
Add some consts to be used for proxy mounts
  • Loading branch information
pnookala-px authored Aug 9, 2023
2 parents 97966f7 + e0892d1 commit fa4a9b2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1473,3 +1473,21 @@ func (s *ProxySpec) GetPureFullVolumeName() string {
func GetAllEnumInfo() []protoimpl.EnumInfo {
return file_api_api_proto_enumTypes
}

// Constants defined for proxy mounts
const (
// OptProxyCaller is an option to pass NodeID of the client requesting a sharedv4
// mount from the server
OptProxyCaller = "caller"
// OptProxyCallerIP is an option to pass NodeIP of the client requesting a sharedv4
// mount from the server
OptProxyCallerIP = "caller_ip"
// OptMountID is an option to pass mount path of the client requesting a sharedv4
// mount from the server
OptMountID = "mountID"
)

const (
// SharedVolExportPrefix is the export path where shared volumes are mounted
SharedVolExportPrefix = "/var/lib/osd/pxns"
)

0 comments on commit fa4a9b2

Please sign in to comment.