Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizedKeysFullPath ¶
func GetAuthorizedKeysFullPath() string
GetAuthorizedKeysFullPath returns the full path to the authorized_keys file.
func InitializeAuthorizedKeysFileStructure ¶
func InitializeAuthorizedKeysFileStructure() error
InitializeAuthorizedKeysFileStructure does everything required to make SSH work on host: creates the SSH directory, initializes a blank authorized_keys file, (to simplify e.g. file watching), and puts the login script in place. Assumes that ContainershipMount is mounted as a hostPath. This is not thread-safe and is expected to only be called on initialization.
func UsernameFromContainershipUID ¶
UsernameFromContainershipUID returns the system username that the passed UID maps to TODO error handling needed? Probably.
func UsernameToContainershipUID ¶
UsernameToContainershipUID returns the Containership UID that the passed system username maps to
func WriteAuthorizedKeys ¶
WriteAuthorizedKeys writes the authorized keys for the given users to the authorized_keys file, stomping on the existing file.
Types ¶
This section is empty.