utils

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 12 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 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-s� directories. s

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