sysctl

package
v7.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SysctlType_name = map[int32]string{
		5: "CTL_STR",
		6: "CTL_32",
	}
	SysctlType_value = map[string]int32{
		"CTL_STR": 5,
		"CTL_32":  6,
	}
)

Enum value maps for SysctlType.

View Source
var File_sysctl_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SysctlEntry

type SysctlEntry struct {
	Type *SysctlType `protobuf:"varint,1,req,name=type,enum=SysctlType" json:"type,omitempty"`
	Iarg *int32      `protobuf:"varint,2,opt,name=iarg" json:"iarg,omitempty"`
	Sarg *string     `protobuf:"bytes,3,opt,name=sarg" json:"sarg,omitempty"`
	// contains filtered or unexported fields
}

func (*SysctlEntry) Descriptor deprecated

func (*SysctlEntry) Descriptor() ([]byte, []int)

Deprecated: Use SysctlEntry.ProtoReflect.Descriptor instead.

func (*SysctlEntry) GetIarg

func (x *SysctlEntry) GetIarg() int32

func (*SysctlEntry) GetSarg

func (x *SysctlEntry) GetSarg() string

func (*SysctlEntry) GetType

func (x *SysctlEntry) GetType() SysctlType

func (*SysctlEntry) ProtoMessage

func (*SysctlEntry) ProtoMessage()

func (*SysctlEntry) ProtoReflect

func (x *SysctlEntry) ProtoReflect() protoreflect.Message

func (*SysctlEntry) Reset

func (x *SysctlEntry) Reset()

func (*SysctlEntry) String

func (x *SysctlEntry) String() string

type SysctlType

type SysctlType int32
const (
	SysctlType_CTL_STR SysctlType = 5
	SysctlType_CTL_32  SysctlType = 6
)

func (SysctlType) Descriptor

func (SysctlType) Descriptor() protoreflect.EnumDescriptor

func (SysctlType) Enum

func (x SysctlType) Enum() *SysctlType

func (SysctlType) EnumDescriptor deprecated

func (SysctlType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SysctlType.Descriptor instead.

func (SysctlType) Number

func (x SysctlType) Number() protoreflect.EnumNumber

func (SysctlType) String

func (x SysctlType) String() string

func (SysctlType) Type

func (*SysctlType) UnmarshalJSON deprecated

func (x *SysctlType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL