cmdutil

package
v1.3000030.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeUser

func ChangeUser(mergedJsonConfigMap map[string]interface{}) (string, error)

func ConfigToTomlFile added in v1.300025.0

func ConfigToTomlFile(config interface{}, tomlConfigFilePath string) error

func ConfigToYamlFile added in v1.300025.0

func ConfigToYamlFile(config interface{}, yamlConfigFilePath string) error

func DetectRunAsUser

func DetectRunAsUser(mergedJsonConfigMap map[string]interface{}) (runAsUser string, err error)

DetectRunAsUser get the user name from toml config. It runs on all platforms except windows.

func GenerateMergedJsonConfigMap

func GenerateMergedJsonConfigMap(ctx *context.Context) (map[string]interface{}, error)

func GetTomlConfigPath

func GetTomlConfigPath(tomlFilePath string) string

func RunSchemaValidation

func RunSchemaValidation(inputJsonMap map[string]interface{}) (*gojsonschema.Result, error)

func TranslateJsonMapToEnvConfigFile

func TranslateJsonMapToEnvConfigFile(jsonConfigValue map[string]interface{}, envConfigPath string)

TranslateJsonMapToEnvConfigFile populates env-config.json based on the input json config.

func TranslateJsonMapToTomlConfig added in v1.300025.0

func TranslateJsonMapToTomlConfig(jsonConfigValue interface{}) (interface{}, error)

func TranslateJsonMapToYamlConfig added in v1.300025.0

func TranslateJsonMapToYamlConfig(jsonConfigValue interface{}) (interface{}, error)

func VerifyCredentials

func VerifyCredentials(ctx *context.Context, runAsUser string)

Types

type ChownFunc added in v1.247349.0

type ChownFunc func(name string, uid, gid int) error

type ExecUser added in v1.247350.0

type ExecUser struct {
	Uid  int
	Gid  int
	Home string
	Gids []int
}

Jump to

Keyboard shortcuts

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