utils

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//NetboxSyncVMCommentStartingEndingLine
	NetboxSyncVMCommentStartingEndingLine string = "--- NETBOX SYNC: DO NOT MODIFY ---"
)

Variables

This section is empty.

Functions

func ConvertCustomFields

func ConvertCustomFields(customFields interface{}) map[string]string

func ExtractFromApiError

func ExtractFromApiError(err error) error

func GenerateSlug

func GenerateSlug(s string) string

GenerateSlug generates a netbox compatible identifier for eg. manufacturers, devices

func GenerateVMComment

func GenerateVMComment(host types.VirtualServer) string

func ParseVMComment

func ParseVMComment(comments string, host *types.VirtualServer)

func SplitCidrFromIP

func SplitCidrFromIP(ipWithCidr string) (string, uint16, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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