util

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

type TangServer

type TangServer struct {
	Machine    platform.Machine
	Address    string
	Thumbprint string
}

TangServer contains fields required to set up a tang server Note: Placing it here to avoid circular dependency issue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL