files

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package files provides utilities for reading and updating version files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadVersion

func ReadVersion(path string) (string, error)

ReadVersion reads the version from a VERSION file.

func UpdateChartYAML added in v1.0.0

func UpdateChartYAML(chartPath, version string) error

UpdateChartYAML updates the version and appVersion in a Chart.yaml file.

func UpdateValuesYAML added in v1.0.0

func UpdateValuesYAML(chartPath, version string) error

UpdateValuesYAML updates the image.tag in a values.yaml file.

func UpdateYAMLFile

func UpdateYAMLFile(cfg VersionFileConfig, version string) error

UpdateYAMLFile updates a specific path in a YAML file with a new version.

func WriteVersion

func WriteVersion(path, version string) error

WriteVersion writes a version to a VERSION file.

Types

type VersionFileConfig

type VersionFileConfig struct {
	File   string `json:"file"`
	Path   string `json:"path"`
	Prefix string `json:"prefix,omitempty"`
}

VersionFileConfig defines a YAML file and the path to update with the new version.

Jump to

Keyboard shortcuts

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