-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ethanperry/add package copy headers (#30)
Renames several samples, adds headers to files, and cleans up documentation and readmes.
- Loading branch information
1 parent
caf43a2
commit 79e3ed8
Showing
136 changed files
with
846 additions
and
451 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
.github/workflows/callout_build.yml → .github/workflows/device_simulator_build.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.github/workflows/callout_test.yml → .github/workflows/device_simulator_test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: krill_test | ||
name: device-simulator_test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- samples/callout/** | ||
- samples/device-simulator/** | ||
|
||
jobs: | ||
call-mage-test: | ||
uses: ./.github/workflows/mage_tests.yml | ||
with: | ||
workdir: samples/callout/ | ||
workdir: samples/device-simulator/ |
8 changes: 4 additions & 4 deletions
8
.github/workflows/krill_build.yml → ...hub/workflows/http_grpc_callout_build.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.github/workflows/krill_test.yml → .github/workflows/http_grpc_callout_test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: krill_test | ||
name: http_grpc_callout_test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- samples/krill/** | ||
- samples/http-grpc-callout/** | ||
|
||
jobs: | ||
call-mage-test: | ||
uses: ./.github/workflows/mage_tests.yml | ||
with: | ||
workdir: samples/krill/ | ||
workdir: samples/http-grpc-callout/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,31 @@ | ||
# Toolbox Organization | ||
# Explore IoT Operations Organization | ||
|
||
## Structure | ||
|
||
The AIO toolbox is a collection of several tools for customers of AIO. To keep the project understandable and extensible to future additions, the following conventions should be followed for repository structure. | ||
Explore IoT Operations is a collection of tools and samples for customers of Azure IoT Operations. To keep the project understandable and extensible to future additions, the following conventions should be followed for repository structure. | ||
|
||
``` | ||
├── lib | ||
│ ├── library1 | ||
├── lib/ | ||
│ ├── library1/ | ||
│ ├── ... | ||
│ ├── libraryN | ||
├── samples | ||
│ ├── tool1 | ||
│ │ ├── config.yml | ||
│ │ ├── config.json | ||
│ ├── libraryN/ | ||
├── samples/ | ||
│ ├── sample1/ | ||
│ ├── ... | ||
│ ├── toolN | ||
├── tools | ||
│ ├── tool1 | ||
│ │ ├── cmd | ||
│ │ │ ├── main.go | ||
│ │ ├── pkg | ||
│ │ │ ├── pkg1 | ||
│ ├── ... | ||
│ ├── toolN | ||
├── docker | ||
│ ├── tool1 | ||
│ │ ├── Dockerfile | ||
│ ├── ... | ||
│ ├── toolN | ||
├── go.mod | ||
├── go.sum | ||
├── magefile.go | ||
│ ├── sampleN/ | ||
├── scripts/ | ||
├── tutorials/ | ||
└── README.md | ||
``` | ||
|
||
__Libraries__ which are shared between multiple tools should be stored in the lib directory. This library can be incorporated into projects beyond AIO tools and such documentation will be available on the _go.dev_ documentation site. | ||
|
||
__Samples__ are configuration files which have been created for specific sample usages of a tool. Multiple configuration files can live in each sample folder for different samples which utilize the same tool. | ||
|
||
__Tools__ are AIO specific tools which may have their own internal packages stored within the pkg folder. Other top-level folders in each tool are allowed, though it is recommended to minimize the number of top-level folders. Each tool must also have its own cmd directory where the entrypoint is located. | ||
|
||
__Dockerfiles__ for relavent docker images are stored for each tool under the docker directory. They are siloed into their own directories for each tool. | ||
|
||
__Mage Commands__ are located within the magefile.go. Mage commands should be written in such a way that they apply to any given tool based on a parameter. Mage commands should not be targeted at a specific tool itself. If such a command is required, a magefile within the tool directory should be produced. | ||
**Libraries** (`./lib`) are shared between multiple tools or samples. | ||
|
||
## Linting & Formatting Requirements | ||
**Samples** (`./samples`) are tools or code samples which can be written in any language. They should be given a descriptive name which adequately describes their purpose, and should include some level of documentation regarding their usage. | ||
|
||
Linting and formatting rules are applied to all tools and libraries based on a linting configuration set up and applied via mage commands. | ||
**Scripts** (`./scripts`) are bash scripts smaller than a tool or sample which are in some way used for setup. | ||
|
||
## Example Tool | ||
**Tutorials** (`./tutorials`) are collections of code and documentation which are used together to provide a step-by-step walkthrough to demonstrate the capabilities of some feature of Azure IoT Operations. These typically serve a more narrow scope than that of a tool or code sample, designed to exercise specific facets of Azure IoT Operations. | ||
|
||
Please view the example tool in `tools/example` for an example of how to contribute a new tool to the AIO toolbox. | ||
## Linting, Formatting, and Testing Requirements | ||
|
||
_Note_: tools can be written in any language including minimal tools such as bash scripts. The tools are written in golang in this document for example purposes. | ||
Linting, formatting, and testing are not required but are highly recommended. The mage library under `./lib/mage` is provided for golang projects and offers some basic commands for linting, formatting, building, testing, and assuring test coverage bars. Comments describe each function within the library. See `./samples/device-simulation/mage.go` for an example of how this library is used. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/bin | ||
cover.tmp.out | ||
coverage.out | ||
cover.* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.