501 Commits

Author SHA1 Message Date
Nicolas JUHEL
2a1ecadf01 Package context:
- gin: apply change following bumping gin (move value from interface{} to any, move key from string to any)

Package Database:
- gorm: removing clickhouse driver following cve and no update since publicated

Other:
- bump dependencies
2025-09-26 11:21:22 +02:00
nabbar
85df1023d9 fix bump dependencies 2025-09-01 08:48:11 +02:00
nabbar
f64fbb71b3 Bump minimal go version in action 2025-09-01 08:26:28 +02:00
nabbar
535040302d Bump dependencies & bump go version 2025-09-01 08:24:27 +02:00
Nicolas JUHEL
5a69d2bda5 Bump dependencies
Signed-off-by: Nicolas JUHEL <githubatcom@nabbar.com>
2025-07-30 16:27:48 +02:00
Nicolas JUHEL
a79e6616fc Package LDAP: fix & optimize ldap group filtering attribute
Signed-off-by: Nicolas JUHEL <githubatcom@nabbar.com>
2025-07-30 16:26:15 +02:00
Nicolas JUHEL
e27ced7353 Package Certificates:
- fix hook for viper; use reflect typeof instead of reflect kind

Other:
- Bump dependencies
2025-06-13 15:02:28 +02:00
Nicolas JUHEL
e907f6f772 Bump dependencies 2025-05-26 09:05:55 +02:00
Nicolas JUHEL
536b4e2705 Documentation Update, minor Fix & Aws Walk function refactor (#204)
Documentation Update:
    - Add some README file to give missing documentations or update existing documentation file

Package Archive:
    - Add some comments to godoc information
    - Moving NopWriterCloser interface to ioutils package

Package IOUtils:
    - New package NopWriterCloser to implement interfac like NopReader

Package Database:
    - KVMap: fix missing function following update of kvdriver

Package Duration:
    - Rename BDD testing

Package Context/Gin:
    - Moving function New between model & interface file

Package AWS:
    - rework Walk function to use more generic with standard walk caller function
    - func walk will now no more return and include error (can be catched into the given func)
    - func walk will now return a bool to continue or stop the loop
    - func walk with many input function will now stop when all given function return false
    - func walk will now return error only about main process and not given function

Package errors:
    - Add interface error into interface Error

Package IOUtils:
    - Moving IOWrapper as subPackage and optimize process + allow thread safe
2025-05-26 08:30:22 +02:00
nabbar
9e8179374b README:
- Add some README file to give missing documentations or update existing documentation file

Package Archive:
- Add some comments to godoc information
- Moving NopWriterCloser interface to ioutils package

Package IOUtils:
- New package NopWriterCloser to implement interfac like NopReader

Package Database:
- KVMap: fix missing function following update of kvdriver

Package Duration:
- Rename BDD testing

Package Context/Gin:
- Moving function New between model & interface file

Package AWS:
- rework Walk function to use more generic with standard walk caller function
- func walk will now no more return and include error (can be catched into the given func)
- func walk will now return a bool to continue or stop the loop
- func walk with many input function will now stop when all given function return false
- func walk will now return error only about main process and not given function

Package errors:
- Add interface error into interface Error

Package IOUtils:
- Moving IOWrapper as subPackage and optimize process + allow thread safe
2025-05-25 06:29:25 +02:00
Nicolas JUHEL
0f4ac42db9 Package Database KV:
- Driver: add instance to compare keys
- Driver: add optionnal function to search keys with a pattern of keys
- Driver: add fakefunction search based on compare & list to replace a dedicated search function
- Table: add function search function

Other:
- Bump dependencies
2025-05-19 09:55:27 +02:00
Nicolas JUHEL
4a37d3db6a Package Logger:
- STD IO Writer Logger: add capabilities of multi filter slice of byte
- STD IO Writer Logger: add function Add..Filter to allow adding filter and not full setting the pattern list

Package HTTP Server:
- Rework filtering logger message to ignore connections reset by peer in server logger
- Rework filtering logger message to ingore all TLS Handshake error in logger
2025-05-06 13:28:42 +02:00
Nicolas JUHEL
70b03e32ca Package Certificates:
- Allow config to return an old config struct

Package Monitor:
- Add an old config struct / type
- Add method in config (old) to return a new struct config
- Add method in config (new) to return an old config struct
v1.17.8
2025-04-15 17:36:43 +02:00
Nicolas JUHEL
ec3cc4f859 Bump dependencies v1.17.7 2025-04-10 18:02:40 +02:00
Nicolas JUHEL
10ea68f745 Bump dependencies 2025-04-10 17:52:06 +02:00
Nicolas JUHEL
b70b579a39 Bump dependencies 2025-04-10 17:43:32 +02:00
Nicolas JUHEL
3562c0bf86 Package Certificates:
- fix not well working viper hook function

Package Semaphore:
- Add Clone function in Semaphore interface

Package Duration:
- Fix overflow capabilitie with negative value to package duration & duration/big
2025-04-10 17:38:45 +02:00
nabbar
19d64346f6 Package Duration:
- fix bug into parse in duration & duration/big

Other:
- Bump dependencies
2025-03-30 14:04:58 +02:00
Nicolas JUHEL
7efa55b1d2 bump mapstructure repo from mitchellh to go-viper (#202)
Bump `mapstructure` dependencies from `github.com/mitchellh/mapstructure` to `github.com/go-viper/mapstructure/v2`
2025-03-30 13:14:59 +02:00
Thomas
5c5a401f37 Merge branch 'master' into bump_viper_mapstructure
Signed-off-by: Thomas <61581279+thomasbkd@users.noreply.github.com>
2025-03-28 17:03:26 +01:00
Nicolas JUHEL
bacf612c8a Update Action with go1.24
Signed-off-by: Nicolas JUHEL <githubatcom@nabbar.com>
2025-03-28 16:04:37 +01:00
Nicolas JUHEL
3e31134d7a bump to GO 1.24 2025-03-27 16:42:27 +01:00
Nicolas JUHEL
56dae4d8cd Package Certificates:
- fix bug when slice of certificates contain empty items
2025-03-27 16:41:07 +01:00
Nicolas JUHEL
0f92caff5f Fix Package Duration & Add new Package for big duration (#203)
- Add: allowing parsing day in Duration package who's parsing value before a d letter
- Add: a sub package named big with another custom type Duration but this Duration is based of number of seconds instead of number of nanosecond to golib/Duration or time.Duration package. The result big Duration package allow to manage duration up to 106,751,991,167,300 d 15 h 30 m 7 s
- Add: into some BDD test with ginkgo framework
- Fix: marshaller function in package Duration 
- Fix: big Duration
- Refactor: optimize some code convertion
- Refactor: truncate function to not use float64 casting
2025-03-26 12:56:34 +01:00
Nicolas JUHEL
c1adb1e090 Package Duration:
- fix marshaller in yaml/toml
- optimize marchaller
- add sub package big to manage duration with big walue like 1000 days
- big duration have limit to seconds and to not keep any milliseconds, microseconds or nanoseconds
- big duraction have max value of 106,751,991,167,300 d 15 h 30 m 7 s
2025-03-26 12:18:19 +01:00
Nicolas JUHEL
b1a8a6dbe9 Package Duration:
- add self parsing to allow capabilities parsing days like '4d13h25m41s'
2025-03-25 11:06:18 +01:00
thomasbkd
23f6e182ed Migrating mapstructure repo from mitchellh to go-viper 2025-03-20 16:49:04 +01:00
Nicolas JUHEL
a39ad5f911 Package HTTPClient/DNSMApper:
- fix boolean bug to initialize TLS Config when no tls config set in config
v1.17.6
2025-03-17 08:39:39 +01:00
Nicolas JUHEL
6e49a0bd4a Package Encoding:
- interface Coder: replace all return io.reader/io.writer to same io interface but with closer implementation
- interface Coder: add Reset function to free memory
- add sha256: add new sub package that implement coder interface to calculate checksum (no decode available)

Other:
- bump dependencies
v1.17.5
2025-03-14 14:57:58 +01:00
Nicolas JUHEL
3d9eee878f Package AWS:
- fix bug whos aws config checksum not loaded from config struct, using callback on config process
- bump to latest sdk release

Other:
- bump dependencies
v1.17.4
2025-03-13 16:47:17 +01:00
Nicolas JUHEL
99db544ce7 Bump dependencies 2025-03-07 14:19:21 +01:00
Nicolas JUHEL
be538d6cff Package Config/component:
- component HTTPCli: apply change into component
2025-03-07 14:16:37 +01:00
Nicolas JUHEL
fb3d5efd40 Bump dependencies 2025-03-07 09:45:32 +01:00
Nicolas JUHEL
90dd383441 Package AWS/Objects:
- add metadata function to walk objects / walk object version function, who's contain the len of result (objects, version, deletemarkers)
2025-03-07 09:41:01 +01:00
Nicolas JUHEL
a7978fce36 Package HTTPClient/DNSMapper:
- allow using a given TLS Config pointer
- allow to retrieve / update the default transport
2025-03-07 09:39:39 +01:00
Nicolas JUHEL
1528588499 Package errors:
- implement GOROOT/src/errors Is interface
- fix bug with GOROOT/src/errors UnWrap / Is
v1.17.3
2025-02-28 17:37:31 +01:00
Nicolas JUHEL
0c1f4675fb Package IOUtils/BufferReadCloser:
- refactor package to allow closer for bytes.Buffer, bufio.Reader, bufio.Writer, bufio.ReadWriter
- implement ReadFrom, WriterTo, StringWriter, ReadRune, ReadByte, WriteByte
- allow specify a custom close function, called in close statement
- add NewBuffer (New declare as deprecated), NewReader, NewWriter, NewReadWriter to each types bytes / bufio
- remove call of Reset in close for ReadWriter: ambigous function (ambigous in bufio struct)

Package Static:
- replace BufferReadCloser New function to NewBuffer

Other:
- bump dependencies
v1.17.2
2025-02-10 14:49:32 +01:00
Nicolas JUHEL
fe90c8e82c Package Errors: fix compatiblity with GOROOT errors packages + fix recursive HasCode function v1.17.1 2025-02-05 17:17:29 +01:00
Nicolas JUHEL
82d32d81b0 Package AWS:
- bump dependencies aws sdk go v2 with checksum calulation when supported by default
- add function in config interface to allow changing checksum calculation
- set checksum calculation as 'when required' with custom config
- set checksum calcultation as 'when supported' with aws config

Other:
- bump dependencies
v1.17.0
2025-01-28 16:42:02 +01:00
Nicolas JUHEL
61a73ba606 Package Certificates:
- fix bug with cert type marshall/unmarshall
- add old config to allow retro compatibility
- add new type function to retrieve a tls root ca cert instead of a slice of string to get root ca

Package HTTPCli:
- fix default DNS Mapper
- optimze global DNS Mapper
- fix non closing sub goroutine

Package HTTPCli/DNS-Mapper:
- change request function of Root CA with function of root ca cert instance
- add function to return a root ca cert from a function that return a slice of root ca string

Package Config/Components:
- httpcli: bump sub package of certificate, httpcli
- httpcli: adjust code following bump
- httpcli: change request function of Root CA with function of root ca cert instance
- httpcli: add function to return a root ca cert from a function that return a slice of root ca string
- tls: change request function of Root CA with function of root ca cert instance
- tls: add function to return a root ca cert from a function that return a slice of root ca string

Package IOUtils/mapCloser:
- fix bug with mapcloser not stopped
- optimize code & goroutine

Package Logger:
- rework mapCloser call
- optimize mapClaoser managment

Package Request:
- rework error managment
- using []byte instead of buffer to read response body
- add free capability
- optimize memory consumption

Package Socket / Server:
- add filtering error capability
- add params to specify a function called on each new connection and before using the connection
- the new function param allow to update the network incomming connection (like buffer, deadline...)
- rework some useless atomic to direct value to optimize code

Package Socket/Delim:
- rework to optimize memory & variable use
- remove capabilities of update the instance when running, prefert recreate new one if necessary

Other:
- bump dependencies
- minor bug / fix
2025-01-14 15:01:54 +01:00
Nicolas JUHEL
22b364593e Package certificates:
- rework package to allow convert config to model and retrive config from model
- add sub package to manage cipher, curves, auth client, tls version, certificates, root ca...
- add some small test (can be expande to having more coverage)
- optimize some code

Package httpcli:
- update code following change in certificates

Package httpserver:
- update code following change in certificates

Package Config/Components:
- update code following change in certificates

Package FTPClient:
- update code following change in certificates

Package Nats:
- update code following change in certificates
2024-12-04 17:30:22 +01:00
Nicolas JUHEL
eca6890e32 Package Archive: add Helper & Compress DetectOnly (#199)
Package archive/helper
- adding package to compress/uncompress with reader or writer
- refactor to allowing to use same source of io as result: io.reader or
io.writer
- optimize code & buf to limit mem use
- rework variable to be thread safe

Package archive/compress
- add function DetectOnly to detect algo and return an updated reader
but not the decompressor reader
- update function Detect to use DetectOnly to limit duplication code

Other
- bump dependencies


## Type of Change
Please select the type of change your PR introduces by checking the
appropriate box:
- [ ] Fixes an issue
- [X] Adds a new feature
- [X] Refactor
- [ ] Documentation update
- [ ] Other (please describe it in the Description Section)
2024-11-27 17:44:41 +01:00
Salim Amine Bou Aram
cd083bb53f Package archive/helper
- adding package to compress/uncompress with reader or writer
- refactor to allowing to use same source of io as result: io.reader or io.writer
- optimize code & buf to limit mem use
- rework variable to be thread safe

Package archive/compress
- add function DetectOnly to detect algo and return an updated reader but not the decompressor reader
- update function Detect to use DetectOnly to limit duplication code

Other
- bump dependencies
2024-11-27 17:23:14 +01:00
Nicolas JUHEL
cb8afe8b62 Package Ldap - Add features to filter multiple group entries (#195)
Package Ldap :
- Add features to filter multiple group entries
2024-11-19 09:20:06 +01:00
Nicolas JUHEL
42573c7ebd Update SECURITY.md
Signed-off-by: Nicolas JUHEL <githubatcom@nabbar.com>
2024-11-19 08:35:54 +01:00
nabbar
3cad34d6c9 Package Ldap:
- Add function to filter multiple LDAP group entries attributes based on user
2024-11-19 08:21:49 +01:00
Nicolas JUHEL
8451eae3be tls version type, fix missing char 2024-10-31 12:04:54 +01:00
Nicolas JUHEL
dafe59079d Package Certificates:
- Add sub package tlsversion: manage tls version to stringer / crypto tls constant, with marshaller & unmarshaller
2024-10-24 16:42:57 +02:00
Nicolas JUHEL
5e6e2949ee golib-issue-templates (#189)
ISSUE templates => bug or new feature
2024-10-17 12:40:06 +02:00
Salim Amine Bou Aram
d8f1369e5c golib-issue-templates 2024-10-11 15:25:09 +02:00