podgen

package
v2.0.0-...-d9f0f44 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string
	Pos     lexer.Position
}

Error represents an error that occurred during code generation.

func Podgen

func Podgen(expression parser.Expression) ([]*corev1.Pod, []Error)

Podgen generates a list of pods from an expression

func (*Error) Error

func (e *Error) Error() string

Error returns the string representation of the error.

type PodGenerator

type PodGenerator struct {
	// contains filtered or unexported fields
}

func (*PodGenerator) ParseQuantity

func (c *PodGenerator) ParseQuantity(node parser.Expression) *resource.Quantity

func (*PodGenerator) PodgenArithmeticExpression

func (c *PodGenerator) PodgenArithmeticExpression(node *parser.ArithmeticExpression)

PodgenArithmeticExpression generates pods for an arithmetic expression.

func (*PodGenerator) PodgenExpression

func (c *PodGenerator) PodgenExpression(node parser.Expression)

PodgenExpression generates pods for an expression.

func (*PodGenerator) PodgenPodExpression

func (c *PodGenerator) PodgenPodExpression(node *parser.PodExpression)

PodgenPodExpression generates pods for a pod expression.

Jump to

Keyboard shortcuts

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