Documentation ¶
Index ¶
- Constants
- func ConvertCustomFields(customFields interface{}) map[string]string
- func ExtractFromApiError(err error) error
- func GenerateSlug(s string) string
- func GenerateVMComment(host types.VirtualServer) string
- func ParseVMComment(comments string, host *types.VirtualServer)
- func SplitCidrFromIP(ipWithCidr string) (string, uint16, error)
Constants ¶
View Source
const ( //NetboxSyncVMCommentStartingEndingLine NetboxSyncVMCommentStartingEndingLine string = "--- NETBOX SYNC: DO NOT MODIFY ---" )
Variables ¶
This section is empty.
Functions ¶
func ConvertCustomFields ¶
func ExtractFromApiError ¶
func GenerateSlug ¶
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.