Skip to content

Commit

Permalink
Refactor for sdk support (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizedkyle authored Sep 2, 2021
1 parent fbd23bb commit 0969708
Show file tree
Hide file tree
Showing 239 changed files with 3,971 additions and 7,505 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/sumocli-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16.6'
go-version: '1.17'
- name: Setup Dotnet
uses: actions/setup-dotnet@v1
with:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Signing Executable
shell: pwsh
run: |
azuresigntool sign --description-url "https://sumocli.gitbook.io" --file-digest sha256 `
azuresigntool sign --description-url "https://github.com/wizedkyle/sumocli" --file-digest sha256 `
--azure-key-vault-url ${{ secrets.AZURE_KEY_VAULT_URL }} `
--azure-key-vault-client-id ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }} `
--azure-key-vault-client-secret ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }} `
Expand All @@ -85,6 +85,11 @@ jobs:
asset_path: ./sumocli-windows-amd64.zip
asset_name: sumocli-windows-amd64.zip
asset_content_type: application/zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: sumocli-windows-amd64
path: ./sumocli.exe

build_linux:
name: Build Linux Binary
Expand All @@ -94,7 +99,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16.6'
go-version: '1.17'
- name: Set Version Variable
run: |
echo "TAG=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
Expand Down Expand Up @@ -126,6 +131,11 @@ jobs:
asset_path: ./sumocli-linux-amd64.zip
asset_name: sumocli-linux-amd64.zip
asset_content_type: application/zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: sumocli-linux-amd64
path: ./sumocli

build_macos_intel:
name: Build macOS Binary (Intel)
Expand All @@ -135,7 +145,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16.6'
go-version: '1.17'
- name: Set Version Variable
run: |
echo "TAG=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
Expand Down Expand Up @@ -196,6 +206,12 @@ jobs:
asset_path: ./sumocli.zip
asset_name: sumocli-macos-amd64.zip
asset_content_type: application/zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: sumocli-macos-amd64
path: ./sumocli


build_macos_apple_silicon:
name: Build macOS Binary (Apple Silicon)
Expand All @@ -205,7 +221,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16.6'
go-version: '1.17'
- name: Set Version Variable
run: |
echo "TAG=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
Expand Down Expand Up @@ -262,3 +278,8 @@ jobs:
asset_path: ./sumocli.zip
asset_name: sumocli-macos-arm64.zip
asset_content_type: application/zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: sumocli-macos-arm64
path: ./sumocli
8 changes: 7 additions & 1 deletion COMPATIBILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ You can find further information about the Sumo Logic APIs in their [documentati
| Account | :white_check_mark: | |
| Apps (Beta) | :white_check_mark: | |
| Archive Ingestion | :white_check_mark: | |
| Connections (Beta) | | Functionality is still in development. |
| Content | :white_check_mark: | |
| Collectors | :white_check_mark: | |
| Dashboards | :white_check_mark: | |
Expand All @@ -22,17 +23,22 @@ You can find further information about the Sumo Logic APIs in their [documentati
| Health Events | :white_check_mark: | |
| Ingest Budgets | :white_check_mark: | |
| Ingest Budgets v2 | :white_check_mark: | |
| Lookup Tables | :white_check_mark: | Upload CSV file functionality is not currently supported however, it will be added in a future release. |
| Log Search Estimated Usage | | Functionality is still in development. |
| Lookup Tables | :white_check_mark: | |
| Metrics Searches (Beta) | | Functionality is still in development. |
| Monitors | | Functionality is still in development. |
| Organizations | | Functionality is still in development. |
| Partitions | :white_check_mark: | |
| Password Policy | :white_check_mark: | |
| Permissions | :white_check_mark: | |
| Policies | | Functionality is still in development. |
| Roles | :white_check_mark: | |
| SAML Configuration | :white_check_mark: | |
| Scheduled Views | :white_check_mark: | |
| Service Allowlist | :white_check_mark: | |
| Sources | :white_check_mark: | Simple commands like get, list, delete are supported. Support for creating different sources are listed under Sumo Logic Sources Support. |
| Tokens | :white_check_mark: | |
| Transformation Rules (Beta) | | Functionality is still in development. |
| Users | :white_check_mark: | |

## Sumo Logic Sources Support
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.16.6-alpine
LABEL maintainer="Kyle Jackson <[email protected]>"

ENV DEV=true

WORKDIR $GOPATH/src/github.com/wizedkyle/sumocli
COPY . .
RUN chmod +x ./scripts/build.sh
RUN ./scripts/build.sh

ENTRYPOINT ["/go/bin/sumocli"]
Loading

0 comments on commit 0969708

Please sign in to comment.