parameters

package
v3.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeepValue

func GetDeepValue(parameters interface{}, path string) interface{}

func ResolveTemplateParameters

func ResolveTemplateParameters(set []string, parameters []storagev1.AppParameter, fileName string) (string, error)

func SetDeepValue

func SetDeepValue(parameters interface{}, path string, value interface{})

func VerifyValue

func VerifyValue(value string, parameter storagev1.AppParameter) (interface{}, error)

Types

type AppFile

type AppFile struct {
	Apps []AppParameters `json:"apps,omitempty"`
}

type AppParameters

type AppParameters struct {
	Name       string                 `json:"name,omitempty"`
	Parameters map[string]interface{} `json:"parameters"`
}

type NamespacedApp

type NamespacedApp struct {
	App       *managementv1.App
	Namespace string
}

type NamespacedAppWithParameters

type NamespacedAppWithParameters struct {
	App        *managementv1.App
	Namespace  string
	Parameters string
}

func ResolveAppParameters

func ResolveAppParameters(apps []NamespacedApp, appFilename string, log log.Logger) ([]NamespacedAppWithParameters, error)

type ParametersFile

type ParametersFile struct {
	Parameters map[string]interface{} `json:"parameters"`
}

Jump to

Keyboard shortcuts

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