Documentation ¶
Overview ¶
Copyright Axis Communications AB.
For a full list of individual contributors, please see the commit history.
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.
Copyright Axis Communications AB.
For a full list of individual contributors, please see the commit history.
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 ¶
const ( REGEX = "" /* 212-byte string literal not displayed */ TIMEOUT = 15 * time.Second )
REGEX for matching /testrun/tercc-id/suite/main-suite-id/subsuite/subsuite-id/suite.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg config.Config, log *logrus.Entry) application.Application
New returns a new LogAreaApplication object/struct.
Types ¶
type Auth ¶
type Decrypt ¶
type Decrypt struct { Decrypt struct { Value string `json:"value"` } `json:"$decrypt"` }
type Directory ¶
type Directory struct { Logs []Downloadable `json:"logs"` Artifacts []Downloadable `json:"artifacts"` }
type Downloadable ¶
type Downloadable struct { URL string `json:"url"` Name []FilterType `json:"name"` }
type Filter ¶
type Filter struct { URLs []FilterType `json:"urls"` Filename []FilterType `json:"filename"` }
type FilterType ¶
type LogAreaApplication ¶
type LogAreaApplication struct {
// contains filtered or unexported fields
}
func (*LogAreaApplication) Close ¶
func (a *LogAreaApplication) Close()
Close cancels the application context and closes the ETCD client.
func (LogAreaApplication) LoadRoutes ¶
func (a LogAreaApplication) LoadRoutes(router *httprouter.Router)
LoadRoutes loads all the v1alpha routes.
type LogAreaHandler ¶
type LogAreaHandler struct {
// contains filtered or unexported fields
}
func (LogAreaHandler) GetFileURLs ¶
func (h LogAreaHandler) GetFileURLs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GetFileURLs is an endpoint for getting file URLs from a log area.
func (LogAreaHandler) Selftest ¶
func (h LogAreaHandler) Selftest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Selftest is a handler to just return 204.