Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
267 changes: 20 additions & 247 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# specific to the project
config.yml
example

# Created by .ignore support plugin (hsz.mobi)
### Go template
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/

# App generated
generated_plugins/

# Log files
*.log

# Config files
config.yml

# Test binary, built with `go test -c`
*.test
Expand All @@ -19,250 +24,18 @@ bin/
*.out

# Dependency directories (remove the comment below to include it)
vendor/

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/*
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

#ignore local test scripts & sample outputs
*.bat
setenv.sh
runlocal.sh
*.html.json
cuke.json
cucumber_tests.json

#Terraform
.terraform
terraform.tfstate
terraform.tfstate.backup

# Packaging
pkg

.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# vendor/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# Go workspace file
go.work
go.work.sum

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
# env file
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# macOS crud
# other
.DS_Store

# neo4j configurations
neo4j/server-vm/.password
neo4j/server-vm/neo4j
neo4j/server-vm/neo4j.pub

node_modules

# VS Code debugger
__debug_bin

# privateer misc ('privateer' is Linux exe)
privateer_output
!examples/*
privateer
static-content/
.kube/
config.yml
wireframe
wireframe-darwin
!internal/wireframe

# Dir may be created during dev/debugging
main/
.vscode

# project overrides
!sample_output/**.log
!test_output/**/*.log
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go-package: go-tidy go-test
go-test:
@echo " > Validating code ..."
@go vet ./...
@go clean -testcache
@go test ./...

go-tidy:
Expand Down Expand Up @@ -53,4 +54,4 @@ release-mac:
$(BUILD_MAC) -ldflags="$(BUILD_FLAGS) -X 'main.VersionPostfix=darwin'"

go-bin:
@mv $(PACKNAME)* ~/privateer/bin
@mv $(PACKNAME)* ~/privateer/bin
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Privateer Raid example
# Privateer Plugin example

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

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

Simply fork or clone this repo and start adjusting the tests to build your own service pack!
8 changes: 3 additions & 5 deletions armory/armory.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package armory

import (
"github.com/privateerproj/privateer-sdk/raidengine"
"github.com/privateerproj/privateer-sdk/pluginkit"
)

var (
Armory = raidengine.Armory{
Tactics: map[string][]raidengine.Strike{
Armory = pluginkit.Armory{
TestSuites: map[string][]pluginkit.TestSet{

"tlp_amber": {
CCC_C01_TR01,
Expand All @@ -19,7 +19,6 @@ var (
CCC_C03_TR05,
CCC_C03_TR06,
CCC_C04_TR01,
CCC_C04_TR01,
CCC_C04_TR02,
CCC_C05_TR01,
CCC_C05_TR02,
Expand Down Expand Up @@ -95,7 +94,6 @@ var (
CCC_C03_TR05,
CCC_C03_TR06,
CCC_C04_TR01,
CCC_C04_TR01,
CCC_C04_TR02,
CCC_C05_TR01,
CCC_C05_TR02,
Expand Down
Loading
Loading