types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDNSMapping

func HasDNSMapping(col []*DNSMapping, item *DNSMapping) bool

HasDNSMapping checks if a slice of DNSMapping pointers contains a particular mapping by value

Types

type DNSContainerList

type DNSContainerList struct {
	Name          string
	IP            net.IP
	ContainerList []string
}

DNSContainerList is a type that keeps track of which containerIDs are associated with a (hostname, IP) pair

type DNSMapping

type DNSMapping struct {
	Name        string
	ContainerID string
	IP          net.IP
}

DNSMapping is a type that represents a Container and its associated (hostname, IP) pair

func (*DNSMapping) GetKey

func (mapping *DNSMapping) GetKey() []byte

GetKey produces a byte array that can be used as a unique key for this record for us in eg Boltdb

Jump to

Keyboard shortcuts

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