system

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

func (*SystemSource) Weight

func (s *SystemSource) Weight() int

Weighting of duplicate sources

Jump to

Keyboard shortcuts

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