productshredder

command module
v0.0.0-...-b46a2cf Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

README

Productshredder

Productshredder is a expired file removal utility.

It subscribes to DataInstance expiry messages from Productstatus, and deletes files from physical media.

Usage

A working environment with Productstatus and Kafka is assumed. Productstatus will publish an expiry message, containing a list of DataInstance resources that have exceeded their time to live. Each message contains DataInstances belonging to a specific combination of Product and ServiceBackend.

Productshredder can be configured to only allow deletion of DataInstances belonging to a specific Product and ServiceBackend. This is done using the -products and -servicebackends flags.

Example

productshredder \
    -brokers localhost:9092 \
    -topic productstatus \
    -productstatus http://localhost:8000 \
    -username admin \
    -apikey 5bcf851f09bc65043d987910e1448781fcf4ea12 \
    -servicebackends /api/v1/servicebackend/495bb3be-e327-4840-accf-afefcd411e06/ \
    -products /api/v1/product/7d3fe736-5902-44d5-a34c-86f877190523/ \
    -verbose \
    -dry-run

The example above will run Productshredder against a local Kafka instance, on the productstatus topic partition zero, and connect to a local Productstatus instance. It filters input so that only DataInstances from the specified Product and ServiceBackend are handled.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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