Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // kubespace服务地址 ServerUrl string Client *httpclient.HttpClient // spacelet所在服务器的主机ip HostIp string // spacelet服务启动端口 Port int // 执行流水线任务的数据目录 DataDir string // 注册之后获取的token,用来进行认证 Token string }
type ExecRequest ¶
type ExecResponse ¶
type RegisterRequest ¶
type RegisterToken ¶
type RegisterToken struct {
Token string `json:"token"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AuthMiddleware ¶
func (s *Server) AuthMiddleware() gin.HandlerFunc
AuthMiddleware 调用spacelet接口需要通过token认证
Click to show internal directories.
Click to hide internal directories.