Documentation ¶
Index ¶
- type Graph
- func (g *Graph) IsCNAMENode(ctx context.Context, fqdn string) bool
- func (g *Graph) IsMXNode(ctx context.Context, fqdn string) bool
- func (g *Graph) IsNSNode(ctx context.Context, fqdn string) bool
- func (g *Graph) IsPTRNode(ctx context.Context, fqdn string) bool
- func (g *Graph) NamesToAddrs(ctx context.Context, names ...string) ([]*NameAddrPair, error)
- func (g *Graph) ReadASDescription(ctx context.Context, asn int) string
- func (g *Graph) ReadASPrefixes(ctx context.Context, asn int) []string
- func (g *Graph) Remove()
- func (g *Graph) UpsertA(ctx context.Context, fqdn, addr string) error
- func (g *Graph) UpsertAAAA(ctx context.Context, fqdn, addr string) error
- func (g *Graph) UpsertAS(ctx context.Context, asn int, desc string) (*types.Asset, error)
- func (g *Graph) UpsertAddress(ctx context.Context, addr string) (*types.Asset, error)
- func (g *Graph) UpsertCNAME(ctx context.Context, fqdn, target string) error
- func (g *Graph) UpsertFQDN(ctx context.Context, name string) (*types.Asset, error)
- func (g *Graph) UpsertInfrastructure(ctx context.Context, asn int, desc, addr, cidr string) error
- func (g *Graph) UpsertMX(ctx context.Context, fqdn, target string) error
- func (g *Graph) UpsertNS(ctx context.Context, fqdn, target string) error
- func (g *Graph) UpsertNetblock(ctx context.Context, cidr string) (*types.Asset, error)
- func (g *Graph) UpsertPTR(ctx context.Context, fqdn, target string) error
- func (g *Graph) UpsertSRV(ctx context.Context, fqdn, service, target string) error
- type NameAddrPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
Graph is the object for managing a network infrastructure link graph.
func (*Graph) IsCNAMENode ¶
IsCNAMENode returns true if the FQDN has a CNAME edge to another FQDN in the graph.
func (*Graph) IsMXNode ¶
IsMXNode returns true if the FQDN has a MX edge pointing to it in the graph.
func (*Graph) IsNSNode ¶
IsNSNode returns true if the FQDN has a NS edge pointing to it in the graph.
func (*Graph) IsPTRNode ¶
IsPTRNode returns true if the FQDN has a PTR edge to another FQDN in the graph.
func (*Graph) NamesToAddrs ¶
NamesToAddrs returns a NameAddrPair for each name / address combination discovered in the graph.
func (*Graph) ReadASDescription ¶
ReadASDescription the description property of an autonomous system in the graph.
func (*Graph) ReadASPrefixes ¶
func (*Graph) UpsertA ¶
UpsertA creates FQDN, IP address and A record edge in the graph and associates them with a source and event.
func (*Graph) UpsertAAAA ¶
UpsertAAAA creates FQDN, IP address and AAAA record edge in the graph and associates them with a source and event.
func (*Graph) UpsertAddress ¶
UpsertAddress creates an IP address in the graph.
func (*Graph) UpsertCNAME ¶
UpsertCNAME adds the FQDNs and CNAME record between them to the graph.
func (*Graph) UpsertFQDN ¶
UpsertFQDN adds a fully qualified domain name to the graph.
func (*Graph) UpsertInfrastructure ¶
UpsertInfrastructure adds/updates an associated IP address, netblock and autonomous system in the graph.
func (*Graph) UpsertNetblock ¶
UpsertNetblock adds a netblock/CIDR to the graph.