Skip to content

Commit

Permalink
cleaned up walnut and shrink the features for now so i can work on it…
Browse files Browse the repository at this point in the history
… from time to time
  • Loading branch information
Kruemelmann committed May 22, 2023
1 parent 0e4d5a7 commit 427781c
Show file tree
Hide file tree
Showing 86 changed files with 308 additions and 23,156 deletions.
70 changes: 0 additions & 70 deletions db/postgres/init.sql

This file was deleted.

28 changes: 0 additions & 28 deletions docker-compose.dev.yml

This file was deleted.

2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@

## Authentication

* [Overview](./authentication/README.md)
* [Token](./authentication/Token.md)
* [Internal](./authentication/Internal.md)
* [LDAP](./authentication/LDAP.md)
4 changes: 0 additions & 4 deletions docs/authentication/LDAP.md

This file was deleted.

Empty file removed docs/authentication/README.md
Empty file.
2 changes: 1 addition & 1 deletion docs/authentication/Token.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

- to use the remote cache/execution of walnut you need to pass a token to walnut. This token is send via header in the cli call of bazel.

TODO
TODO implmenet this as soon as i get to remote execution
68 changes: 0 additions & 68 deletions docs/db/schema/design.md

This file was deleted.

Binary file removed docs/db/schema/screenshot.png
Binary file not shown.
20 changes: 3 additions & 17 deletions docs/modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,12 @@ This chapter will explain how walnut store modules.
## Kind of Modules

* local
* linked
* mirrored
* cached

### local-Modules

Local modules are stored inside the volume of the walnut-store service.
If walnut runs inside docker using docker-compose this volume is mapped onto the local filesystem.
Inside kubernetes walnut can store the local modules in several different ways. [kubernetes volume](https://kubernetes.io/docs/concepts/storage/volumes/)


### linked-Modules

Linked modules are not stored inside walnut.
They are only referenced by a url inside the walnutdb.
If a build request them the store service tries to load the modules from the url.
An error is send if the module can not be loaded, the errors are explained inside the errors chapter of the walnut docs.
Linked Modules can ether be the url to a http-based index-registry or a publicly available fileserver.

### mirrored-Modules

Mirrored modules are modules that are loaded initialy when they are requested, later if they are requested walnut checks the original url for a newer version of the module and if it finds them they are getting downloaded to walnut as well.

### cached-Modules

TODO implement later. this option will look into a public modules store and try to load it + the specified version into walnut.
43 changes: 0 additions & 43 deletions pb/walnut.proto

This file was deleted.

25 changes: 25 additions & 0 deletions protos/walnut.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";

package walnut;

// this are the 3 roles that a client can have
enum Role {
ADMIN = 0; // can add and delete modules
USER = 1; // can start builds
VIEWER = 2; // can only download roles but not execute remote builds
}

// ---- Auth service ---
service AuthService {
rpc Login(LoginRequest) returns (LoginResponse) {}
}

message LoginRequest {
string username = 1;
string password = 2;
}

message LoginResponse {
bool successful = 1;
string token = 2;
}
File renamed without changes.
41 changes: 0 additions & 41 deletions src/auth/authserver.go

This file was deleted.

19 changes: 0 additions & 19 deletions src/auth/genproto.sh

This file was deleted.

Loading

0 comments on commit 427781c

Please sign in to comment.