github.com/minio/madmin-go@v1.7.5/kernel/kernel_other.go (about) 1 // 2 // MinIO Object Storage (c) 2022 MinIO, Inc. 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 //go:build !linux 18 // +build !linux 19 20 package kernel 21 22 // VersionFromRelease only implemented on Linux. 23 func VersionFromRelease(_ string) (uint32, error) { 24 return 0, nil 25 } 26 27 // Version only implemented on Linux. 28 func Version(_, _, _ int) uint32 { 29 return 0 30 } 31 32 // CurrentRelease only implemented on Linux. 33 func CurrentRelease() (string, error) { 34 return "", nil 35 } 36 37 // CurrentVersion only implemented on Linux. 38 func CurrentVersion() (uint32, error) { 39 return 0, nil 40 }