Documentation ¶
Overview ¶
Package encode converts objects used by the management package into model objects used by the API. Functions are grouped by area.
Index ¶
- func AsBytes(value *int, units string) *models.ValueBytes
- func AsBytesMetric(value *int, units string) *models.ValueBytesMetric
- func AsCIDR(network *net.IPNet) models.CIDR
- func AsCIDRs(networks *[]net.IPNet) *[]models.CIDR
- func AsIPAddress(address net.IP) models.IPAddress
- func AsIPAddresses(addresses *[]net.IP) *[]models.IPAddress
- func AsIPRange(network *net.IPNet) models.IPRange
- func AsIPRanges(networks *[]ip.Range) *[]models.IPRange
- func AsImageFetchProxy(sessionConfig *executor.SessionConfig, http, https, nproxy string) *models.VCHRegistryImageFetchProxy
- func AsKB(value *int) *models.ValueBytesMetric
- func AsMHz(value *int) *models.ValueHertz
- func AsManagedObject(object common) models.ManagedObject
- func AsManagedObjectID(mobid string) string
- func AsMiB(value *int) *models.ValueBytes
- func AsNetwork(network *executor.NetworkEndpoint) *models.Network
- func AsPemCertificate(certificates []byte) *models.X509Data
- func AsPemCertificates(certificates []byte) []*models.X509Data
- func AsShares(shares *types.SharesInfo) *models.Shares
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsBytesMetric ¶
func AsBytesMetric(value *int, units string) *models.ValueBytesMetric
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 AsMiB ¶
func AsMiB(value *int) *models.ValueBytes
func AsPemCertificate ¶
func AsPemCertificates ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.