utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists added in v0.2.0

func FileExists(s string) bool

func FlushHandle

func FlushHandle(tpm transport.TPM, h handle)

Helper to flush handles

func InstallHostkeyUnits added in v0.2.0

func InstallHostkeyUnits() error

func InstallSshdConf added in v0.2.0

func InstallSshdConf() error

func InstallUserUnits added in v0.2.0

func InstallUserUnits(global bool) error

Installs user units to the target system. It will either place the files under $HOME/.config/systemd/user or if global is supplied (through --install-system) into system user directories.

Passing the env TEMPLATE_BINARY will use /usr/bin/ssh-tpm-agent for the binary in the service

func SSHDir added in v0.2.0

func SSHDir() string

func TPM added in v0.2.0

func TPM(f bool) (transport.TPMCloser, error)

Smaller wrapper for getting the correct TPM instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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