Coder Social home page Coder Social logo

asurateam / zcloud Goto Github PK

View Code? Open in Web Editor NEW
226.0 23.0 127.0 41.72 MB

k8s管理平台

Go 87.64% Smarty 0.01% CSS 1.28% JavaScript 5.77% HTML 3.59% PHP 0.03% Ruby 0.01% Makefile 0.02% Python 0.62% Shell 0.18% C++ 0.01% Assembly 0.26% C 0.23% Objective-C 0.17% Java 0.09% Groovy 0.01% Perl 0.07% Batchfile 0.01% Limbo 0.01% Emacs Lisp 0.03%

zcloud's Issues

上传文件报错

Handler crashed with error unable to upgrade connection: you must specify at least 1 of stdin, stdout, stderr

`req := cli.Core().RESTClient().Post().
Resource("pods").
Name(pod).
Namespace("test").
SubResource("exec")
scheme := runtime.NewScheme()

println(namespaceModel.Name)
parameterCodec := runtime.NewParameterCodec(scheme)
req.VersionedParams(&v1.PodExecOptions{
	Command:   strings.Fields("cp /dev/stdin /tmp/file"),
	//Command:   strings.Fields("ls"),
	Container: "1564368585-0134",
	Stdin:     true,
	//Stdout:    true,
	//Stderr:    true,
	//TTY:       false,
}, parameterCodec)

exec, err := remotecommand.NewSPDYExecutor(manager.Config, "POST", req.URL())
//if err != nil{panic(err)}
//logs.Error(stdin)
//var stdout, stderr bytes.Buffer
err = exec.Stream(remotecommand.StreamOptions{
	Stdin:  in,
	//Stdout: w,
	//Stderr: w,
	//Tty:    false,
})
if err != nil{panic(err)}`

bee run 启动报错

我看你项目用beego写的,我进入src/cloud中执行bee run,发现报错previous declaration at ./main.go:26:6 ,一看make.go中也定义了个main函数,你是怎么启动的?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.