utils

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(s string) bool

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 GetSSHDir

func GetSSHDir() string

func GetSystemdUserDir

func GetSystemdUserDir() string

func GetTPM

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

Smaller wrapper for getting the correct TPM instance

func InstallSshdConf added in v0.2.0

func InstallSshdConf() error

func InstallSystemUnits

func InstallSystemUnits() 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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