maint-bucket-reduce

command
v0.0.0-...-89f4574 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

maint-bucket-reduce

This script takes a set of mutation logs from disparate Google Cloud Storage buckets and moves them to a common bucket, but prefixed with the Owner and Repository they are tracking

Usage

./maint-bucket-reduce --settings-bucket=devrel-maintner-settings \
                      --file=tracked_repos.json \
                      --from-prefix=mtr-d \
                      --to-bucket=maintner-bucket

Example

Consider the following buckets

Bucket Name Repository Tracked
mtr-foo org1/repo1
mtr-bar org1/repo2
mtr-baz org1/repo3
mtr-biz org2/repo1

And a new bucket mtr-combined

When this script is run it will copy the mutation logs in each of those buckets to a new bucket (specified by the user). The new Bucket, mtr-combined will have the following structure:

mtr-combined
+-- org1
    +-- repo1
        + --mutation log files
    +-- repo2
        +-- mutation log files
    +-- repo3
        +-- mutation log files
+-- org2
    +-- repo1
        +-- mutation log files

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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