Documentation
¶
Index ¶
Constants ¶
View Source
const AgentuityTenantID = "agentuity"
View Source
const CatalystServiceIP = "fd15:d710:25:c500:9dc5:d408::"
View Source
const OtelServiceIP = "fd15:d710:2a:68d0:9dc5:2763::"
View Source
const PulseServiceIP = "fd15:d710:26:5d00:9dc5:336f::"
Variables ¶
View Source
var Services = map[string]string{
"fd15:d710:25:c500:9dc5:d408::": "catalyst",
"fd15:d710:2a:68d0:9dc5:2763::": "otel",
"fd15:d710:26:5d00:9dc5:336f::": "pulse",
}
Functions ¶
This section is empty.
Types ¶
type IPv6Address ¶
type IPv6Address struct {
// Region is the region of the IPv6 address.
Region Region
// Network is the network of the IPv6 address.
Network Network
// TenantID is the tenant ID of the IPv6 address.
TenantID string
// MachineID is the machine ID of the IPv6 address.
MachineID string
// HostID is the host ID of the IPv6 address.
HostID string
// contains filtered or unexported fields
}
func NewIPv6Address ¶
func NewIPv6Address(region Region, network Network, tenantID string, machineID string, hostID string) *IPv6Address
NewIPv6Address creates a new IPv6Address struct with the given parameters. It calculates the IPv6 address based on the provided parameters and stores them in the struct. The struct is returned as a pointer to the IPv6Address type.
func (*IPv6Address) MachineSubnet ¶
func (a *IPv6Address) MachineSubnet() string
MachineSubnet returns the subnet for the machine with a /96 mask.
func (*IPv6Address) MarshalJSON ¶
func (a *IPv6Address) MarshalJSON() ([]byte, error)
func (*IPv6Address) String ¶
func (a *IPv6Address) String() string
Click to show internal directories.
Click to hide internal directories.