resources

package
v0.0.0-...-fb5451e Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operator_name = map[int32]string{
		0: "EQ",
		1: "NEQ",
		2: "GT",
		3: "GTE",
		4: "LT",
		5: "LTE",
		6: "IN",
		7: "LIKE",
	}
	Operator_value = map[string]int32{
		"EQ":   0,
		"NEQ":  1,
		"GT":   2,
		"GTE":  3,
		"LT":   4,
		"LTE":  5,
		"IN":   6,
		"LIKE": 7,
	}
)

Enum value maps for Operator.

View Source
var File_pb_v1_resources_filesystem_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_filter_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_group_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_rack_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_site_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_system_proto protoreflect.FileDescriptor
View Source
var File_pb_v1_resources_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	Filesystem string `protobuf:"bytes,1,opt,name=filesystem,proto3" json:"filesystem" csv:"filesystem" yaml:"filesystem"`
	Type       string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" csv:"type" yaml:"type"`
	// KB as in 1024 bytes
	SizeKb        uint64   `protobuf:"varint,3,opt,name=size_kb,json=sizeKb,proto3" json:"size_kb" csv:"size_kb" yaml:"size_kb"`
	UsedKb        uint64   `protobuf:"varint,4,opt,name=used_kb,json=usedKb,proto3" json:"used_kb" csv:"used_kb" yaml:"used_kb"`
	FreeKb        uint64   `protobuf:"varint,5,opt,name=free_kb,json=freeKb,proto3" json:"free_kb" csv:"free_kb" yaml:"free_kb"`
	UsedPct       float32  `protobuf:"fixed32,6,opt,name=used_pct,json=usedPct,proto3" json:"used_pct" csv:"used_pct" yaml:"used_pct"`
	Inodes        uint64   `protobuf:"varint,7,opt,name=inodes,proto3" json:"inodes" csv:"inodes" yaml:"inodes"`
	InodesUsed    uint64   `protobuf:"varint,8,opt,name=inodes_used,json=inodesUsed,proto3" json:"inodes_used" csv:"inodes_used" yaml:"inodes_used"`
	InodesFree    uint64   `protobuf:"varint,9,opt,name=inodes_free,json=inodesFree,proto3" json:"inodes_free" csv:"inodes_free" yaml:"inodes_free"`
	InodesUsedPct float32  `` /* 140-byte string literal not displayed */
	MountedOn     string   `protobuf:"bytes,11,opt,name=mounted_on,json=mountedOn,proto3" json:"mounted_on" csv:"mounted_on" yaml:"mounted_on"`
	MountOptions  []string `` /* 129-byte string literal not displayed */
	IsLocal       bool     `protobuf:"varint,13,opt,name=is_local,json=isLocal,proto3" json:"is_local" csv:"is_local" yaml:"is_local"`
	IsAutomounted bool     `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Filesystem) Descriptor deprecated

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

Deprecated: Use Filesystem.ProtoReflect.Descriptor instead.

func (*Filesystem) GetFilesystem

func (x *Filesystem) GetFilesystem() string

func (*Filesystem) GetFreeKb

func (x *Filesystem) GetFreeKb() uint64

func (*Filesystem) GetInodes

func (x *Filesystem) GetInodes() uint64

func (*Filesystem) GetInodesFree

func (x *Filesystem) GetInodesFree() uint64

func (*Filesystem) GetInodesUsed

func (x *Filesystem) GetInodesUsed() uint64

func (*Filesystem) GetInodesUsedPct

func (x *Filesystem) GetInodesUsedPct() float32

func (*Filesystem) GetIsAutomounted

func (x *Filesystem) GetIsAutomounted() bool

func (*Filesystem) GetIsLocal

func (x *Filesystem) GetIsLocal() bool

func (*Filesystem) GetMountOptions

func (x *Filesystem) GetMountOptions() []string

func (*Filesystem) GetMountedOn

func (x *Filesystem) GetMountedOn() string

func (*Filesystem) GetSizeKb

func (x *Filesystem) GetSizeKb() uint64

func (*Filesystem) GetType

func (x *Filesystem) GetType() string

func (*Filesystem) GetUsedKb

func (x *Filesystem) GetUsedKb() uint64

func (*Filesystem) GetUsedPct

func (x *Filesystem) GetUsedPct() float32

func (*Filesystem) ProtoMessage

func (*Filesystem) ProtoMessage()

func (*Filesystem) ProtoReflect

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

func (*Filesystem) Reset

func (x *Filesystem) Reset()

func (*Filesystem) String

func (x *Filesystem) String() string

type Filter

type Filter struct {
	Fields  []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields" csv:"fields" yaml:"fields"`
	Matches []*Match `protobuf:"bytes,2,rep,name=matches,proto3" json:"matches" csv:"matches" yaml:"matches"`
	Sorting []*Sort  `protobuf:"bytes,3,rep,name=sorting,proto3" json:"sorting" csv:"sorting" yaml:"sorting"`
	Limit   int32    `protobuf:"varint,4,opt,name=limit,proto3" json:"limit" csv:"limit" yaml:"limit"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetFields

func (x *Filter) GetFields() []string

func (*Filter) GetLimit

func (x *Filter) GetLimit() int32

func (*Filter) GetMatches

func (x *Filter) GetMatches() []*Match

func (*Filter) GetSorting

func (x *Filter) GetSorting() []*Sort

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type Group

type Group struct {
	Groupname string `protobuf:"bytes,1,opt,name=groupname,proto3" json:"groupname" csv:"groupname" yaml:"groupname"`
	Gid       uint64 `protobuf:"varint,2,opt,name=gid,proto3" json:"gid" csv:"gid" yaml:"gid"`
	// Signed GID for Mac OS X.
	GidSigned int64    `protobuf:"varint,3,opt,name=gid_signed,json=gidSigned,proto3" json:"gid_signed" csv:"gid_signed" yaml:"gid_signed"`
	Members   []string `protobuf:"bytes,4,rep,name=members,proto3" json:"members" csv:"members" yaml:"members"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetGid

func (x *Group) GetGid() uint64

func (*Group) GetGidSigned

func (x *Group) GetGidSigned() int64

func (*Group) GetGroupname

func (x *Group) GetGroupname() string

func (*Group) GetMembers

func (x *Group) GetMembers() []string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type Match

type Match struct {
	Field    string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field" csv:"field" yaml:"field"`
	Value    string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" csv:"value" yaml:"value"`
	Values   []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values" csv:"values" yaml:"values"`
	Operator Operator `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Match) Descriptor deprecated

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

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetField

func (x *Match) GetField() string

func (*Match) GetOperator

func (x *Match) GetOperator() Operator

func (*Match) GetValue

func (x *Match) GetValue() string

func (*Match) GetValues

func (x *Match) GetValues() []string

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

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

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

type Operator

type Operator int32
const (
	Operator_EQ   Operator = 0
	Operator_NEQ  Operator = 1
	Operator_GT   Operator = 2
	Operator_GTE  Operator = 3
	Operator_LT   Operator = 4
	Operator_LTE  Operator = 5
	Operator_IN   Operator = 6
	Operator_LIKE Operator = 7
)

func (Operator) Descriptor

func (Operator) Descriptor() protoreflect.EnumDescriptor

func (Operator) Enum

func (x Operator) Enum() *Operator

func (Operator) EnumDescriptor deprecated

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

Deprecated: Use Operator.Descriptor instead.

func (Operator) Number

func (x Operator) Number() protoreflect.EnumNumber

func (Operator) String

func (x Operator) String() string

func (Operator) Type

type Rack

type Rack struct {
	Rack             string `protobuf:"bytes,1,opt,name=rack,proto3" json:"rack" csv:"rack" yaml:"rack"`
	StartPosition    int32  `` /* 134-byte string literal not displayed */
	StartPositionTop bool   `` /* 153-byte string literal not displayed */
	Height           int32  `protobuf:"varint,4,opt,name=height,proto3" json:"height" csv:"height" yaml:"height"`
	Site             string `protobuf:"bytes,5,opt,name=site,proto3" json:"site" csv:"site" yaml:"site"`
	// contains filtered or unexported fields
}

func (*Rack) Descriptor deprecated

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

Deprecated: Use Rack.ProtoReflect.Descriptor instead.

func (*Rack) GetHeight

func (x *Rack) GetHeight() int32

func (*Rack) GetRack

func (x *Rack) GetRack() string

func (*Rack) GetSite

func (x *Rack) GetSite() string

func (*Rack) GetStartPosition

func (x *Rack) GetStartPosition() int32

func (*Rack) GetStartPositionTop

func (x *Rack) GetStartPositionTop() bool

func (*Rack) ProtoMessage

func (*Rack) ProtoMessage()

func (*Rack) ProtoReflect

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

func (*Rack) Reset

func (x *Rack) Reset()

func (*Rack) String

func (x *Rack) String() string

type Site

type Site struct {
	Site          string `protobuf:"bytes,1,opt,name=site,proto3" json:"site" csv:"site" yaml:"site"`
	Address1      string `protobuf:"bytes,2,opt,name=address1,proto3" json:"address1" csv:"address1" yaml:"address1"`
	Address2      string `protobuf:"bytes,3,opt,name=address2,proto3" json:"address2" csv:"address2" yaml:"address2"`
	City          string `protobuf:"bytes,4,opt,name=city,proto3" json:"city" csv:"city" yaml:"city"`
	ZipPostalCode string `` /* 137-byte string literal not displayed */
	CountryCode   string `protobuf:"bytes,6,opt,name=country_code,json=countryCode,proto3" json:"country_code" csv:"country_code" yaml:"country_code"`
	Organization  string `protobuf:"bytes,7,opt,name=organization,proto3" json:"organization" csv:"organization" yaml:"organization"`
	// contains filtered or unexported fields
}

func (*Site) Descriptor deprecated

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

Deprecated: Use Site.ProtoReflect.Descriptor instead.

func (*Site) GetAddress1

func (x *Site) GetAddress1() string

func (*Site) GetAddress2

func (x *Site) GetAddress2() string

func (*Site) GetCity

func (x *Site) GetCity() string

func (*Site) GetCountryCode

func (x *Site) GetCountryCode() string

func (*Site) GetOrganization

func (x *Site) GetOrganization() string

func (*Site) GetSite

func (x *Site) GetSite() string

func (*Site) GetZipPostalCode

func (x *Site) GetZipPostalCode() string

func (*Site) ProtoMessage

func (*Site) ProtoMessage()

func (*Site) ProtoReflect

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

func (*Site) Reset

func (x *Site) Reset()

func (*Site) String

func (x *Site) String() string

type Sort

type Sort struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field" csv:"field" yaml:"field"`
	Desc  bool   `protobuf:"varint,2,opt,name=desc,proto3" json:"desc" csv:"desc" yaml:"desc"`
	// contains filtered or unexported fields
}

func (*Sort) Descriptor deprecated

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

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetDesc

func (x *Sort) GetDesc() bool

func (*Sort) GetField

func (x *Sort) GetField() string

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) ProtoReflect

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

func (*Sort) Reset

func (x *Sort) Reset()

func (*Sort) String

func (x *Sort) String() string

type System

type System struct {
	Created        *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created" csv:"created" yaml:"created"`
	Updated        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated" csv:"updated" yaml:"updated"`
	LastSeen       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen" csv:"last_seen" yaml:"last_seen"`
	Hostname       string                 `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname" csv:"hostname" yaml:"hostname"`
	Address        string                 `protobuf:"bytes,5,opt,name=address,proto3" json:"address" csv:"address" yaml:"address"`
	Manufacturer   string                 `protobuf:"bytes,6,opt,name=manufacturer,proto3" json:"manufacturer" csv:"manufacturer" yaml:"manufacturer"`
	Product        string                 `protobuf:"bytes,7,opt,name=product,proto3" json:"product" csv:"product" yaml:"product"`
	ProductVersion string                 ``                                                                                                                             /* 138-byte string literal not displayed */
	SerialNumber   string                 ``                                                                                                                             /* 128-byte string literal not displayed */
	BiosVendor     string                 `protobuf:"bytes,10,opt,name=bios_vendor,json=biosVendor,proto3" json:"bios_vendor" csv:"bios_vendor" yaml:"bios_vendor"`      // Only PC
	BiosDate       string                 `protobuf:"bytes,11,opt,name=bios_date,json=biosDate,proto3" json:"bios_date" csv:"bios_date" yaml:"bios_date"`                // Only PC
	BiosVersion    string                 `protobuf:"bytes,12,opt,name=bios_version,json=biosVersion,proto3" json:"bios_version" csv:"bios_version" yaml:"bios_version"` // Only PC
	BootRomVersion string                 ``                                                                                                                             // Only Apple
	/* 143-byte string literal not displayed */
	SmcVersion        string `protobuf:"bytes,14,opt,name=smc_version,json=smcVersion,proto3" json:"smc_version" csv:"smc_version" yaml:"smc_version"` // Only Apple
	MemoryGb          int32  `protobuf:"varint,15,opt,name=memory_gb,json=memoryGb,proto3" json:"memory_gb" csv:"memory_gb" yaml:"memory_gb"`
	CpuCoresPerSocket int32  `` /* 163-byte string literal not displayed */
	CpuPhysicalCores  int32  `` /* 154-byte string literal not displayed */
	CpuLogicalCores   int32  `` /* 149-byte string literal not displayed */
	CpuSockets        int32  `protobuf:"varint,19,opt,name=cpu_sockets,json=cpuSockets,proto3" json:"cpu_sockets" csv:"cpu_sockets" yaml:"cpu_sockets"`
	CpuThreadsPerCore int32  `` /* 163-byte string literal not displayed */
	CpuModel          string `protobuf:"bytes,21,opt,name=cpu_model,json=cpuModel,proto3" json:"cpu_model" csv:"cpu_model" yaml:"cpu_model"`
	CpuFlags          string `protobuf:"bytes,22,opt,name=cpu_flags,json=cpuFlags,proto3" json:"cpu_flags" csv:"cpu_flags" yaml:"cpu_flags"`
	Os                string `protobuf:"bytes,23,opt,name=os,proto3" json:"os" csv:"os" yaml:"os"`
	OsVersion         string `protobuf:"bytes,24,opt,name=os_version,json=osVersion,proto3" json:"os_version" csv:"os_version" yaml:"os_version"`
	OsBuild           string `protobuf:"bytes,25,opt,name=os_build,json=osBuild,proto3" json:"os_build" csv:"os_build" yaml:"os_build"`
	OsDescr           string `protobuf:"bytes,26,opt,name=os_descr,json=osDescr,proto3" json:"os_descr" csv:"os_descr" yaml:"os_descr"`
	Kernel            string `protobuf:"bytes,27,opt,name=kernel,proto3" json:"kernel" csv:"kernel" yaml:"kernel"`
	KernelVersion     string `` /* 134-byte string literal not displayed */
	KernelRelease     string `` /* 134-byte string literal not displayed */
	Description       string `protobuf:"bytes,30,opt,name=description,proto3" json:"description" csv:"description" yaml:"description"`
	Site              string `protobuf:"bytes,31,opt,name=site,proto3" json:"site" csv:"site" yaml:"site"`
	Rack              string `protobuf:"bytes,32,opt,name=rack,proto3" json:"rack" csv:"rack" yaml:"rack"`
	RackPosition      int32  `` /* 130-byte string literal not displayed */
	RackHeight        int32  `protobuf:"varint,34,opt,name=rack_height,json=rackHeight,proto3" json:"rack_height" csv:"rack_height" yaml:"rack_height"`
	Vm                bool   `protobuf:"varint,35,opt,name=vm,proto3" json:"vm" csv:"vm" yaml:"vm"`
	VmServer          string `protobuf:"bytes,36,opt,name=vm_server,json=vmServer,proto3" json:"vm_server" csv:"vm_server" yaml:"vm_server"`
	// contains filtered or unexported fields
}

func (*System) Descriptor deprecated

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

Deprecated: Use System.ProtoReflect.Descriptor instead.

func (*System) GetAddress

func (x *System) GetAddress() string

func (*System) GetBiosDate

func (x *System) GetBiosDate() string

func (*System) GetBiosVendor

func (x *System) GetBiosVendor() string

func (*System) GetBiosVersion

func (x *System) GetBiosVersion() string

func (*System) GetBootRomVersion

func (x *System) GetBootRomVersion() string

func (*System) GetCpuCoresPerSocket

func (x *System) GetCpuCoresPerSocket() int32

func (*System) GetCpuFlags

func (x *System) GetCpuFlags() string

func (*System) GetCpuLogicalCores

func (x *System) GetCpuLogicalCores() int32

func (*System) GetCpuModel

func (x *System) GetCpuModel() string

func (*System) GetCpuPhysicalCores

func (x *System) GetCpuPhysicalCores() int32

func (*System) GetCpuSockets

func (x *System) GetCpuSockets() int32

func (*System) GetCpuThreadsPerCore

func (x *System) GetCpuThreadsPerCore() int32

func (*System) GetCreated

func (x *System) GetCreated() *timestamppb.Timestamp

func (*System) GetDescription

func (x *System) GetDescription() string

func (*System) GetHostname

func (x *System) GetHostname() string

func (*System) GetKernel

func (x *System) GetKernel() string

func (*System) GetKernelRelease

func (x *System) GetKernelRelease() string

func (*System) GetKernelVersion

func (x *System) GetKernelVersion() string

func (*System) GetLastSeen

func (x *System) GetLastSeen() *timestamppb.Timestamp

func (*System) GetManufacturer

func (x *System) GetManufacturer() string

func (*System) GetMemoryGb

func (x *System) GetMemoryGb() int32

func (*System) GetOs

func (x *System) GetOs() string

func (*System) GetOsBuild

func (x *System) GetOsBuild() string

func (*System) GetOsDescr

func (x *System) GetOsDescr() string

func (*System) GetOsVersion

func (x *System) GetOsVersion() string

func (*System) GetProduct

func (x *System) GetProduct() string

func (*System) GetProductVersion

func (x *System) GetProductVersion() string

func (*System) GetRack

func (x *System) GetRack() string

func (*System) GetRackHeight

func (x *System) GetRackHeight() int32

func (*System) GetRackPosition

func (x *System) GetRackPosition() int32

func (*System) GetSerialNumber

func (x *System) GetSerialNumber() string

func (*System) GetSite

func (x *System) GetSite() string

func (*System) GetSmcVersion

func (x *System) GetSmcVersion() string

func (*System) GetUpdated

func (x *System) GetUpdated() *timestamppb.Timestamp

func (*System) GetVm

func (x *System) GetVm() bool

func (*System) GetVmServer

func (x *System) GetVmServer() string

func (*System) ProtoMessage

func (*System) ProtoMessage()

func (*System) ProtoReflect

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

func (*System) Reset

func (x *System) Reset()

func (*System) String

func (x *System) String() string

type User

type User struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" csv:"username" yaml:"username"`
	Comment  string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment" csv:"comment" yaml:"comment"`
	Uid      uint64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid" csv:"uid" yaml:"uid"`
	Gid      uint64 `protobuf:"varint,4,opt,name=gid,proto3" json:"gid" csv:"gid" yaml:"gid"`
	// Signed UID for Mac OS X.
	UidSigned int64 `protobuf:"varint,5,opt,name=uid_signed,json=uidSigned,proto3" json:"uid_signed" csv:"uid_signed" yaml:"uid_signed"`
	// Signed GID for Mac OS X.
	GidSigned int64  `protobuf:"varint,6,opt,name=gid_signed,json=gidSigned,proto3" json:"gid_signed" csv:"gid_signed" yaml:"gid_signed"`
	Directory string `protobuf:"bytes,7,opt,name=directory,proto3" json:"directory" csv:"directory" yaml:"directory"`
	Shell     string `protobuf:"bytes,8,opt,name=shell,proto3" json:"shell" csv:"shell" yaml:"shell"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetComment

func (x *User) GetComment() string

func (*User) GetDirectory

func (x *User) GetDirectory() string

func (*User) GetGid

func (x *User) GetGid() uint64

func (*User) GetGidSigned

func (x *User) GetGidSigned() int64

func (*User) GetShell

func (x *User) GetShell() string

func (*User) GetUid

func (x *User) GetUid() uint64

func (*User) GetUidSigned

func (x *User) GetUidSigned() int64

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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