parseutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package parseutil provides utility functions for parsing operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseContract

func ParseContract(contract *reservationv1alpha1.Contract) *models.Contract

ParseContract creates a Contract Object.

func ParseFlavour

func ParseFlavour(flavour *nodecorev1alpha1.Flavour) *models.Flavour

ParseFlavour creates a Flavour Object from a Flavour CR.

func ParseFlavourSelector

func ParseFlavourSelector(selector *nodecorev1alpha1.FlavourSelector) *models.Selector

ParseFlavourSelector parses FlavourSelector into a Selector.

func ParseNodeIdentity

func ParseNodeIdentity(node nodecorev1alpha1.NodeIdentity) models.NodeIdentity

ParseNodeIdentity creates a NodeIdentity Object from a NodeIdentity CR.

func ParsePartition

func ParsePartition(partition *nodecorev1alpha1.Partition) *models.Partition

ParsePartition creates a Partition Object from a Partition CR.

func ParsePartitionFromObj

func ParsePartitionFromObj(partition *models.Partition) *nodecorev1alpha1.Partition

ParsePartitionFromObj creates a Partition CR from a Partition Object.

func ParseQuantityFromString

func ParseQuantityFromString(s string) resource.Quantity

ParseQuantityFromString parses a string into a resource.Quantity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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