Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code reorg part 2, the database #1458

Merged
merged 2 commits into from
May 26, 2023
Merged

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented May 11, 2023

This is a massive commit that restructures the code into modules:

db/
All functions related to modifying the Database

types/
All type definitions and methods that can be exclusivly used on
these types without dependencies

policy/
All Policy related code, now without dependencies on the Database.

policy/matcher/
Dedicated code to match machines in a list of FilterRules

Signed-off-by: Kristoffer Dalby [email protected]

@kradalby kradalby marked this pull request as ready for review May 23, 2023 10:05
@kradalby kradalby requested a review from juanfont as a code owner May 23, 2023 10:05
kradalby added 2 commits May 25, 2023 16:30
This is step one in detaching the Database layer from Headscale (h). The
ultimate goal is to have all function that does database operations in
its own package, and keep the business logic and writing separate.

Signed-off-by: Kristoffer Dalby <[email protected]>
This is a massive commit that restructures the code into modules:

db/
    All functions related to modifying the Database

types/
    All type definitions and methods that can be exclusivly used on
    these types without dependencies

policy/
    All Policy related code, now without dependencies on the Database.

policy/matcher/
    Dedicated code to match machines in a list of FilterRules

Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby merged commit feb1536 into juanfont:main May 26, 2023
@kradalby kradalby deleted the codereorg-p2 branch May 26, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants