psutil

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskSource

type DiskSource struct{}

func (*DiskSource) Contexts

func (s *DiskSource) Contexts() []string

List of contexts that this source is capable of find items for

func (*DiskSource) Find

func (s *DiskSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)

Find information about all of the disks.

func (*DiskSource) Get

func (s *DiskSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)

Get information about a disk. device = path

func (*DiskSource) Name

func (s *DiskSource) Name() string

Descriptive name for the source, used in logging and metadata

func (*DiskSource) Type

func (s *DiskSource) Type() string

Type is the type of items that this returns (Required)

func (*DiskSource) Weight

func (s *DiskSource) Weight() int

Weighting of duplicate sources

type ProcessSource

type ProcessSource struct{}

ProcessSource struct on which all methods are registered

func (*ProcessSource) Contexts

func (s *ProcessSource) Contexts() []string

List of contexts that this source is capable of find items for

func (*ProcessSource) Find

func (s *ProcessSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)

BlankFind always returns an empty list of items

func (*ProcessSource) Get

func (s *ProcessSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)

func (*ProcessSource) Name

func (s *ProcessSource) Name() string

Descriptive name for the source, used in logging and metadata

func (*ProcessSource) Type

func (s *ProcessSource) Type() string

Type is the type of items that this returns (Required)

func (*ProcessSource) Weight

func (s *ProcessSource) Weight() int

Weighting of duplicate sources

Jump to

Keyboard shortcuts

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