in fast-build-update-tool/internal/tools/file_uploader.go [45:58]
func NewFileUploader(logger *slog.Logger, instance *gamelift.Instance, privateKeyPath string, filesToUpload []string, sshPort int32) (*FileUploader, error) {
result := &FileUploader{
logger: logger.With("context", "FileUploader"),
remoteIpAddress: instance.IpAddress,
privateKeyPath: privateKeyPath,
remoteUser: config.RemoteUserForOperatingSystem(instance.OperatingSystem),
remoteUploadDirectory: config.RemoteUploadDirectoryForOperatingSystem(instance.OperatingSystem),
filesToUpload: filesToUpload,
sshPort: sshPort,
commandRunner: runCommand,
}
return result, result.Validate()
}