agent

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

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

MySQL Agent

The MySQL agent is used by the Operator to perform various operations. What follows show how to test those operations from outside.

Database Backup

The commands below perform a backup and send it to a S3 bucket:

export AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export AWS_REGION=us-east-1

curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST localhost:8080/backup \
  -d'{"s3access":{"bucket":"docs.blaqkube.io","path":"/location","credentials":
  {"aws_access_key_id": "'$AWS_ACCESS_KEY_ID'", "region": "'$AWS_REGION'",
  "aws_secret_access_key":"'$AWS_SECRET_ACCESS_KEY'"}}}' | tee output.json

BACKUP=$(jq -r ".timestamp" output.json)

curl -H 'Accept: application/json' localhost:8080/backup/$BACKUP |jq

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
blackhole
You can use the "packr clean" command to clean up this, and any other packr generated files.
You can use the "packr clean" command to clean up this, and any other packr generated files.
blackhole/packrd
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
gcp
s3

Jump to

Keyboard shortcuts

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