replacer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommitMap = make(map[string]string)
View Source
var MemoryStatsWrapper = func(memStats *runtime.MemStats) {
	runtime.ReadMemStats(memStats)
}

Functions

func ForcePush

func ForcePush(ref string) error

func GetCachedGitOutput

func GetCachedGitOutput(args ...string) ([]byte, error)

func GetCommits

func GetCommits(ref string) ([]string, error)

func GetRefs

func GetRefs() ([]string, error)

func GetTree

func GetTree(commit string) (string, error)

func IsBinary

func IsBinary(content []byte) bool

func ProcessBlob

func ProcessBlob(sha, path string, secrets []string) (string, error)

func ProcessCommit

func ProcessCommit(commit string, secrets []string) (string, error)

func ProcessLargeBlob

func ProcessLargeBlob(sha, path string, secrets []string) (string, error)

func ProcessTree

func ProcessTree(tree string, secrets []string) (string, error)

func ReadSecrets

func ReadSecrets(filePath string) ([]string, error)

func UpdateRef

func UpdateRef(ref, newCommitHash string) error

func WriteBlob

func WriteBlob(content []byte) (string, error)

func WriteTree

func WriteTree(entries []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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