tutumcloud / go-tutum Goto Github PK
View Code? Open in Web Editor NEWGo Library for Tutum
Home Page: www.tutum.co
License: Apache License 2.0
Go Library for Tutum
Home Page: www.tutum.co
License: Apache License 2.0
Below is some code I'm using to try and send a request. It is not picking up the user and token, get the error message about not having env variables in a file.
// Hard code user and token
tutum.User = "user"
tutum.ApiKey = "token"
stack, err := tutum.CreateStack(stackRequest)
if err != nil {
log.Println(err)
}
log.Println(stack)
016/04/04 10:08:34 Couldn't find any Tutum credentials in ~/.tutum or environment variables TUTUM_USER and TUTUM_APIKEY
When I use the Exec function to execute a command inside a container, it cannot end correctly and print endless something like "2015/11/05 09:07:03 websocket: close 1000 ".
And the example in the doc says "c := make(chan string)", but it cannot work. After I read the code, I think it should be "c := make(chan tutum.Exec)". I try it and it works. I think it should be discussed.
At the API level we need to identify containers by strings but at the SDK level we should think of them as Container objects.
type ServiceLinkInfo struct {
From_service string json:"from_service"
Name string json:"name"
To_service string json:"to_service"
}
type ContainerPortInfo struct {
Container string json:"container"
Inner_port int json:"inner_port"
Outer_port int json:"outer_port,omitempty"
// Modified to allow empty
Protocol string json:"protocol"
}
I have noticed a few times when I start up a new stack with a lot of services I will be missing a container when I call ListContainers
.
I tried the tutum CLI command tutum container ps
and it successfully listed the missing containers. I also noticed that the linked from containers have the appropriate environment variables.
Need to be able to have ints be values. many env variables are numbers.
Container.Linked_to_container is missing in the library.
We need to make these changes:
Container
Service
Stack
According to the documentation found here the container struct should have private_ip and container_envvars but it does not.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.