1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

add newline at end of file

This commit is contained in:
Falk Werner 2023-01-25 21:22:51 +01:00
parent 5db3b28b5a
commit 7d4f3a1d86
43 changed files with 43 additions and 45 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
/build/
/.vscode/
*.pem
*.pem

View File

@ -126,4 +126,4 @@ if(NOT(WITHOUT_TEST))
add_custom_target(memcheck COMMAND valgrind --leak-check=full --error-exitcode=1 ./unit_tests)
endif()
endif()
endif()

View File

@ -23,4 +23,4 @@ service --> user : [., ..]
end
...
@enduml
@enduml

View File

@ -71,4 +71,4 @@ filesystem via fuse and exposes it's API via websockets.
`webfuse -f --wf-cert /path/to/cert --wf-key /path/to/key /path/to/mountpoint`
- run webfuse using authentication via `X-Auth-Token` header:
`webfuse -f --wf-authenticator /path/to/authenticator \`
` --wf-auth-header X-Auth-Token /path/to/mountpoint`
` --wf-auth-header X-Auth-Token /path/to/mountpoint`

View File

@ -1 +1 @@
websockets==10.4
websockets==10.4

View File

@ -4,4 +4,4 @@ int main(int argc, char* argv[])
{
webfuse::app app;
return app.run(argc, argv);
}
}

View File

@ -485,4 +485,4 @@ int main(int argc, char* argv[])
}
return ctx.exit_code;
}
}

View File

@ -426,4 +426,4 @@ std::string filesystem::get_credentials()
}
}
}

View File

@ -38,4 +38,4 @@ int access_mode::to_int() const
}
}
}

View File

@ -137,5 +137,4 @@ std::string empty_filesystem::get_credentials()
}
}
}

View File

@ -47,4 +47,4 @@ mode_t filemode::to_mode() const
}
}
}

View File

@ -40,4 +40,4 @@ void filesystem_statistics::copy_to(struct statvfs & other) const
other.f_namemax = f_namemax;
}
}
}

View File

@ -76,4 +76,4 @@ int openflags::to_int() const
}
}
}

View File

@ -119,4 +119,4 @@ bool status::is_good() const
}
}
}

View File

@ -61,4 +61,4 @@ private:
}
#endif
#endif

View File

@ -301,4 +301,4 @@ void fuse::print_usage()
}
}
}

View File

@ -434,4 +434,4 @@ void provider::set_connection_listener(std::function<void(bool)> listener)
d->set_connection_listener(listener);
}
}
}

View File

@ -35,4 +35,4 @@ request_type get_request_type(uint8_t value)
}
}
}
}

View File

@ -38,4 +38,4 @@ request_type get_request_type(uint8_t value);
}
#endif
#endif

View File

@ -36,4 +36,4 @@ response_type get_response_type(request_type value)
}
}
}

View File

@ -39,4 +39,4 @@ response_type get_response_type(request_type value);
}
#endif
#endif

View File

@ -51,5 +51,4 @@ bool authenticator::authenticate(std::string const & token)
}
}
}

View File

@ -53,4 +53,4 @@ char ** commandline_args::get_argv()
}
}
}

View File

@ -27,4 +27,4 @@ char const * commandline_reader::current() const
}
}
}

View File

@ -8,4 +8,4 @@ char const * get_version()
return "@webfuse_VERSION@";
}
}
}

View File

@ -44,4 +44,4 @@ WEBFUSE options:
return config.exit_code;
}
}
}

View File

@ -12,4 +12,4 @@ public:
}
#endif
#endif

View File

@ -237,4 +237,4 @@ void ws_client::set_connection_listener(std::function<void(bool)> listener)
d->set_connection_listener(listener);
}
}
}

View File

@ -111,4 +111,4 @@ ws_config::ws_config(int argc, char * argv[])
}
}
}

View File

@ -192,4 +192,4 @@ int messagereader::read_openflags()
}
}
}

View File

@ -220,4 +220,4 @@ unsigned char * messagewriter::get_data(size_t &size)
}
}
}

View File

@ -176,4 +176,4 @@ messagereader ws_server::perform(messagewriter writer)
}
}
}

View File

@ -305,4 +305,4 @@ void server_handler::finish_authentication(lws * wsi, messagereader reader)
}
}
}

View File

@ -67,4 +67,4 @@ ws_url::ws_url(std::string const & url)
}
}
}

View File

@ -41,4 +41,4 @@ TEST(unlink, success)
auto const path = fixture.get_path() + "/some_file";
ASSERT_EQ(0, ::unlink(path.c_str()));
}
}

View File

@ -34,4 +34,4 @@ daemon::~daemon()
p.kill(SIGINT);
}
}
}

View File

@ -60,4 +60,4 @@ std::string const & fixture::get_path() const
}
}
}

View File

@ -90,4 +90,4 @@ int process::wait()
return exit_code;
}
}
}

View File

@ -20,4 +20,4 @@ std::string const & tempdir::name() const
return path;
}
}
}

View File

@ -22,4 +22,4 @@ INSTANTIATE_TEST_CASE_P(filemode_value, filemode_test,
S_IFREG | 0644,
S_IFDIR | 0755
)
);
);

View File

@ -21,4 +21,4 @@ INSTANTIATE_TEST_CASE_P(openflags_values, openflags_test,
O_NDELAY, O_SYNC,
O_WRONLY | O_CREAT | O_TRUNC
)
);
);

View File

@ -34,4 +34,4 @@ TEST(request_type, unknown_values)
ASSERT_EQ(expected, webfuse::get_request_type(0x80));
ASSERT_EQ(expected, webfuse::get_request_type(0x42));
ASSERT_EQ(expected, webfuse::get_request_type(0xff));
}
}

View File

@ -35,4 +35,4 @@ TEST(respones_type, unknown_values)
ASSERT_EQ(expected, webfuse::get_response_type(static_cast<request_type>(80)));
ASSERT_EQ(expected, webfuse::get_response_type(static_cast<request_type>(0x42)));
ASSERT_EQ(expected, webfuse::get_response_type(static_cast<request_type>(0xff)));
}
}