mirror of
https://github.com/bytedream/docker4ssh.git
synced 2025-05-09 12:15:11 +02:00
17 lines
312 B
Go
17 lines
312 B
Go
package api
|
|
|
|
import (
|
|
"docker4ssh/ssh"
|
|
"net/http"
|
|
)
|
|
|
|
type infoGetResponse struct {
|
|
ContainerID string `json:"container_id"`
|
|
}
|
|
|
|
func InfoGet(w http.ResponseWriter, r *http.Request, user *ssh.User) (interface{}, int) {
|
|
return infoGetResponse{
|
|
ContainerID: user.Container.FullContainerID,
|
|
}, http.StatusOK
|
|
}
|