inject

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

inject renders Go source files with injected pinning values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(out io.Writer, vals PinningValues) error

Render renders the source code to inject the pinned values.

Types

type PinningValues

type PinningValues struct {
	// Package is the name of the package to generate.
	Package string
	// Ident is the base identifier of the generated constants.
	Ident string
	// Registry string
	Registry string
	// Prefix is the prefix of the container image name.
	Prefix string
	// Name is the name of the container image.
	Name string
	// Tag is the (optional) tag of the container image.
	Tag string
	// Digest is the digest of the container image.
	Digest string
}

PinningValues contains the values to inject into the generated source code.

Jump to

Keyboard shortcuts

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