func (h *HttpContentRequest) HttpPath() string { var base string switch h.Type { case cjobs.ContentTypeEnvironment: base = "/environment/:id" default: base = "/content/:id" } if h.Subpath != "" { return base + "/" + h.Subpath } return http.Inline(base, h.ContentRequest.Locator) }
func (h *HttpRestartContainerRequest) HttpPath() string { return http.Inline("/container/:id/restart", string(h.Id)) }
func (h *HttpPatchEnvironmentRequest) HttpPath() string { return http.Inline("/environment/:id", string(h.Id)) }
func (h *HttpListContainerPortsRequest) HttpPath() string { return http.Inline("/container/:id/ports", string(h.Id)) }
func (h *HttpStopContainerRequest) HttpPath() string { return http.Inline("/container/:id/stopped", string(h.Id)) }
func (h *HttpContainerStatusRequest) HttpPath() string { return http.Inline("/container/:id/status", string(h.Id)) }
func (h *HttpContainerLogRequest) HttpPath() string { return http.Inline("/container/:id/log", string(h.Id)) }
func (h *HttpDeleteContainerRequest) HttpPath() string { return http.Inline("/container/:id", string(h.Id)) }
func (h *httpGitArchiveContentRequest) HttpPath() string { return http.Inline("/repository/:id/archive/:ref", string(h.RepositoryId), string(h.Ref)) }
func (h *HttpCreateRepositoryRequest) HttpPath() string { return http.Inline("/repository/:id", string(h.Id)) }