cmdutil

package
v1.247352.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 22 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 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 TranslateJsonMapToTomlFile

func TranslateJsonMapToTomlFile(jsonConfigValue map[string]interface{}, tomlConfigFilePath string)

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