Documentation ¶
Overview ¶
Package parseutil provides utility functions for parsing operations.
Index ¶
- func ParseConfiguration(configuration *nodecorev1alpha1.Configuration, flavor *nodecorev1alpha1.Flavor) (*models.Configuration, error)
- func ParseContract(contract *reservationv1alpha1.Contract) *models.Contract
- func ParseFlavor(flavor *nodecorev1alpha1.Flavor) *models.Flavor
- func ParseFlavorSelector(selector *nodecorev1alpha1.Selector) (models.Selector, error)
- func ParseNetworkAuthorizations(networkAuthorizations *nodecorev1alpha1.NetworkAuthorizations) (*models.NetworkAuthorizations, error)
- func ParseNodeIdentity(node nodecorev1alpha1.NodeIdentity) models.NodeIdentity
- func ParseQuantityFromString(s string) resource.Quantity
- func ParseResourceQuantityFilter(filter *nodecorev1alpha1.ResourceQuantityFilter) (models.ResourceQuantityFilter, error)
- func ParseSourceDestination(sourceDestination nodecorev1alpha1.SourceDestination) (*models.SourceDestination, error)
- func ParseStringFilter(filter *nodecorev1alpha1.StringFilter) (models.StringFilter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfiguration ¶ added in v0.1.0
func ParseConfiguration(configuration *nodecorev1alpha1.Configuration, flavor *nodecorev1alpha1.Flavor) (*models.Configuration, error)
ParseConfiguration creates a Configuration Object from a Configuration CR.
func ParseContract ¶
func ParseContract(contract *reservationv1alpha1.Contract) *models.Contract
ParseContract creates a Contract Object.
func ParseFlavor ¶ added in v0.1.0
func ParseFlavor(flavor *nodecorev1alpha1.Flavor) *models.Flavor
ParseFlavor creates a Flavor Object from a Flavor CR.
func ParseFlavorSelector ¶ added in v0.1.0
func ParseFlavorSelector(selector *nodecorev1alpha1.Selector) (models.Selector, error)
ParseFlavorSelector parses FlavorSelector into a Selector.
func ParseNetworkAuthorizations ¶ added in v0.1.0
func ParseNetworkAuthorizations(networkAuthorizations *nodecorev1alpha1.NetworkAuthorizations) (*models.NetworkAuthorizations, error)
ParseNetworkAuthorizations creates a NetworkAuthorizations Object from a NetworkAuthorizations CR.
func ParseNodeIdentity ¶
func ParseNodeIdentity(node nodecorev1alpha1.NodeIdentity) models.NodeIdentity
ParseNodeIdentity creates a NodeIdentity Object from a NodeIdentity CR.
func ParseQuantityFromString ¶
ParseQuantityFromString parses a string into a resource.Quantity.
func ParseResourceQuantityFilter ¶ added in v0.1.0
func ParseResourceQuantityFilter(filter *nodecorev1alpha1.ResourceQuantityFilter) (models.ResourceQuantityFilter, error)
ParseResourceQuantityFilter parses a filter of type ResourceQuantityFilter into a ResourceQuantityFilter model.
func ParseSourceDestination ¶ added in v0.1.0
func ParseSourceDestination(sourceDestination nodecorev1alpha1.SourceDestination) (*models.SourceDestination, error)
ParseSourceDestination creates a SourceDestination Object from a SourceDestination CR.
func ParseStringFilter ¶ added in v0.1.0
func ParseStringFilter(filter *nodecorev1alpha1.StringFilter) (models.StringFilter, error)
ParseStringFilter parses a filter of type StringFilter into a StringFilter model.
Types ¶
This section is empty.