cfnpatcher

package
v0.0.0-...-69f65aa Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const KiltIgnoreContainersTag = "kilt-ignore-containers"
View Source
const KiltIgnoreTag = "kilt-ignore"
View Source
const KiltIncludeContainersTag = "kilt-include-containers"
View Source
const KiltIncludeTag = "kilt-include"

Variables

Functions

func GetValueFromTemplate

func GetValueFromTemplate(what *gabs.Container) (string, *gabs.Container)

func Patch

func Patch(ctx context.Context, configuration *Configuration, fragment []byte) ([]byte, error)

Types

type Configuration

type Configuration struct {
	Kilt               string
	ImageAuthSecret    string
	OptIn              bool
	RecipeConfig       string
	UseRepositoryHints bool
	LogGroup           string
	ParameterizeEnvars bool
}

type InstrumentationHints

type InstrumentationHints struct {
	IgnoreContainersNamed  []string
	IncludeContainersNamed []string
	HasGlobalInclude       bool
}

type PartialImageConfig

type PartialImageConfig struct {
	Entrypoint []string
	Command    []string
}

func GetConfigFromRepository

func GetConfigFromRepository(image string) (*PartialImageConfig, error)

type TemplateInfo

type TemplateInfo struct {
	TargetInfo *kilt.TargetInfo
	// Containers are not null when template values are complex
	Name                 *gabs.Container
	Image                *gabs.Container
	EntryPoint           []*gabs.Container
	Command              []*gabs.Container
	EnvironmentVariables map[string]*gabs.Container
}

Jump to

Keyboard shortcuts

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