Skip to content

Commit

Permalink
Sync from server repo (dc9f88a30ee)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Spilchen committed Feb 23, 2024
1 parent 8488877 commit 1844fc6
Show file tree
Hide file tree
Showing 118 changed files with 3,039 additions and 1,416 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ut",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/vclusterops"
},
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ lint: golangci-lint ## Lint the code

.PHONY: build
build: fmt vet ## Build vcluster binary.
go build -o bin/vcluster cmd/vcluster/main.go
go build -o bin/vcluster main.go

##@ Build Dependencies

Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,26 @@ this library to perform database actions on Vertica on Kubernetes.

```
vcluster/
├── cmd
│   └── vcluster
│   └── main.go
├── commands
├── main.go
└── vclusterops
├── test_data
├── util
├── vlog
└── vstruct
```

- `/cmd/vcluster`: The `/cmd` directory contains executable code. The
`/vcluster` directory contains minimal code that sets up and invokes the
entry point for the vcluster CLI.
- `/vcluster` directory contains minimal code that sets up and invokes the
entry point (main.go) for the vcluster CLI.
- `/commands`: Code for parsing command line options. These options are
translated into arguments for the high-level functions in `/vclusterops`.
- `/vclusterops`: Library code for high-level operations such as CreateDB,
StopDB, and StartDB. It also contains all code for executing the steps that
complete these functions. Code in this library should not depend on other
directories in this project.
External projects import this library to build custom CLI tools.
- `/vclusterops/testdata`: Contains code and files for testing purposes. By
convention, the go tool ignores the `/testdata` directory.
- `/vclusterops/test_data`: Contains code and files for testing purposes. By
convention, the go tool ignores the `/test_data` directory.
This directory contains a YAML file that defines a simple three-node [Eon Mode cluster](https://docs.vertica.com/latest/en/architecture/eon-concepts/) for testing.
- `/vclusterops/util`: Code that is used by more than one library in this
project and does not fit logically into an existing package.
Expand Down
Loading

0 comments on commit 1844fc6

Please sign in to comment.