Documentation
¶
Index ¶
- Variables
- type SystemSource
- func (s *SystemSource) Contexts() []string
- func (s *SystemSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
- func (s *SystemSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)
- func (s *SystemSource) Name() string
- func (s *SystemSource) Type() string
- func (s *SystemSource) Weight() int
Constants ¶
This section is empty.
Variables ¶
var IgnoredRanges = []string{
"169.254.0.0/16",
"fe80::/10",
"127.0.0.0/8",
"::1/128",
}
IgnoredRanges IP Ranges thatare ignored when generating linked items for a host's IPs
Functions ¶
This section is empty.
Types ¶
type SystemSource ¶
type SystemSource struct{}
SystemSource struct on which all methods are registered
func (*SystemSource) Contexts ¶
func (s *SystemSource) Contexts() []string
List of contexts that this source is capable of find items for
func (*SystemSource) Find ¶
func (s *SystemSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
Find Gets information about all item that the source can possibly find. If nothing is found then just return an empty list (Required)
func (*SystemSource) Get ¶
func (s *SystemSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)
Get takes the UniqueAttribute value as a parameter (also referred to as the "name" of the item) and returns a full item will all details. This function must return an item whose UniqueAttribute value exactly matches the supplied parameter. If the item cannot be found it should return an ItemNotFoundError (Required)
func (*SystemSource) Name ¶
func (s *SystemSource) Name() string
Name Returns the name of the backend package. This is used for debugging and logging (Required)
func (*SystemSource) Type ¶
func (s *SystemSource) Type() string
Type is the type of items that this returns (Required)