utils

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFromScheme added in v1.0.22

func GenerateFromScheme(spec interface{}, scheme *Scheme, userInputs map[string]string) error

func GetTemplate added in v1.0.22

func GetTemplate(ctx context.Context, r common.Reconciler, who metav1.Object, ref string) (*v1alpha1.Template, error)

GetTemplate searches Frisbee for the given reference. By default, it searches the given namespace. If it is not found, then it searches the installation namespace.

Types

type ExpandedSpecBody added in v1.0.22

type ExpandedSpecBody string

func Evaluate

func Evaluate(scheme *Scheme) (ExpandedSpecBody, error)

Evaluate parses a given scheme and returns the respective ServiceSpec.

type Scheme added in v1.0.10

type Scheme struct {
	// Scenario returns the name of the scenario that invokes the template.
	Scenario string `json:"scenario,omitempty"`

	// Returns the namespace where the scenario is running
	Namespace string `json:"namespace,omitempty"`

	// Inputs are dynamic fields that populate the spec.
	// +optional
	Inputs *v1alpha1.Inputs `json:"inputs,omitempty"`

	// Spec is the specification whose values will be replaced by parameters.
	Spec []byte `json:"spec"`
}

func NewScheme added in v1.0.22

func NewScheme(caller metav1.Object, inputs *v1alpha1.Inputs, body []byte) (*Scheme, error)

Jump to

Keyboard shortcuts

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