Documentation
¶
Overview ¶
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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.
Copyright 2024 Red Hat 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 ¶
const GITHUB_REPO = 1
const GITLAB_REPO = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
// contains filtered or unexported fields
}
CheckResult
type GitCheck ¶
type GitCheck struct {
// contains filtered or unexported fields
}
defines the GitCheck type.
func NewGitCheck ¶
func NewGitCheck(prefix string, name string, token string, url string, revision string, path string, log *log.Logger, metric metrics.CompositeMetric) *GitCheck
NewGitCheck returns a new instance of GitCheck.
func (*GitCheck) Check ¶
Check runs a check and returns a float64 of the check result. The float64 is required to push values to prometheus.
func (*GitCheck) GetMetric ¶
func (c *GitCheck) GetMetric() metrics.CompositeMetric
type GitHttpCheck ¶
type GitHttpCheck struct {
// contains filtered or unexported fields
}
defines the GitHttpCheck type.
func NewGitHttpCheck ¶
func NewGitHttpCheck(name string, repositoryType int, projectId string, token string, url string, revision string, path string, log *log.Logger, metric metrics.CompositeMetric) *GitHttpCheck
NewGitHttpCheck returns a new instance of GitHttpCheck.
func (*GitHttpCheck) Check ¶
func (c *GitHttpCheck) Check() float64
Check runs a check and returns a float64 of the check result. The float64 is required to push values to prometheus.
type HttpCheck ¶
type HttpCheck struct {
// contains filtered or unexported fields
}
defines the HttpCheck type.
func NewHttpCheck ¶
func NewHttpCheck(name, username, password, url, cert, key string, insecure, follow bool, log *log.Logger, metric metrics.CompositeMetric) *HttpCheck
NewHttpCheck returns a new instance of HttpCheck.
type QuayAuth ¶
type QuayAuth struct {
// contains filtered or unexported fields
}
func NewQuayAuth ¶
NewQuayAuth returns a new instance of QuayAuth
type QuayCheck ¶
type QuayCheck struct {
// contains filtered or unexported fields
}
A QuayCheck sets the necessary parameters to run a check to quay.io.