Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Features for package Archive, Artifact, AWS, OAuth, IOUtils, Semaphore, Errors #59

Merged
merged 11 commits into from
Sep 22, 2020

Conversation

nabbar
Copy link
Owner

@nabbar nabbar commented Aug 23, 2020

Refactor Package Archive :

  • Use ioutils.FileProgress instead of os.Files
  • Add func for extract all files in archive

Add Package Artifact :

  • add function to manage artifact search & download
  • add endpoint github
  • add endpoint gilab
  • add endpoint s3aws

Add Package AWS :

  • add helper for custom config
  • add helper for aws config (with auto conf env, ec2, ...)
  • add helper for iam/s3 functions
  • add test ginkgo/gomega with minio

Add Package OAuth :

  • Add function to get http.client for oauth with token
  • Add function to get http.client for oauth with tokenSource
  • Add function to get http.client for oauth with api key/code

Add FileProgress in ioutils package :

  • Add fileprogress based on os.File, temporary file, openning file (basic), open File with mode
  • Implement feature to update function for progression operation like read, write into a file
  • Implement interface of io : Read, Write, Seek, Closer, ReaderFrom, WriteTo, ReaderAt, WriteAt, StringWrite...
  • use buffer defined as same as bufio buffer

Refactor Package Progress & Semaphore :

  • refactor context managment
  • simplify context

Add features in Package Progress :

  • Add complex bar features
  • Add unic progress features

Change in Package Errors :

  • Fix trace
  • Add new package starting Code

Fix linter :

@nabbar nabbar added the enhancement New feature or request label Aug 23, 2020

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…e errors & linter

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…, writeto, readfrom, writeAt, ...) and progress bar capabilities (but not exclusif)

The inteface will add some func like increment, reset, finish, ... to call your progression function. Indeed, the interface implement context managment
In add, some fix erros, optimize and linter fix are implemented into the change

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…om config for custom endpoint or region like use of minio server

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…tion to extract all contents, fix some erros & linter

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
… gitlab, s3, ... some other will come after (big matter with jfrog because jfrog has badly code never seens, maybe need to do dedicated lib)

For now artifact is only to get all release, major, minor, latest, major latest, minor latest, artifact link and download. Upload and creation release will be allowed in future
@nabbar nabbar force-pushed the artifact branch 2 times, most recently from 927b29a to fec6fe8 Compare September 11, 2020 13:02

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@nabbar nabbar changed the title WIP : Artifact Add Features for package Archive, Artifact, AWS, OAuth, IOUtils, Semaphore, Errors Sep 22, 2020
@nabbar nabbar merged commit fcd9079 into master Sep 22, 2020
@nabbar nabbar deleted the artifact branch September 22, 2020 09:09
nabbar pushed a commit that referenced this pull request Aug 16, 2023
# Refactor Package Archive : 
- Use ioutils.FileProgress instead of os.Files
- Add func for extract all files in archive

# Add Package Artifact : 
- add function to manage artifact search & download
- add endpoint github
- add endpoint gilab
- add endpoint s3aws

# Add Package AWS : 
- add helper for custom config
- add helper for aws config (with auto conf env, ec2, ...)
- add helper for iam/s3 functions
- add test ginkgo/gomega with minio

# Add Package OAuth : 
- Add function to get http.client for oauth with token
- Add function to get http.client for oauth with tokenSource
- Add function to get http.client for oauth with api key/code

# Add FileProgress in ioutils package : 
- Add fileprogress based on os.File, temporary file, openning file (basic), open File with mode
- Implement feature to update function for progression operation like read, write into a file
- Implement interface of io : Read, Write, Seek, Closer, ReaderFrom, WriteTo, ReaderAt, WriteAt, StringWrite...
- use buffer defined as same as bufio buffer 

# Refactor Package Progress & Semaphore : 
- refactor context managment 
- simplify context 

# Add features in Package Progress : 
- Add complex bar features 
- Add unic progress features

# Change in Package Errors : 
- Fix trace
- Add new package starting Code

# Fix linter : 
- fix Linter for package ioutils : #46 
- fix Linter for package version: #45 
- fix Linter for package password: #44 
- fix Linter for package smtp: #41 
- fix Linter for package status #39 
- fix Linter for package archive: #37 
- fix Linter for package certificates: #36 
- fix Linter for package console: #35 
- fix Linter for package crypt: #34
- fix Linter for package httpserver: #32 
- fix Linter for package semaphore: #31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant