Help us shape the future of Go! Take the 2026 Go Developer Survey

dpcli

module
v0.0.0-...-71b5e92 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT

README

dpli

DeferPanic.Net Unikernel IaaS Client

Website: https://deferpanic.com

wercker status

Quick Start:

This will create an account for you and auto-log you in through the API:

./dpcli users create joe@bob.com joebob password

Authentication:

You'll need an account so go sign up at https://deferpanic.com/signup if you haven't created it through the API. Then you can find your API token @ https://deferpanic.com/home/settings.

You can either pass your token in with the -token flag or you maybe stick it in ~/.dprc.

Example if using the token flag:

./dpcli --token="TOKEN"

Dependencies:

go get gopkg.in/alecthomas/kingpin.v2
go get  github.com/olekukonko/tablewriter

Build

cd dpcli && go build && go install

Projects

Create from Repository
dpcli projects new myproject php rumprun https://github.com/deferpanic/php_example
Create from Image Binary
Fork an Existing Project
Clone an Addon
Remove
dpcli projects delete myproject
List
dpcli projects list
View Log
dpcli projects log myproject
Download image
./dpcli projects download myproject .
Download manifest
./dpcli projects manifest myproject

Instances

Create
./dpcli instances new myproject
Log of Individual Instance
./dpcli instances log gregory-jennifer.deferpanic.com
List all Instances
./dpcli instances list
List of Instances attached to Image/Project
./dpcli instances list myproject
Pause
./dpcli instances pause gregory-jennifer.deferpanic.com
Resume
./dpcli instances resume gregory-jennifer.deferpanic.com
ScaleUp
./dpcli instances scaleup myproject
ScaleDown
./dpcli instances scaledown myproject gregory-jennifer.deferpanic.com

Volumes

List By Domain
./dpcli volumes list --domain=stephen-anna.deferpanic.com
List by Image Name
./dpcli volumes list --name=text
Download Volume

Note: To download a volume you currently need to pause the instance. (Live volume streaming coming soon.)

Pause the instance

./dpcli instances pause my_cname.deferpanic.com
./dpcli volumes download id

IPs

Request
./dpcli ips request
Release
./dpcli ips release 1.2.3.4
Attach
./dpcli ips attach 1.2.3.4 stephen-anna.deferpanic.com
Detach
./dpcli ips detach 1.2.3.4
List
./dpcli ips list

Backups

Save

Pause the instance (Live Backups coming soon.)

./dpcli instances pause gregory-jennifer.deferpanic.com

Back it up

./dpcli backups save myproject gregory-jennifer.deferpanic.com
Restore

Pause the instance

./dpcli instances pause gregory-jennifer.deferpanic.com

Back it up

./dpcli backups restore myproject gregory-jennifer.deferpanic.com
List
./dpcli backups list

Languages

List
./dpcli languages

Compilers

List
./dpcli compilers

Builds

List
./dpcli builds list projectId
Latest
./dpcli builds latest projectId
Show
./dpcli builds show buildId

Resources

Create
List

To see all your provisioned resources:

./dpcli resources list

To see the resources attached to a given project:

./dpcli resources list myproject
Available

To see the available resources:

./dpcli --token="TOKEN" resources available

Addons

To see the available addons:

dpcli --token="TOKEN" addons

Status

dpcli status

Version

dpcli version

Examples

Static Website

Php

Php with Redis

Php with Mysql

Ruby and Sinatra

Python

Node Js

Go

Go with DeferPanic client

Developing

Go 1.6 is Required.

Directories

Path Synopsis
Package main implements access to the deferpanic unikernel IaaS API for users.
Package main implements access to the deferpanic unikernel IaaS API for users.

Jump to

Keyboard shortcuts

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