sops

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: 14 Imported by: 0

Documentation

Overview

Package sops provides an updater that uses the sops lib to update sops-encrypted files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SopsUpdater

type SopsUpdater struct {
	FilePath string
	Key      string
	Valuer   value.Valuer
}

SopsUpdater is an updater that uses the sops lib to update sops-encrypted files.

func NewUpdater

func NewUpdater(params map[string]string, valuer value.Valuer) (*SopsUpdater, error)

NewUpdater builds a new SOPS updater from the given parameters and valuer

func (SopsUpdater) Message

func (u SopsUpdater) Message() (title, body string)

Message returns the default title and body that should be used in the commits / pull requests

func (SopsUpdater) String

func (u SopsUpdater) String() string

String returns a string representation of the updater

func (SopsUpdater) Update

func (u SopsUpdater) Update(ctx context.Context, repoPath string) (bool, error)

Update updates the repository cloned at the given path, and returns true if changes have been made

Jump to

Keyboard shortcuts

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