render

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPort      = errors.New("invalid port configuration")
	ErrInvalidResource  = errors.New("invalid resource configuration")
	ErrMissingContainer = errors.New("missing container configuration")
	ErrMissingImage     = errors.New("missing image configuration")
)

Functions

func Deployment

func Deployment(rCtx Context) *openchoreov1alpha1.Resource

Deployment creates a complete Deployment resource for the new Resources array

func HTTPRoutes

func HTTPRoutes(rCtx Context) []*openchoreov1alpha1.Resource

HTTPRoutes renders the HTTPRoute resources for exposing the webapplication endpoints.

func MergeError

func MergeError(err error) error

MergeError wraps a merge operation error with additional context

func Service

func Service(rCtx Context) *openchoreov1alpha1.Resource

Service creates a complete Service resource for the new Resources array

Types

type Context

type Context struct {
	WebApplicationBinding *openchoreov1alpha1.WebApplicationBinding
	WebApplicationClass   *openchoreov1alpha1.WebApplicationClass
	Component             *openchoreov1alpha1.Component
	Environment           *openchoreov1alpha1.Environment
	ResolvedConnections   map[string]interface{}
	// contains filtered or unexported fields
}

func (*Context) AddError

func (c *Context) AddError(err error)

func (*Context) Error

func (c *Context) Error() error

func (*Context) Errors

func (c *Context) Errors() []error

Jump to

Keyboard shortcuts

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