Documentation ¶
Overview ¶
* Copyright 2016 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- type AgentMessage
- type Cert
- type RemoteAgent
- type Server
- func (s *Server) ArtifactFile(buildId, file string) string
- func (s *Server) ArtifactUrl(buildId, file string) string
- func (s *Server) Checksum(buildId string) (string, error)
- func (s *Server) ChecksumFile(buildId string) string
- func (s *Server) ChecksumUrl(buildId string) string
- func (s *Server) ConsoleLog(buildId string) (string, error)
- func (s *Server) ConsoleLogFile(buildId string) string
- func (s *Server) HandleFunc(path string, handler func(http.ResponseWriter, *http.Request))
- func (s *Server) LimittedRequestEntitySize(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
- func (s *Server) MaxRequestEntitySize() int64
- func (s *Server) Send(agentId string, msg *protocol.Message)
- func (s *Server) SendBuild(agentId, buildId string, commands ...*protocol.BuildCommand)
- func (s *Server) SetMaxRequestEntitySize(size int64)
- func (s *Server) Start() error
- type StateListener
Constants ¶
View Source
const ( WebSocketPath = "/agent-websocket" RegistrationPath = "/agent-register" StatusPath = "/status" ConsoleLogPath = "/console" ArtifactsPath = "/artifacts" PropertiesPath = "/properties" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMessage ¶
type Cert ¶
type RemoteAgent ¶
type RemoteAgent struct {
// contains filtered or unexported fields
}
func (*RemoteAgent) Close ¶
func (agent *RemoteAgent) Close() error
func (*RemoteAgent) Listen ¶
func (agent *RemoteAgent) Listen(server *Server) error
func (*RemoteAgent) SetCookie ¶
func (agent *RemoteAgent) SetCookie() error
func (*RemoteAgent) String ¶
func (agent *RemoteAgent) String() string
type Server ¶
type Server struct { Address string CertPemFile string KeyPemFile string WorkingDir string Logger *log.Logger StateListeners []StateListener // contains filtered or unexported fields }
func (*Server) ArtifactFile ¶
func (*Server) ArtifactUrl ¶
func (*Server) ChecksumFile ¶
func (*Server) ChecksumUrl ¶
func (*Server) ConsoleLogFile ¶
func (*Server) HandleFunc ¶
func (*Server) LimittedRequestEntitySize ¶
func (s *Server) LimittedRequestEntitySize(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
func (*Server) MaxRequestEntitySize ¶
func (*Server) SendBuild ¶
func (s *Server) SendBuild(agentId, buildId string, commands ...*protocol.BuildCommand)
func (*Server) SetMaxRequestEntitySize ¶
type StateListener ¶
type StateListener interface {
Notify(class, id, state string)
}
Click to show internal directories.
Click to hide internal directories.