parseutil

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 7 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 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

func ParseQuantityFromString(s string) resource.Quantity

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.

Jump to

Keyboard shortcuts

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