aerolab-goclient/

directory
v0.0.0-...-1e2c849 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0

README

Deploying Go Clients

This script allows for quick and easy deployment of a go client library with sample code in a docker container.

This can be used on it's own, as part of aerolab-buildenv script or combined with the aerolab command.

First clone this repo

Using https
git clone https://github.com/aerospike/aerolab.git
Using git keys
git clone git@github.com:aerospike/aerolab.git

Enter this directory

cd aerolab/scripts/aerolab-goclient

Get usage help

./runme.sh

Create a new Go client container

./runme.sh run
Attach to the client container's shell
./runme.sh attach
ls

Destroy the client container

./runme.sh destroy

Usage

./runme.sh 

Usage: ./runme.sh start|stop|destroy|run|get

  run     - create and start Client Node
  start   - start an existing, stopped, Client Node
  stop    - stop a running Client Node, without destroying it
  get     - get the IPs of Client Node
  attach  - attach to the client container
  destroy - stop and destroy the Client Node

Code samples

Once you attach to the container, you will find the samples in the following location:

  • /root/go/src/v4 for the version 4 library
  • /root/go/src/v5 for the version 5 library

In each directory you will find the following examples:

Name Description
aerospike-basic Aerospike basic connect, plus some get/put command examples
aerospike-auth Aerospike connect with basic authentication, plus some get/put command examples
aerospike-tls Aerospike connect with TLS and external LDAP authentication, plus some get/put command examples

Jump to

Keyboard shortcuts

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