Documentation ¶
Overview ¶
Package parseutil provides utility functions for parsing operations.
Index ¶
- func ParseContract(contract *reservationv1alpha1.Contract) *models.Contract
- func ParseFlavour(flavour *nodecorev1alpha1.Flavour) *models.Flavour
- func ParseFlavourSelector(selector *nodecorev1alpha1.FlavourSelector) *models.Selector
- func ParseNodeIdentity(node nodecorev1alpha1.NodeIdentity) models.NodeIdentity
- func ParsePartition(partition *nodecorev1alpha1.Partition) *models.Partition
- func ParsePartitionFromObj(partition *models.Partition) *nodecorev1alpha1.Partition
- func ParseQuantityFromString(s string) resource.Quantity
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 ¶
ParseQuantityFromString parses a string into a resource.Quantity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.