Documentation ¶
Overview ¶
Package decode converts model objects used by the API into objects used by the management package. Functions are grouped by area.
Index ¶
- func FromCIDR(m *models.CIDR) string
- func FromCIDRs(m *[]models.CIDR) *[]string
- func FromDeletionSpecification(specification *models.DeletionSpecification) (deleteContainers *management.DeleteContainers, ...)
- func FromGateway(m *models.Gateway) string
- func FromIPAddress(m *models.IPAddress) string
- func FromIPAddresses(m []models.IPAddress) []string
- func FromImageFetchProxy(p *models.VCHRegistryImageFetchProxy) common.Proxies
- func FromManagedObject(op trace.Operation, finder client.Finder, m *models.ManagedObject, ...) (string, string, error)
- func FromPemCertificates(m []*models.X509Data) []byte
- func FromShares(m *models.Shares) *types.SharesInfo
- func FromValueBits(m *models.ValueBits) int
- func FromValueBytesMetric(m *models.ValueBytesMetric) string
- func MBFromValueBytes(m *models.ValueBytes) *int
- func MHzFromValueHertz(m *models.ValueHertz) *int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 FromIPAddress ¶
func FromIPAddresses ¶
func FromImageFetchProxy ¶
func FromImageFetchProxy(p *models.VCHRegistryImageFetchProxy) common.Proxies
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 FromShares ¶
func FromShares(m *models.Shares) *types.SharesInfo
func FromValueBits ¶
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.
Click to show internal directories.
Click to hide internal directories.