encode

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package encode converts objects used by the management package into model objects used by the API. Functions are grouped by area.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsBytes

func AsBytes(value *int, units string) *models.ValueBytes

func AsBytesMetric

func AsBytesMetric(value *int, units string) *models.ValueBytesMetric

func AsCIDR

func AsCIDR(network *net.IPNet) models.CIDR

func AsCIDRs

func AsCIDRs(networks *[]net.IPNet) *[]models.CIDR

func AsIPAddress

func AsIPAddress(address net.IP) models.IPAddress

func AsIPAddresses

func AsIPAddresses(addresses *[]net.IP) *[]models.IPAddress

func AsIPRange

func AsIPRange(network *net.IPNet) models.IPRange

func AsIPRanges

func AsIPRanges(networks *[]ip.Range) *[]models.IPRange

func AsImageFetchProxy

func AsImageFetchProxy(sessionConfig *executor.SessionConfig, http, https, nproxy string) *models.VCHRegistryImageFetchProxy

func AsKB

func AsKB(value *int) *models.ValueBytesMetric

func AsMHz

func AsMHz(value *int) *models.ValueHertz

func AsManagedObject

func AsManagedObject(object common) models.ManagedObject

func AsManagedObjectID

func AsManagedObjectID(mobid string) string

func AsMiB

func AsMiB(value *int) *models.ValueBytes

func AsNetwork

func AsNetwork(network *executor.NetworkEndpoint) *models.Network

func AsPemCertificate

func AsPemCertificate(certificates []byte) *models.X509Data

func AsPemCertificates

func AsPemCertificates(certificates []byte) []*models.X509Data

func AsShares

func AsShares(shares *types.SharesInfo) *models.Shares

Types

This section is empty.

Jump to

Keyboard shortcuts

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