repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/mtxrec/before.go
_examples/inst/mtxrec/before.go
package mtxrec import "sync" func Hello() { m := sync.Mutex{} m.Lock() m.Unlock() rwm := sync.RWMutex{} rwm.Lock() rwm.RLock() rwm.Unlock() rwm.RUnlock() rwm.RLocker().Lock() rwm.RLocker().Unlock() }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/chrec/after.go
_examples/inst/chrec/after.go
package chrec import oraclert "gfuzz/pkg/oraclert" type A struct { aa chan struct{} } func Hello() { ch := oraclert.StoreChMakeInfo(make(chan int), 1).(chan int) a := oraclert.StoreChMakeInfo(make(chan struct{}), 2).(chan struct{}) c := oraclert.StoreChMakeInfo(make(chan struct{}, 4), 3).(chan struct{}) b := &A...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/chrec/before.go
_examples/inst/chrec/before.go
package chrec type A struct { aa chan struct{} } func Hello() { ch := make(chan int) a := make(chan struct{}) c := make(chan struct{}, 4) b := &A{ aa: make(chan struct{}), } ch <- 1 <-ch close(ch) }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/selefcm/after.go
_examples/inst/selefcm/after.go
package selefcm import ( oraclert "gfuzz/pkg/oraclert" "sync" "time" ) func SelectWithCh() { ch1 := make(chan int) ch2 := make(chan struct{}) switch oraclert.GetSelEfcmSwitchCaseIdx("/home/xsh/code/GFuzz/_examples/inst/selefcm/before.go", "12", 2) { case 0: select { case <-ch1: println("ch1!") case <-...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/selefcm/before.go
_examples/inst/selefcm/before.go
package selefcm import ( "sync" "time" ) func SelectWithCh() { ch1 := make(chan int) ch2 := make(chan struct{}) select { case <-ch1: println("ch1!") case <-ch2: println("ch2") } } func SelectWithDefault() { ch1 := make(chan int) ch2 := make(chan struct{}) select { case <-ch1: println("ch1!") cas...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/fuzz/hello/hello_test.go
_examples/fuzz/hello/hello_test.go
package hello import ( "fmt" "sync" "testing" "time" ) func TestChannelBug(t *testing.T) { ch := make(chan int) go func() { ch <- 1 }() select { case <-ch: fmt.Println("Normal") case <-time.After(300 * time.Millisecond): fmt.Println("Should be buggy") } } func TestWgBug(t *testing.T) { var wg s...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
chromedp/chromedp-proxy
https://github.com/chromedp/chromedp-proxy/blob/2cc8be5808466b83ea11da1f91391e989508a24a/main.go
main.go
// chromedp-proxy provides a cli utility that will proxy requests from a Chrome // DevTools Protocol client to a browser instance. // // chromedp-proxy is particularly useful for recording events/data from // Selenium (ChromeDriver), Chrome DevTools in the browser, or for debugging // remote application instances compa...
go
MIT
2cc8be5808466b83ea11da1f91391e989508a24a
2026-01-07T09:45:47.336808Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/faynoSync.go
faynoSync.go
package main import ( "faynoSync/server" "flag" "os" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) var ( migration bool rollback bool logLevel string ) func init() { flag.BoolVar(&migration, "migration", false, "Set true to run migrations.") flag.BoolVar(&rollback, "rollback", false, "Set true...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/faynoSync_test.go
faynoSync_test.go
package main import ( "bytes" "context" "encoding/json" "fmt" "io" "log" "mime/multipart" "net/http" "net/http/httptest" "os" "path/filepath" "strings" "testing" "time" "faynoSync/mongod" "faynoSync/redisdb" "faynoSync/server/handler" "faynoSync/server/model" "faynoSync/server/utils" "github.com/...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
true
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/create.go
mongod/create.go
package mongod import ( "context" "errors" "faynoSync/server/model" "faynoSync/server/utils" "fmt" "reflect" "strings" "time" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.o...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/delete.go
mongod/delete.go
package mongod import ( "context" "faynoSync/server/model" "fmt" "log" "strconv" "time" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) func (c *appRepository) DeleteSpecificVersionOfApp(id primitive.ObjectID...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/check.go
mongod/check.go
package mongod import ( "context" "errors" "faynoSync/server/model" "fmt" "sort" "github.com/hashicorp/go-version" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) func (c *appRepository) Get(ctx context.Conte...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/list.go
mongod/list.go
package mongod import ( "context" "faynoSync/server/model" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" ) func (c *appRepository) listItems(ctx context.Context, collectionName string, filter bson.M, owne...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/adapter.go
mongod/adapter.go
package mongod import ( "context" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/x/mongo/driver/connstring" ) func ConnectToDatabase(mongoUrl string, flags map[string]interface{}) (*mongo.Client, connstring.ConnString) { ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/migration.go
mongod/migration.go
package mongod import ( "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/mongodb" "github.com/golang-migrate/migrate/v4/source/file" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/mongo" ) func RunMigrations(client *mongo.Client, dbName string, flags map[string]int...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/createUser.go
mongod/createUser.go
package mongod import ( "context" "faynoSync/server/model" "time" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/crypto/bcrypt" ) func CreateUser(client *mongo.Client, dbName *mongo.Database, credentials *model.Credentials) error { hashedPas...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/update.go
mongod/update.go
package mongod import ( "context" "errors" "faynoSync/server/model" "faynoSync/server/utils" "fmt" "time" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) func (c *appRepository) UpdateDocument(collectionName ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/mongod/structs.go
mongod/structs.go
package mongod import ( "context" "faynoSync/server/model" "github.com/go-redis/redis/v8" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/x/mongo/driver/connstring" ) type AppRepository ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/redisdb/redis.go
redisdb/redis.go
package redisdb import ( "context" "os" "time" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" ) type RedisConfig struct { Addr string Password string DB int } var client *redis.Client func ConnectToRedis(config RedisConfig) *redis.Client { if client != nil { return client } opt...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/server.go
server/server.go
package server import ( db "faynoSync/mongod" "faynoSync/redisdb" "faynoSync/server/handler" "faynoSync/server/tuf" "faynoSync/server/utils" "os" "strings" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) func StartServer(config *viper.Viper...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/model/model.go
server/model/model.go
package model import "go.mongodb.org/mongo-driver/bson/primitive" type Artifact struct { Link string `bson:"link"` Platform primitive.ObjectID `bson:"platform"` Arch primitive.ObjectID `bson:"arch"` Package string `bson:"package"` Signature string `bson:"signature...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/tuf.go
server/tuf/tuf.go
package tuf import ( "faynoSync/mongod" "faynoSync/server/tuf/artifacts" "faynoSync/server/tuf/bootstrap" "faynoSync/server/tuf/config" "faynoSync/server/tuf/metadata" "faynoSync/server/tuf/tasks" "faynoSync/server/utils" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "go.mongodb.org/mongo-driver...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/tasks/models.go
server/tuf/tasks/models.go
package tasks import "time" // TaskState represents the state of a task type TaskState string const ( TaskStatePending TaskState = "PENDING" TaskStateReceived TaskState = "RECEIVED" TaskStateStarted TaskState = "STARTED" TaskStateSuccess TaskState = "SUCCESS" TaskStateFailure TaskState = "FAILURE" TaskStat...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/tasks/task.go
server/tuf/tasks/task.go
package tasks import ( "context" "encoding/json" "net/http" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" ) // GetTask retrieves task status from Redis func GetTask(c *gin.Context, redisClient *redis.Client) { taskID := c.Query("task_id") if taskID == "" { c...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/storage/storage.go
server/tuf/storage/storage.go
package storage import ( "context" "faynoSync/server/utils" "fmt" "os" "strconv" "strings" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) func UploadMetadataToS3(ctx context.Context, adminName string, appName string, filename string, filePath string) error { env := viper.GetViper() factory := util...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/metadata/metadata.go
server/tuf/metadata/metadata.go
package metadata import ( "context" "crypto" "crypto/ed25519" "encoding/hex" "encoding/json" "faynoSync/server/tuf/models" "faynoSync/server/tuf/signing" tuf_storage "faynoSync/server/tuf/storage" "faynoSync/server/tuf/tasks" tuf_utils "faynoSync/server/tuf/utils" "faynoSync/server/utils" "fmt" "net/http"...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
true
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/metadata/metadata_root.go
server/tuf/metadata/metadata_root.go
package metadata import ( "context" "faynoSync/server/utils" "net/http" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) func GetMetadataRoot(c *gin.Context) { adminName, err := utils.GetUsernameFromContext(c) if err != nil { logrus.Errorf("Failed to get admin name from context: %v", err) c.JSON(...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/delegations/delegation.go
server/tuf/delegations/delegation.go
package delegations import ( "context" "fmt" "strings" "github.com/sirupsen/logrus" "github.com/theupdateframework/go-tuf/v2/examples/repository/repository" "github.com/theupdateframework/go-tuf/v2/metadata" ) func UpdateDelegationPaths( ctx context.Context, repo *repository.Type, roleName string, artifact...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/bootstrap/settings.go
server/tuf/bootstrap/settings.go
package bootstrap import ( "context" "faynoSync/server/tuf/models" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" ) // saveSettings saves bootstrap settings to Redis func saveSettings(redisClient *redis.Client, adminName string, appName string, payload *models.BootstrapPayload) { logrus.Debug("Savi...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/bootstrap/bootstrap.go
server/tuf/bootstrap/bootstrap.go
package bootstrap import ( "context" "encoding/json" "faynoSync/server/tuf/metadata" "faynoSync/server/tuf/models" "faynoSync/server/tuf/tasks" "faynoSync/server/utils" "fmt" "net/http" "strings" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/google/uuid" "github.com/sirups...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/bootstrap/generate.go
server/tuf/bootstrap/generate.go
package bootstrap import ( "context" "crypto" "crypto/ed25519" "encoding/json" "fmt" "net/http" "os" "path/filepath" "time" "faynoSync/mongod" "faynoSync/server/model" tuf_metadata "faynoSync/server/tuf/metadata" "faynoSync/server/tuf/models" "faynoSync/server/tuf/signing" tuf_utils "faynoSync/server/t...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/artifacts/models.go
server/tuf/artifacts/models.go
package artifacts import "time" type ArtifactInfo struct { Length int64 `json:"length"` Hashes map[string]string `json:"hashes"` Custom map[string]interface{} `json:"custom,omitempty"` } type Artifact struct { Info ArtifactInfo `json:"info"` Path string `json:"path"` } type AddArtif...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/artifacts/add.go
server/tuf/artifacts/add.go
package artifacts import ( "context" "crypto" "encoding/hex" "encoding/json" "fmt" "os" "path/filepath" "strings" "time" "github.com/go-redis/redis/v8" "github.com/sigstore/sigstore/pkg/signature" "github.com/sirupsen/logrus" "github.com/theupdateframework/go-tuf/v2/examples/repository/repository" "gith...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/artifacts/delete.go
server/tuf/artifacts/delete.go
package artifacts import ( "context" "crypto" "encoding/json" "fmt" "os" "path/filepath" "time" "github.com/go-redis/redis/v8" "github.com/sigstore/sigstore/pkg/signature" "github.com/sirupsen/logrus" "github.com/theupdateframework/go-tuf/v2/examples/repository/repository" "github.com/theupdateframework/g...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/artifacts/converter.go
server/tuf/artifacts/converter.go
package artifacts import ( "fmt" "faynoSync/server/model" tuf_utils "faynoSync/server/tuf/utils" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) func ConvertMongoArtifactToTUF( mongoArtifact model.Artifact, checkAppVisibility bool, env *viper.Viper, ) (*Artifact, error) { tufPath, err := tuf_utils....
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/artifacts/handlers.go
server/tuf/artifacts/handlers.go
package artifacts import ( "context" "fmt" "net/http" "strings" "time" "faynoSync/server/model" "faynoSync/server/tuf/tasks" "faynoSync/server/utils" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/google/uuid" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/models/models.go
server/tuf/models/models.go
package models import ( "time" "go.mongodb.org/mongo-driver/bson/primitive" ) // BootstrapPayload represents the bootstrap payload structure type BootstrapPayload struct { AppName string `json:"appName" binding:"required"` Settings Settings `json:"settings"` Metadata map[string]...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/utils/utils.go
server/tuf/utils/utils.go
package tuf_utils import ( "context" "crypto/sha256" "encoding/hex" "faynoSync/server/utils" "fmt" "os" "path/filepath" "time" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) func HelperExpireIn(days int) time.Time { return time.Now().AddDate(0, 0, days).UTC() } //...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/config/config.go
server/tuf/config/config.go
package config import ( "context" "fmt" "net/http" "strconv" "strings" "time" "faynoSync/server/tuf/models" "faynoSync/server/tuf/tasks" "faynoSync/server/utils" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/google/uuid" "github.com/sirupsen/logrus" ) func GetConfig(c *gin.Conte...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/tuf/signing/signing.go
server/tuf/signing/signing.go
package signing import ( "context" "crypto/ed25519" "crypto/x509" "encoding/base64" "encoding/hex" "encoding/pem" "faynoSync/server/tuf/models" "fmt" "os" "path/filepath" "strings" "time" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-dri...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage.go
server/utils/storage.go
package utils import ( "faynoSync/server/utils/storage" "github.com/spf13/viper" ) type StorageClient = storage.StorageClient type StorageFactory = storage.StorageFactory type StorageError = storage.StorageError func NewStorageFactory(env *viper.Viper) *StorageFactory { return storage.NewStorageFactory(env) } v...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/validate.go
server/utils/validate.go
package utils import ( "errors" "fmt" "net/http" "regexp" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/mongo" ) // ValidateJWT parses and validates the JWT token func ValidateJWT(tokenString string) (*jwt.Token, ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/s3.go
server/utils/s3.go
package utils import ( "context" "fmt" "mime/multipart" "net/http" "net/url" "strings" "time" "faynoSync/server/utils/updaters" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) func getContentType(fileName string) string { fileName = strings.ToLower(fileName) if fileN...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/utils.go
server/utils/utils.go
package utils import ( "crypto/sha256" "crypto/sha512" "encoding/hex" "encoding/json" "errors" "faynoSync/server/model" "fmt" "io" "mime/multipart" "net/http" "net/url" "strconv" "strings" "time" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" "github.com/sirupsen/logrus" "github.com/spf13...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/check.go
server/utils/check.go
package utils import ( "errors" "net/http/httputil" "strings" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) func DumpRequest(c *gin.Context) { requestDump, err := httputil.DumpRequest(c.Request, true) if err != nil { logrus...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/notifications.go
server/utils/notifications.go
package utils import ( "fmt" "strings" "github.com/sirupsen/logrus" "github.com/slack-go/slack" "github.com/spf13/viper" ) func SendSlackNotification(appName, channel, version string, platforms, arches, artifacts, changelog, extensions []string, env *viper.Viper, publish, critical bool) { token := env.GetStrin...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/auth.go
server/utils/auth.go
package utils import ( "errors" "net/http" "strings" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" ) func AuthMiddleware() gin.HandlerFunc { return func(c *gin.Context) { authHeader := c.GetHeader("Authorization") if authHeader == "" { c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"er...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/permissions.go
server/utils/permissions.go
package utils import ( "context" "faynoSync/server/model" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) type PermissionType string const ( PermissionCreate PermissionType = "create" PermissionDelete Pe...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/updaters.go
server/utils/updaters/updaters.go
package updaters import ( "fmt" "net/url" "strings" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) // BuildResponse builds response based on updater type func BuildResponse(response gin.H, found bool, possibleRollback bool, latestVersion string, updaterType string) (gin.H, int) { logrus.Debugf("New ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/tauri.go
server/utils/updaters/tauri.go
package updaters import ( "fmt" ) // TauriUpdater represents the Tauri updater configuration type TauriUpdater struct { Type string `json:"type"` } // ValidateTauriUpdater validates tauri updater configuration func ValidateTauriUpdater(updaterType string) error { validTypes := []string{"tauri"} for _, validType...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/squirrel.go
server/utils/updaters/squirrel.go
package updaters import ( "fmt" "mime/multipart" "strings" ) type SquirrelUpdater struct { Type string `json:"type"` } type SquirrelWindowsFileValidator struct { updaterType string } func (v *SquirrelWindowsFileValidator) Validate(files []*multipart.FileHeader) error { hasRelease := false for _, file := ran...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/validator.go
server/utils/updaters/validator.go
package updaters import ( "faynoSync/server/model" "fmt" "mime/multipart" "strings" ) type FileValidator interface { Validate(files []*multipart.FileHeader) error GetUpdaterType() string } type ParamValidator interface { ValidateParams(params map[string]interface{}) error GetUpdaterType() string } // ValidU...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/sparkle.go
server/utils/updaters/sparkle.go
package updaters import ( "fmt" ) type SparkleUpdater struct { Type string `json:"type"` } func ValidateSparkleUpdater(updaterType string) error { validTypes := []string{"sparkle"} for _, validType := range validTypes { if updaterType == validType { return nil } } return fmt.Errorf("invalid sparkle up...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/updaters/electron_builder.go
server/utils/updaters/electron_builder.go
package updaters import ( "fmt" "mime/multipart" "strings" ) // ElectronBuilderUpdater represents the Electron Builder updater configuration type ElectronBuilderUpdater struct { Type string `json:"type"` } type ElectronBuilderFileValidator struct { updaterType string } func (v *ElectronBuilderFileValidator) Va...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/interfaces.go
server/utils/storage/interfaces.go
package storage import ( "context" "mime/multipart" "time" ) // StorageClient defines the interface for storage operations type StorageClient interface { UploadObject(ctx context.Context, bucketName, objectKey string, fileReader multipart.File, contentType string) error UploadPublicObject(ctx context.Context, bu...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/digitalocean_spaces_client.go
server/utils/storage/digitalocean_spaces_client.go
package storage import ( "context" "fmt" "mime/multipart" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/spf13/viper" ) // DigitalOceanSpacesClient implements StorageClient interface for DigitalOcean Spaces type ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/base_s3_client.go
server/utils/storage/base_s3_client.go
package storage import ( "context" "fmt" "io" "mime/multipart" "os" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/spf13/viper" ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/aws_s3_client.go
server/utils/storage/aws_s3_client.go
package storage import ( "context" "fmt" "mime/multipart" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/spf13/viper" ) // AWSS3Client implements StorageClient interface for AWS S3 type AWSS3Client struct { *BaseS3Clien...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/factory.go
server/utils/storage/factory.go
package storage import ( "github.com/sirupsen/logrus" "github.com/spf13/viper" ) type StorageFactory struct { env *viper.Viper } func NewStorageFactory(env *viper.Viper) *StorageFactory { return &StorageFactory{env: env} } func (f *StorageFactory) CreateStorageClient() (StorageClient, error) { storageDriver :=...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/google_cloud_storage_client.go
server/utils/storage/google_cloud_storage_client.go
package storage import ( "context" "fmt" "io" "mime/multipart" "os" "time" "cloud.google.com/go/storage" "github.com/sirupsen/logrus" "github.com/spf13/viper" "google.golang.org/api/option" ) // GoogleCloudStorageClient implements StorageClient for GCS type GoogleCloudStorageClient struct { client *storag...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/utils/storage/minio_client.go
server/utils/storage/minio_client.go
package storage import ( "context" "fmt" "io" "mime/multipart" "os" "time" "github.com/minio/minio-go/v7" minioCredentials "github.com/minio/minio-go/v7/pkg/credentials" "github.com/spf13/viper" ) // MinioClient implements StorageClient interface for MinIO type MinioClient struct { client *minio.Client en...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/handler.go
server/handler/handler.go
package handler import ( db "faynoSync/mongod" "faynoSync/server/handler/catalog" "faynoSync/server/handler/create" "faynoSync/server/handler/delete" "faynoSync/server/handler/download" "faynoSync/server/handler/info" "faynoSync/server/handler/sign" "faynoSync/server/handler/team" "faynoSync/server/handler/up...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/sign/login.go
server/handler/sign/login.go
package sign import ( "context" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/crypto/bcrypt" ) func Login(c *gin.Context, database *mongo.Database) { var credentials str...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/sign/signup.go
server/handler/sign/signup.go
package sign import ( "context" "faynoSync/mongod" "faynoSync/server/model" "net/http" "os" "time" "github.com/gin-gonic/gin" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) func SignUp(c *gin.Context, database *mongo.Database, client *mongo.Client) { var creds model.Credentials i...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/catalog/list.go
server/handler/catalog/list.go
package catalog import ( "context" db "faynoSync/mongod" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) func ListChannels(c *gin.Context, repository db.AppRepository) { ctx, ctxErr := context.WithTimeout(c.Request.Context(), 30*t...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/catalog/get.go
server/handler/catalog/get.go
package catalog import ( "context" db "faynoSync/mongod" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "strconv" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) func GetAppByName(c *gin.Context, repository db.AppRepository) { ctx, ctxErr := context.WithTimeout(c.Request.Cont...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/delete/delete.go
server/handler/delete/delete.go
package delete import ( "context" db "faynoSync/mongod" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/text/cases" "golang.org/x/text/...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/team/create.go
server/handler/team/create.go
package team import ( "context" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/crypto/bcrypt" ) typ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/team/delete.go
server/handler/team/delete.go
package team import ( "context" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) type DeleteTeamUserRequest struct { UserID string `json:"i...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/team/list.go
server/handler/team/list.go
package team import ( "context" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/team/update.go
server/handler/team/update.go
package team import ( "context" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/crypto/bcrypt" ) typ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/team/whoami.go
server/handler/team/whoami.go
package team import ( "context" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" ) // WhoamiResponse represents the ...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/update/updateAdmin.go
server/handler/update/updateAdmin.go
package update import ( "context" "faynoSync/server/utils" "net/http" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "golang.org/x/crypto/bcrypt" ) type UpdateAdminRequest str...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/update/update.go
server/handler/update/update.go
package update import ( "context" "encoding/json" db "faynoSync/mongod" "faynoSync/server/handler/create" "faynoSync/server/model" "faynoSync/server/utils" "faynoSync/server/utils/updaters" "net/http" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "github.co...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/create/create.go
server/handler/create/create.go
package create import ( "context" "encoding/json" db "faynoSync/mongod" "faynoSync/server/model" "faynoSync/server/utils" "faynoSync/server/utils/updaters" "net/http" "time" "golang.org/x/text/cases" "golang.org/x/text/language" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/spf13/v...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/create/upload.go
server/handler/create/upload.go
package create import ( "context" db "faynoSync/mongod" "faynoSync/server/model" "faynoSync/server/utils" "faynoSync/server/utils/updaters" "fmt" "net/http" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/download/download.go
server/handler/download/download.go
package download import ( "context" "faynoSync/server/utils" "net/http" "os" "time" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) func DownloadArtifact(c *gin.Context) { _, ctxErr := context.WithTimeout(c.Request.Context(), 30*time.Second) defer ctxErr() urlStr, err := utils.GeneratePresignedUR...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/info/telemetry.go
server/handler/info/telemetry.go
package info import ( _ "embed" "encoding/json" "faynoSync/server/model" "faynoSync/server/utils" "net/http" "strconv" "strings" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" ) //go:emb...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/info/latest.go
server/handler/info/latest.go
package info import ( "context" "encoding/json" db "faynoSync/mongod" "faynoSync/server/utils" "faynoSync/server/utils/updaters" "fmt" "net/http" "strings" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/mongo" ) type CachedRespo...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
ku9nov/faynoSync
https://github.com/ku9nov/faynoSync/blob/8f7498e9d6a64966bbe554059ee0e3e4927a1186/server/handler/info/info.go
server/handler/info/info.go
package info import ( "context" "net/http" "time" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/mongo" ) func HealthCheck(c *gin.Context, mongoClient *mongo.Client, redisClient *redis.Client, performanceMode bool) { ctx, ctxCancel := conte...
go
Apache-2.0
8f7498e9d6a64966bbe554059ee0e3e4927a1186
2026-01-07T09:45:47.362553Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/modules.go
modules.go
package main import ( "archive/tar" "fmt" "io" "os" "path/filepath" "strings" ) func unTar(r io.Reader, targetBaseDir string) { funcName := funcName() tarBallReader := tar.NewReader(r) for { header, err := tarBallReader.Next() if err != nil { if err == io.EOF { break } Fatalf(funcName + "():...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/git.go
git.go
package main import ( "fmt" "os" "os/exec" "path/filepath" "runtime" "strconv" "strings" "sync" "time" "github.com/xorpaul/uiprogress" ) func resolveGitRepositories(uniqueGitModules map[string]GitModule) { defer timeTrack(time.Now(), funcName()) if len(uniqueGitModules) <= 0 { Debugf("uniqueGitModules[...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/g10k_test.go
g10k_test.go
package main import ( "fmt" "net/http" "net/http/httptest" "os" "os/exec" "path/filepath" "reflect" "runtime" "strconv" "strings" "syscall" "testing" "time" "github.com/davecgh/go-spew/spew" ) func removeTimestampsFromDeployfile(file string) { if fileExists(file) { dr := readDeployResultFile(file) ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
true
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/stale.go
stale.go
package main import ( "path/filepath" "strings" ) func purgeUnmanagedContent(allBasedirs map[string]bool, allEnvironments map[string]bool) { if !stringSliceContains(config.PurgeLevels, "deployment") { if !stringSliceContains(config.PurgeLevels, "environment") { // nothing allowed to purge return } } fo...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/helper.go
helper.go
package main import ( "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "io" "log" "os" "os/exec" "regexp" "runtime" "strconv" "strings" "syscall" "time" "github.com/fatih/color" "github.com/kballard/go-shellquote" "golang.org/x/sys/unix" ) var validationMessages []string // Debugf is a helper f...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/config.go
config.go
package main import ( "bufio" "os" "path/filepath" "reflect" "regexp" "strconv" "strings" "time" "gopkg.in/yaml.v2" ) var ( reModuledir = regexp.MustCompile(`^\s*(?:moduledir)\s+['\"]?([^'\"]+)['\"]?`) ) // readConfigfile creates the ConfigSettings struct from the g10k config file func readConfigfile(conf...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/g10k_puppetfile_test.go
g10k_puppetfile_test.go
package main import ( "fmt" "os" "os/exec" "regexp" "runtime" "strings" "syscall" "testing" "time" "github.com/davecgh/go-spew/spew" ) func equalPuppetfile(a, b Puppetfile) bool { if &a == &b { return true } if a.forgeBaseURL != b.forgeBaseURL || a.forgeCacheTTL != b.forgeCacheTTL || a.privateKey ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/puppetfile.go
puppetfile.go
package main import ( "fmt" "os" "path/filepath" "regexp" "strings" "sync" "time" "github.com/remeh/sizedwaitgroup" "github.com/xorpaul/uiprogress" "golang.org/x/term" ) // sourceSanityCheck is a validation function that checks if the given source has all necessary attributes (basedir, remote, SSH key exis...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/g10k.go
g10k.go
package main import ( "flag" "fmt" "os" "os/exec" "path/filepath" "strconv" "strings" "sync" "time" ) var ( debug bool verbose bool info bool quiet bool force bool usemove ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/forge.go
forge.go
package main import ( "crypto/md5" "crypto/sha256" "encoding/hex" "fmt" "io" "net/http" "os" "path/filepath" "strconv" "strings" "sync" "syscall" "time" "github.com/fatih/color" "github.com/klauspost/pgzip" "github.com/tidwall/gjson" "github.com/xorpaul/uiprogress" ) func checkDeprecation(fm ForgeMo...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
true
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/kballard/go-shellquote/unquote.go
vendor/github.com/kballard/go-shellquote/unquote.go
package shellquote import ( "bytes" "errors" "strings" "unicode/utf8" ) var ( UnterminatedSingleQuoteError = errors.New("Unterminated single-quoted string") UnterminatedDoubleQuoteError = errors.New("Unterminated double-quoted string") UnterminatedEscapeError = errors.New("Unterminated backslash-escape") ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/kballard/go-shellquote/quote.go
vendor/github.com/kballard/go-shellquote/quote.go
package shellquote import ( "bytes" "strings" "unicode/utf8" ) // Join quotes each argument and joins them with a space. // If passed to /bin/sh, the resulting string will be split back into the // original arguments. func Join(args ...string) string { var buf bytes.Buffer for i, arg := range args { if i != 0 ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/kballard/go-shellquote/doc.go
vendor/github.com/kballard/go-shellquote/doc.go
// Shellquote provides utilities for joining/splitting strings using sh's // word-splitting rules. package shellquote
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/xorpaul/uiprogress/progress.go
vendor/github.com/xorpaul/uiprogress/progress.go
package uiprogress import ( "fmt" "io" "os" "sync" "time" "github.com/gosuri/uilive" ) // Out is the default writer to render progress bars to var Out = os.Stdout // RefreshInterval in the default time duration to wait for refreshing the output var RefreshInterval = time.Millisecond * 10 // defaultProgress i...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/xorpaul/uiprogress/bar.go
vendor/github.com/xorpaul/uiprogress/bar.go
package uiprogress import ( "bytes" "errors" "fmt" "sync" "time" "github.com/gosuri/uiprogress/util/strutil" ) var ( // Fill is the default character representing completed progress Fill byte = '=' // Head is the default character that moves when progress is updated Head byte = '>' // Empty is the defau...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/xorpaul/uiprogress/doc.go
vendor/github.com/xorpaul/uiprogress/doc.go
// Package uiprogress is a library to render progress bars in terminal applications package uiprogress
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/mattn/go-colorable/colorable_windows.go
vendor/github.com/mattn/go-colorable/colorable_windows.go
//go:build windows && !appengine // +build windows,!appengine package colorable import ( "bytes" "io" "math" "os" "strconv" "strings" "sync" syscall "golang.org/x/sys/windows" "unsafe" "github.com/mattn/go-isatty" ) const ( foregroundBlue = 0x1 foregroundGreen = 0x2 foregroundRed = 0x4 ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/mattn/go-colorable/noncolorable.go
vendor/github.com/mattn/go-colorable/noncolorable.go
package colorable import ( "bytes" "io" ) // NonColorable holds writer but removes escape sequence. type NonColorable struct { out io.Writer } // NewNonColorable returns new instance of Writer which removes escape sequence from Writer. func NewNonColorable(w io.Writer) io.Writer { return &NonColorable{out: w} } ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/mattn/go-colorable/colorable_others.go
vendor/github.com/mattn/go-colorable/colorable_others.go
//go:build !windows || appengine // +build !windows appengine package colorable import ( "io" "os" _ "github.com/mattn/go-isatty" ) // NewColorable returns new instance of Writer which handles escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File ...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false
xorpaul/g10k
https://github.com/xorpaul/g10k/blob/9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c/vendor/github.com/mattn/go-isatty/isatty_bsd.go
vendor/github.com/mattn/go-isatty/isatty_bsd.go
//go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo // +build darwin freebsd openbsd netbsd dragonfly hurd // +build !appengine // +build !tinygo package isatty import "golang.org/x/sys/unix" // IsTerminal return true if the file descriptor is terminal. func IsTerminal(f...
go
Apache-2.0
9fa8bbc8ac9f0752fb27f92c4b657a78246ebd8c
2026-01-07T09:45:46.191611Z
false