Documentation ¶
Overview ¶
Copyright 2020 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 ¶
- func GenPodmanScratchContainer(c cluster.TestCluster, m platform.Machine, name string, binnames []string)
- func GetRpmOstreeStatusJSON(c cluster.TestCluster, m platform.Machine) (simplifiedRpmOstreeStatus, error)
- func LUKSSanityTest(c cluster.TestCluster, tangd TangServer, m platform.Machine, ...)
- type RpmOstreeDeployment
- type TangServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenPodmanScratchContainer ¶
func GenPodmanScratchContainer(c cluster.TestCluster, m platform.Machine, name string, binnames []string)
GenPodmanScratchContainer creates a podman scratch container out of binaries from the host
func GetRpmOstreeStatusJSON ¶
func GetRpmOstreeStatusJSON(c cluster.TestCluster, m platform.Machine) (simplifiedRpmOstreeStatus, error)
GetRpmOstreeStatusJSON returns an unmarshal'ed JSON object that contains a limited representation of the output of `rpm-ostree status --json`
func LUKSSanityTest ¶
func LUKSSanityTest(c cluster.TestCluster, tangd TangServer, m platform.Machine, tpm2, killTangAfterFirstBoot bool, rootPart string)
LUKSSanityTest verifies that the rootfs is encrypted with LUKS
Types ¶
type RpmOstreeDeployment ¶
type RpmOstreeDeployment struct { Booted bool `json:"booted"` Checksum string `json:"checksum"` Origin string `json:"origin"` Osname string `json:"osname"` Packages []string `json:"packages"` RequestedPackages []string `json:"requested-packages"` RequestedLocalPackages []string `json:"requested-local-packages"` Timestamp int64 `json:"timestamp"` Unlocked string `json:"unlocked"` Version string `json:"version"` // instead of making it a generic map of strings to "value", we just // special-case the keys we're interested in for now BaseCommitMeta rpmOstreeBaseCommitMeta `json:"base-commit-meta"` }
RpmOstreeDeployment represents some of the data of an rpm-ostree deployment
func GetBootedDeployment ¶
func GetBootedDeployment(c cluster.TestCluster, m platform.Machine) (*RpmOstreeDeployment, error)