Skip to content

Commit

Permalink
[system/sysctl] Fix stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 15, 2024
1 parent d816f43 commit 5459768
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions system/sysctl/sysctl_stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ package sysctl
// //
// ////////////////////////////////////////////////////////////////////////////////// //

// Params contains all kernel parameters
type Params map[string]string

// ////////////////////////////////////////////////////////////////////////////////// //

// All returns all kernel parameters
func All() (Params, error) {
return nil, nil
}

// Get returns kernel parameter value as a string
func Get(param string) (string, error) {
return "", nil
Expand All @@ -25,3 +35,20 @@ func GetI(param string) (int, error) {
func GetI64(param string) (int64, error) {
return 0, nil
}

// ////////////////////////////////////////////////////////////////////////////////// //

// Get returns kernel parameter value as a string
func (p Params) Get(name string) string {
return ""
}

// GetI returns kernel parameter value as an int
func (p Params) GetI(param string) (int, error) {
return 0, nil
}

// GetI64 returns kernel parameter value as an int64
func (p Params) GetI64(param string) (int64, error) {
return 0, nil
}

0 comments on commit 5459768

Please sign in to comment.