sls

package
v1.32.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPReservation

type IPReservation struct {
	Name      string   `json:"Name"`
	IPAddress string   `json:"IPAddress"`
	Aliases   []string `json:"Aliases,omitempty"`

	Comment string `json:"Comment,omitempty"`
}

IPReservation is a type for managing IP Reservations

type IPV4Subnet

type IPV4Subnet struct {
	FullName        string          `json:"FullName"`
	CIDR            string          `json:"CIDR"`
	IPReservations  []IPReservation `json:"IPReservations,omitempty"`
	Name            string          `json:"Name"`
	VlanID          int16           `json:"VlanID"`
	Gateway         string          `json:"Gateway"`
	DHCPStart       string          `json:"DHCPStart,omitempty"`
	DHCPEnd         string          `json:"DHCPEnd,omitempty"`
	Comment         string          `json:"Comment,omitempty"`
	MetalLBPoolName string          `json:"MetalLBPoolName,omitempty"`
}

IPV4Subnet is a type for managing IPv4 Subnets

func (*IPV4Subnet) ReservationsByName added in v1.16.16

func (subnet *IPV4Subnet) ReservationsByName() map[string]IPReservation

ReservationsByName presents the IPReservations in a map by name

type NetworkExtraProperties

type NetworkExtraProperties struct {
	CIDR      string  `json:"CIDR"`
	VlanRange []int16 `json:"VlanRange"`
	MTU       int16   `json:"MTU,omitempty"`
	Comment   string  `json:"Comment,omitempty"`
	PeerASN   int     `json:"PeerASN,omitempty"`
	MyASN     int     `json:"MyASN,omitempty"`

	Subnets []IPV4Subnet `json:"Subnets"`
}

NetworkExtraProperties provides additional network information

func (*NetworkExtraProperties) LookupSubnet added in v1.16.16

func (network *NetworkExtraProperties) LookupSubnet(name string) (IPV4Subnet, error)

LookupSubnet returns a subnet by name

type UtilsClient

type UtilsClient struct {
	// contains filtered or unexported fields
}

UtilsClient - Structure for SLS client.

func NewSLSClient

func NewSLSClient(baseURL string, httpClient *http.Client, token string) *UtilsClient

NewSLSClient - Creates a new SLS client.

func (*UtilsClient) GetManagementNCNs

func (utilsClient *UtilsClient) GetManagementNCNs() (managementNCNs []sls_common.GenericHardware, err error)

GetManagementNCNs - Returns all the management NCNs from SLS.

func (*UtilsClient) GetNetworks

func (utilsClient *UtilsClient) GetNetworks() (networks sls_common.NetworkArray, err error)

GetNetworks - Returns all the networks from SLS.

Jump to

Keyboard shortcuts

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