Skip to content

Commit 19c7ccf

Browse files
committed
Initial fork of Probr->Privateer
Signed-off-by: Eddie Knight <[email protected]>
1 parent 22a2380 commit 19c7ccf

File tree

13 files changed

+66
-68
lines changed

13 files changed

+66
-68
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ node_modules
246246
# VS Code debugger
247247
__debug_bin
248248

249-
# probr misc ('probr' is Linux exe)
250-
probr_output
249+
# privateer misc ('privateer' is Linux exe)
250+
privateer_output
251251
!examples/*
252-
probr
252+
privateer
253253
static-content/
254254
.kube/
255255
config.yml

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# All PRs in this repository will be blocked
22
# until they have been approved by a maintainer
33

4-
* @probr/maintainers
4+
* @eddie-knight

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to Probr
1+
# Contributing to Privateer
22

33
We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
44

@@ -8,7 +8,7 @@ Participation in this project comes under the [Contributor Covenant Code of Cond
88

99
## Code Submission
1010

11-
Thank you for considering submitting code to Probr!
11+
Thank you for considering submitting code to Privateer!
1212

1313
- We follow the [GitHub Pull Request Model](https://help.github.com/articles/about-pull-requests/) for all contributions.
1414
- For large bodies of work, we recommend creating an issue using the "Feature Request" template to outline the feature that you wish to build, and describe how it will be implemented. This gives a chance for review to happen early, and ensures no wasted effort occurs.
@@ -36,8 +36,8 @@ When submitting pull requests, make sure to do the following:
3636

3737
## Continuous Integration
3838

39-
Probr uses Github Actions for all CI tasks. You may review the existing workflows in `.github/workflows`. Results of checks will automatically be pushed to PRs and may block merging if checks fail.
39+
Privateer uses Github Actions for all CI tasks. You may review the existing workflows in `.github/workflows`. Results of checks will automatically be pushed to PRs and may block merging if checks fail.
4040

4141
## Logging
4242

43-
Probr is extremely dependent on clean and clear logs for its success. Please follow the [Log Filter Guidelines](internal/config/README.md) to add useful logs to your code.
43+
Privateer is extremely dependent on clean and clear logs for its success. Please follow the [Log Filter Guidelines](internal/config/README.md) to add useful logs to your code.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Probr Service Pack Wireframe
1+
# Privateer Raid Wireframe
22

33
This wireframe is designed to quickly get your service pack repository up to speed!
44

5-
Probr's plugin architecture relies on some key elements being present at the top level of the service pack,
6-
all of which are provided along with examle code in this repo.
5+
Privateer's plugin architecture relies on some key elements being present at the top level
6+
of the service pack, all of which are provided along with examle code in this repo.
77

88
Simply fork or clone this repo and start adjusting the tests to build your own service pack!

TESTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Testing
22

3-
This doc describes required steps and tools to successfully implement testing strategy for all Probr components.
3+
This doc describes required steps and tools to successfully implement testing strategy for all Privateer components.
44
Assumptions:
55
- VS Code is used as the local IDE
66
- Go built-in testing package is used
@@ -170,7 +170,7 @@ The following structure is recommended:
170170
--- PASS: TestSum/TestCase#3 (0.00s)
171171
--- PASS: TestSum/TestCase#4 (0.00s)
172172
PASS
173-
ok github.com/probr/probr-sdk/utils 0.227s
173+
ok github.com/privateerproj/privateer-sdk/utils 0.227s
174174
```
175175
176176
- Autogenerate tests with *gotest tool*
@@ -218,7 +218,7 @@ The following structure is recommended:
218218
--- PASS: TestSum/TestCase1_AddingTwoPositiveNumbers_ShouldReturnSum (0.00s)
219219
--- PASS: TestSum/TestCase2_AddingZeroToNumber_ShouldReturnNumber (0.00s)
220220
PASS
221-
ok github.com/probr/probr-sdk/utils 0.223s
221+
ok github.com/privateerproj/privateer-sdk/utils 0.223s
222222
```
223223
224224

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module github.com/probr/probr-pack-wireframe
1+
module github.com/privateerproj/privateer-pack-wireframe
22

33
go 1.14
44

55
require (
66
github.com/cucumber/godog v0.11.0
77
github.com/hashicorp/go-hclog v0.15.0 // indirect
88
github.com/markbates/pkger v0.17.1
9-
github.com/probr/probr-sdk v0.1.6
9+
github.com/privateerproj/privateer-sdk v0.0.0
1010
)
1111

1212
// For Development Only
13-
// replace github.com/probr/probr-sdk => ../probr-sdk
13+
replace github.com/privateerproj/privateer-sdk => ../privateer-sdk

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6J
399399
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
400400
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
401401
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
402-
github.com/probr/probr-sdk v0.1.6 h1:NSv106oUtCOXCbj6tuDvEvsmiL8uHoxakWgVbC/C4Js=
403-
github.com/probr/probr-sdk v0.1.6/go.mod h1:Cp/BmkTE08Q0Kw+t3YcVn89ZjMuET2sSeEKsYEiYTFQ=
404402
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
405403
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
406404
github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs=

internal/config/config.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"encoding/json"
55
"log"
66

7-
sdkConfig "github.com/probr/probr-sdk/config"
8-
"github.com/probr/probr-sdk/config/setter"
9-
"github.com/probr/probr-sdk/utils"
7+
sdkConfig "github.com/privateerproj/privateer-sdk/config"
8+
"github.com/privateerproj/privateer-sdk/config/setter"
9+
"github.com/privateerproj/privateer-sdk/utils"
1010
)
1111

1212
// Vars is a stateful object containing the variables required to execute this pack
@@ -27,15 +27,15 @@ func (ctx *varOptions) Init() (err error) {
2727
sdkConfig.GlobalConfig.Init()
2828
sdkConfig.GlobalConfig.PrepareOutputDirectory("audit", "cucumber")
2929

30-
ctx.ServicePacks.Wireframe.setEnvAndDefaults()
30+
ctx.Raids.Wireframe.setEnvAndDefaults()
3131

3232
log.Printf("[DEBUG] Config initialized by %s", utils.CallerName(1))
3333
return
3434
}
3535

3636
// decode uses an SDK helper to create a YAML file decoder,
3737
// parse the file to an object, then extracts the values from
38-
// ServicePacks.Wireframe into this context
38+
// Raids.Wireframe into this context
3939
func (ctx *varOptions) decode() (err error) {
4040
configDecoder, file, err := sdkConfig.NewConfigDecoder(ctx.VarsFile)
4141
if err != nil {
@@ -53,7 +53,7 @@ func (ctx *varOptions) LogConfigState() {
5353
}
5454

5555
func (ctx *varOptions) Tags() string {
56-
return sdkConfig.ParseTags(ctx.ServicePacks.Wireframe.TagInclusions, ctx.ServicePacks.Wireframe.TagExclusions)
56+
return sdkConfig.ParseTags(ctx.Raids.Wireframe.TagInclusions, ctx.Raids.Wireframe.TagExclusions)
5757
}
5858

5959
// setEnvOrDefaults will set value from os.Getenv and default to the specified value

internal/config/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package config
22

33
type varOptions struct {
4-
VarsFile string // Required to initialize the sdk global config object
5-
Verbose bool // Recommended for flag handling
6-
ServicePacks servicePacks `yaml:"ServicePacks"` // Optional
4+
VarsFile string // Required to initialize the sdk global config object
5+
Verbose bool // Recommended for flag handling
6+
Raids servicePacks `yaml:"Raids"` // Optional
77
}
88

99
// servicePacks is only required if this pack accepts custom vars

internal/summary/summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package summary
22

33
import (
4-
audit "github.com/probr/probr-sdk/audit"
4+
audit "github.com/privateerproj/privateer-sdk/audit"
55
)
66

77
// State should be set in the pack's runtime via audit.NewSummaryState

0 commit comments

Comments
 (0)