Documentation ¶
Index ¶
- type DiskSource
- func (s *DiskSource) Contexts() []string
- func (s *DiskSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
- func (s *DiskSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)
- func (s *DiskSource) Name() string
- func (s *DiskSource) Type() string
- func (s *DiskSource) Weight() int
- type ProcessSource
- func (s *ProcessSource) Contexts() []string
- func (s *ProcessSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
- func (s *ProcessSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)
- func (s *ProcessSource) Name() string
- func (s *ProcessSource) Type() string
- func (s *ProcessSource) Weight() int
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) 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)
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) 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)
Click to show internal directories.
Click to hide internal directories.