update

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package update provides the updaters that change content in the git repositories

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater interface {
	// Update updates the repository cloned at the given path, and returns true if changes have been made
	Update(ctx context.Context, repoPath string) (bool, error)
	// Message returns the default title and body that should be used in the commits / pull requests
	Message() (title, body string)
	// String returns a string representation of the updater
	String() string
}

Updater updates a git repository

func Parse

func Parse(updates []string) ([]Updater, error)

Parse parses a set of updates defined as string - from the CLI for example - and returns properly formatted Updaters. expected syntax is documented in the user documentation: docs/current-version/content/updaters/

Directories

Path Synopsis
Package exec provides an updater that executes an external command to update the repository.
Package exec provides an updater that executes an external command to update the repository.
Package helm provides an updater that updates Helm charts dependencies.
Package helm provides an updater that updates Helm charts dependencies.
Package regex provides an updater that uses a regex to update files.
Package regex provides an updater that uses a regex to update files.
Package sops provides an updater that uses the sops lib to update sops-encrypted files.
Package sops provides an updater that uses the sops lib to update sops-encrypted files.
Package value provides diffferent implementations to retrieve the value to replace while updating files.
Package value provides diffferent implementations to retrieve the value to replace while updating files.
Package yaml provides an updater that uses the yq lib to update YAML files.
Package yaml provides an updater that uses the yq lib to update YAML files.
Package yq provides an updater that uses the yq lib to manipulate YAML (or JSON) files.
Package yq provides an updater that uses the yq lib to manipulate YAML (or JSON) files.

Jump to

Keyboard shortcuts

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