decode

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCIDR

func FromCIDR(m *models.CIDR) string

func FromCIDRs

func FromCIDRs(m *[]models.CIDR) *[]string

func FromDeletionSpecification

func FromDeletionSpecification(specification *models.DeletionSpecification) (deleteContainers *management.DeleteContainers, deleteVolumeStores *management.DeleteVolumeStores)

FromDeletionSpecification parses a DeletionSpecification into granular deletion settings expressed via iotas

func FromGateway

func FromGateway(m *models.Gateway) string

func FromIPAddress

func FromIPAddress(m *models.IPAddress) string

func FromIPAddresses

func FromIPAddresses(m []models.IPAddress) []string

func FromManagedObject

func FromManagedObject(op trace.Operation, finder client.Finder, m *models.ManagedObject, ts ...string) (string, string, error)

FromManagedObject returns a valid name/path for the supplied object and its type, if known.

func FromPemCertificates

func FromPemCertificates(m []*models.X509Data) []byte

func FromShares

func FromShares(m *models.Shares) *types.SharesInfo

func FromValueBits

func FromValueBits(m *models.ValueBits) int

func FromValueBytesMetric

func FromValueBytesMetric(m *models.ValueBytesMetric) string

func MBFromValueBytes

func MBFromValueBytes(m *models.ValueBytes) *int

func MHzFromValueHertz

func MHzFromValueHertz(m *models.ValueHertz) *int

Types

This section is empty.

Jump to

Keyboard shortcuts

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