Documentation
¶
Overview ¶
Copyright 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2022 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 2023 F. Hoffmann-La Roche AG
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 ( InstallResultInfoStatusSucceeded = iota InstallResultInfoStatusSkipped InstallResultInfoStatusFailed InstallResultInfoStatusBuildFailed )
const GitHub = "GitHub"
const GitLab = "GitLab"
const HTMLReportTemplate = `` /* 12079-byte string literal not displayed */
const HTMLStatusOK = "<span class=\"badge bg-success\">OK</span>"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DownloadInfo ¶
type DownloadInfo struct {
// if statusCode > 0 it is identical to HTTP status code from download, or 200 in case of successful
// git repository clone
// message field contains URL of the package
// statusCode == -1 means that package version could not be found in any BioConductor repository
// message field contains error message
// statusCode == -2 means that there was an error during cloning of GitHub repository
// message field contains error message
// statusCode == -3 means that there was an error during cloning of GitLab repository
// message field contains error message
// statusCode == -4 means that a network error occurred during HTTP download
// message field contains URL of the package
StatusCode int `json:"statusCode"`
Message string `json:"message"`
ContentLength int64 `json:"contentLength"`
// file where the package is stored, or directory where git repository has been cloned
// empty in case of errors
OutputLocation string `json:"outputLocation"`
// number of bytes saved thanks to caching (size of cached package file)
SavedBandwidth int64 `json:"savedBandwidth"`
// possible values: tar.gz, git, bioconductor or empty value in case of error
DownloadedPackageType string `json:"downloadedPackageType"`
PackageName string `json:"packageName"`
PackageVersion string `json:"packageVersion"`
// Contains git SHA of cloned package, or exceptionally git tag or branch, if SHA was not provided in renv.lock.
GitPackageShaOrRef string `json:"gitPackageShaOrRef"`
}
type InstallInfo ¶
type InstallResultInfo ¶
type ItemCheckInfo ¶
type PackageCheckInfo ¶
type PackageCheckInfo struct {
PackagePath string // path to directory where the package has been installed
PackageName string
LogFilePath string // path to the file containing log of R CMD check for the package
MostSevereCheckItem string // OK, NOTE, WARNING or ERROR
Info []ItemCheckInfo
CheckTime int
}
type PackageInfo ¶
type PackagesData ¶
type PackagesData struct {
PackageName string `json:"packageName"`
PackageVersion string `json:"packageVersion"`
GitPackageShaOrRef string `json:"gitPackageShaOrRef"`
DownloadStatusText string `json:"downloadStatusText"`
InstallStatusText string `json:"installStatusText"`
CheckStatusText string `json:"checkStatusText"`
BuildStatusText string `json:"buildStatusText"`
CheckTime string `json:"checkTime"`
}
type ReportInfo ¶
type ReportInfo struct {
PackagesInformation []PackagesData `json:"packagesInformation"`
SystemInformation *SystemInfo `json:"systemInformation"`
RenvInformation RenvInfo `json:"renvInformation"`
RenvInformationOld RenvInfo `json:"renvInformationOld"`
TotalCheckTime string `json:"totalCheckTime"`
}
type Rpackage ¶
type Rpackage struct {
Package string
Version string
Source string
Repository string
Hash string
RemoteType string `json:",omitempty"`
Requirements []string `json:",omitempty"`
// Below 'Remote' properties only exist in renv.lock
// if package comes from git repository.
RemoteHost string `json:",omitempty"`
RemoteRepo string `json:",omitempty"`
RemoteUsername string `json:",omitempty"`
RemoteRef string `json:",omitempty"`
RemoteSha string `json:",omitempty"`
}
type Rrepository ¶
type Rversion ¶
type Rversion struct {
Version string
Repositories []Rrepository
}
type SystemInfo ¶
type SystemInfo struct {
OperatingSystem string `json:"operatingSystem"`
Architecture string `json:"architecture"`
KernelVersion string `json:"kernelVersion"`
PrettyName string `json:"prettyName"`
SystemPackages string `json:"systemPackages"`
RVersion string `json:"rVersion"`
Time string `json:"time"`
EnvVariables string `json:"envVariables"`
Hostname string `json:"hostname"`
}