Thanks to visit codestin.com
Credit goes to pkg.go.dev

cloudify-rest-go-client

module
v0.0.0-...-f8139d8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0

README

cloudify-rest-go-client

Circle CI

cfy-go implements CLI for cloudify client. If we compare to official cfy command cfy-go has implementation for only external commands.

install

sudo apt-get install golang-go
export GOBIN=`pwd`/bin
export PATH=$PATH:`pwd`/bin
export GOPATH=`pwd`
go get github.com/cloudify-incubator/cloudify-rest-go-client/cfy-go
rm bin/cfy-go
ln -s src/github.com/cloudify-incubator/cloudify-rest-go-client/Makefile Makefile
make all

reformat code

make reformat

Additional information you can check on godoc.

create container for run python version

For use 'sudo bin/cfy-go container run -base container-place/base/ -- /usr/bin/cfy profile use local'

export ALPINE_MIRROR=http://dl-cdn.alpinelinux.org/alpine/
export ALPINE_VERSION=2.9.1-r0
export ALPINE_ROOT=alpine-root
export ALPINE_BRANCH=v3.7
mkdir ${ALPINE_ROOT}
wget ${ALPINE_MIRROR}/latest-stable/main/x86_64/apk-tools-static-${ALPINE_VERSION}.apk
tar -xzf apk-tools-static-${ALPINE_VERSION}.apk
sudo ./sbin/apk.static -X ${ALPINE_MIRROR}/latest-stable/main -U --allow-untrusted --root ${ALPINE_ROOT} --initdb add alpine-base
echo -e 'nameserver 208.67.222.222\nnameserver 2620:0:ccc::2' | sudo tee ${ALPINE_ROOT}/etc/resolv.conf
mkdir -p ${ALPINE_ROOT}/etc/apk
echo "${ALPINE_MIRROR}${ALPINE_BRANCH}/main" | sudo tee ${ALPINE_ROOT}/etc/apk/repositories

# image with python
sudo chroot ${ALPINE_ROOT}/ /sbin/apk add python2 ca-certificates py-setuptools py2-pip
sudo du -sh ${ALPINE_ROOT}

# install prerequirements for cloudify
sudo chroot ${ALPINE_ROOT}/ /sbin/apk add build-base python2-dev
sudo du -sh ${ALPINE_ROOT}

# install cloudify
sudo chroot ${ALPINE_ROOT}/ /usr/bin/pip install cloudify==4.3
sudo du -sh ${ALPINE_ROOT}

# sh to image
sudo chroot ${ALPINE_ROOT}/ /bin/sh

Directories

Path Synopsis
cfy-go implements CLI for cloudify client.
cfy-go implements CLI for cloudify client.
Package cloudify - Rest API implementation.
Package cloudify - Rest API implementation.
rest
Package rest - implementation http/https connection to cloudify manager.
Package rest - implementation http/https connection to cloudify manager.
tests
Package tests - fake classes for api testing.
Package tests - fake classes for api testing.
utils
Package utils - additional supplementary functions.
Package utils - additional supplementary functions.
Package container - functions for "cfy local" style operations.
Package container - functions for "cfy local" style operations.
Package kubernetes - Flex Volume Driver.
Package kubernetes - Flex Volume Driver.

Jump to

Keyboard shortcuts

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