Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Juice-Labs/Juice-Labs
/ functions
Functions
311 in github.com/Juice-Labs/Juice-Labs
⨍
Functions
311
◇
Types & classes
62
↓ 40 callers
Method
Set
(s string)
pkg/utilities/comma.go:23
↓ 26 callers
Function
Error
(v ...any)
pkg/logger/logger.go:146
↓ 25 callers
Method
String
()
pkg/utilities/comma.go:16
↓ 20 callers
Method
Close
()
cmd/controller/storage/storage.go:78
↓ 20 callers
Method
Next
()
cmd/controller/storage/storage.go:47
↓ 19 callers
Method
Ctx
()
pkg/task/task.go:21
↓ 17 callers
Method
Close
()
pkg/appmain/appmain.go:19
↓ 16 callers
Method
AddCreateEndpoint
(fn CreateEndpointFn)
pkg/server/server.go:63
↓ 16 callers
Function
getGaugeOpts
(name string)
cmd/controller/prometheus/frontend.go:42
↓ 14 callers
Method
Scan
(dest ...any)
cmd/controller/storage/postgres/postgres.go:29
↓ 13 callers
Method
Run
(group Group)
pkg/task/task.go:17
↓ 9 callers
Function
EnsureValidToken
EnsureValidToken is a middleware that will check the validity of our JWT.
pkg/middleware/jwt.go:35
↓ 8 callers
Method
Go
(string, Task)
pkg/task/task.go:23
↓ 7 callers
Function
Infof
(format string, v ...any)
pkg/logger/logger.go:176
↓ 7 callers
Method
Value
()
cmd/controller/storage/storage.go:48
↓ 7 callers
Function
checkAgent
(t *testing.T, db storage.Storage, check restapi.Agent)
cmd/controller/storage/tests/storage_test.go:147
↓ 6 callers
Function
Debugf
(format string, v ...any)
pkg/logger/logger.go:188
↓ 6 callers
Function
Panic
(v ...any)
pkg/logger/logger.go:138
↓ 6 callers
Method
Release
()
cmd/agent/app/agent.go:58
↓ 5 callers
Method
Cancel
()
pkg/task/task.go:22
↓ 5 callers
Method
GetAgentById
(id string)
cmd/controller/storage/storage.go:83
↓ 5 callers
Method
GoFn
(string, TaskFn)
pkg/task/task.go:24
↓ 5 callers
Function
Tracef
(format string, v ...any)
pkg/logger/logger.go:200
↓ 5 callers
Method
UpdateAgent
(update restapi.AgentUpdate)
cmd/controller/storage/storage.go:84
↓ 5 callers
Function
Warning
(v ...any)
pkg/logger/logger.go:158
↓ 5 callers
Function
compare
(t *testing.T, check T, against T, err error)
cmd/controller/storage/tests/storage_test.go:119
↓ 4 callers
Method
GetGpus
()
pkg/gpu/gpu.go:83
↓ 4 callers
Method
GetSessionById
(id string)
cmd/controller/storage/storage.go:89
↓ 4 callers
Method
Id
()
cmd/agent/session/session.go:61
↓ 4 callers
Method
Wait
()
pkg/task/task.go:28
↓ 4 callers
Function
defaultSessionRequirements
(gpuVram uint64)
cmd/controller/backend/backend_test.go:59
↓ 4 callers
Method
do
(ctx context.Context, method string, path string, contentType string, body io.Reader)
pkg/restapi/client.go:38
↓ 4 callers
Function
jsonReaderFromObject
(object T)
pkg/restapi/helpers.go:89
↓ 4 callers
Function
openMemdb
(t *testing.T)
cmd/controller/storage/tests/storage_test.go:20
↓ 4 callers
Function
openPostgres
(t *testing.T)
cmd/controller/storage/tests/storage_test.go:29
↓ 4 callers
Function
queueSession
(t *testing.T, db storage.Storage, requirements restapi.SessionRequirements)
cmd/controller/backend/backend_test.go:174
↓ 4 callers
Method
setExitStatus
(exitStatus string)
cmd/agent/session/session.go:81
↓ 3 callers
Method
AddConsumer
(consumer MetricsConsumerFn)
cmd/agent/gpu/metrics.go:40
↓ 3 callers
Method
Count
()
pkg/gpu/gpu.go:75
↓ 3 callers
Method
GetSessionWithContext
(ctx context.Context, id string)
pkg/restapi/client.go:90
↓ 3 callers
Function
Info
(v ...any)
pkg/logger/logger.go:170
↓ 3 callers
Function
NewDefaultIterator
(objects []T)
cmd/controller/storage/storage.go:56
↓ 3 callers
Function
OpenStorage
(ctx context.Context, connection string)
cmd/controller/storage/postgres/postgres.go:256
↓ 3 callers
Function
OpenStorage
(ctx context.Context)
cmd/controller/storage/memdb/memdb.go:43
↓ 3 callers
Method
RegisterAgent
(agent restapi.Agent)
cmd/controller/storage/storage.go:82
↓ 3 callers
Method
RequestSession
(requirements restapi.SessionRequirements)
cmd/controller/storage/storage.go:86
↓ 3 callers
Function
Run
(name string, version string, logic task.TaskFn)
pkg/appmain/appmain.go:31
↓ 3 callers
Method
SetAgentsMissingIfNotUpdatedFor
(duration time.Duration)
cmd/controller/storage/storage.go:96
↓ 3 callers
Function
TotalVramRequired
(requirements restapi.SessionRequirements)
cmd/controller/storage/storage.go:113
↓ 3 callers
Function
checkSession
(t *testing.T, db storage.Storage, check restapi.Session)
cmd/controller/storage/tests/storage_test.go:153
↓ 3 callers
Function
compare
(t *testing.T, check T, against T, err error)
cmd/controller/backend/backend_test.go:115
↓ 3 callers
Function
defaultAgent
(gpuVram uint64)
cmd/controller/backend/backend_test.go:37
↓ 3 callers
Method
get
(ctx context.Context, path string)
pkg/restapi/client.go:56
↓ 3 callers
Method
getSession
(id string)
cmd/agent/app/agent.go:178
↓ 3 callers
Function
newIterator
(ctx context.Context, statement *sql.Stmt, unmarshal unmarshalFn[T])
cmd/controller/storage/postgres/postgres.go:45
↓ 3 callers
Function
queueSession
(t *testing.T, db storage.Storage, requirements restapi.SessionRequirements)
cmd/controller/storage/tests/storage_test.go:178
↓ 3 callers
Function
registerAgent
(t *testing.T, db storage.Storage, agent restapi.Agent)
cmd/controller/backend/backend_test.go:161
↓ 3 callers
Function
strconvErr
The following was pulled largely from database/sql/convert.go:convertAssignRows
cmd/controller/storage/postgres/composite.go:115
↓ 3 callers
Method
update
(ctx context.Context)
cmd/controller/backend/backend.go:97
↓ 3 callers
Function
validateResponse
(response *http.Response)
pkg/restapi/helpers.go:72
↓ 2 callers
Method
AssignSession
(sessionId string, agentId string, gpus []restapi.SessionGpu)
cmd/controller/storage/storage.go:87
↓ 2 callers
Function
Errorf
(format string, v ...any)
pkg/logger/logger.go:152
↓ 2 callers
Method
Find
(requirements []restapi.GpuRequirements)
pkg/gpu/gpu.go:132
↓ 2 callers
Function
GenerateCertificate
()
pkg/crypto/certificate.go:18
↓ 2 callers
Method
GetAgentWithContext
(ctx context.Context, id string)
pkg/restapi/client.go:156
↓ 2 callers
Method
GetAgents
For Testing
cmd/controller/storage/storage.go:92
↓ 2 callers
Method
GetPciBusString
()
pkg/gpu/gpu.go:104
↓ 2 callers
Method
GetQueuedSessionById
(id string)
cmd/controller/storage/storage.go:90
↓ 2 callers
Method
GetQueuedSessionsIterator
()
cmd/controller/storage/storage.go:94
↓ 2 callers
Function
NewBackend
(storage storage.Storage)
cmd/controller/backend/backend.go:22
↓ 2 callers
Function
NewPCIAddressFromString
(pciIdentifier string)
pkg/gpu/pci.go:20
↓ 2 callers
Function
NewServer
(address string, tlsConfig *tls.Config)
pkg/server/server.go:36
↓ 2 callers
Method
Port
()
pkg/server/server.go:59
↓ 2 callers
Function
ReadBodyAsBytes
(header http.Header, statusCode int, body io.ReadCloser, contentLength int64)
pkg/net/http.go:176
↓ 2 callers
Method
RegisterAgentWithContext
(ctx context.Context, agent Agent)
pkg/restapi/client.go:189
↓ 2 callers
Method
RemoveMissingAgentsIfNotUpdatedFor
(duration time.Duration)
cmd/controller/storage/storage.go:97
↓ 2 callers
Method
Select
(chosenGpus []restapi.SessionGpu)
pkg/gpu/gpu.go:186
↓ 2 callers
Method
SetCreateEndpoint
(name string, fn CreateEndpointFn)
pkg/server/server.go:67
↓ 2 callers
Method
Start
(group task.Group)
cmd/agent/session/session.go:111
↓ 2 callers
Method
StatusWithContext
(ctx context.Context)
pkg/restapi/client.go:76
↓ 2 callers
Function
TotalVram
(gpus []restapi.Gpu)
cmd/controller/storage/storage.go:104
↓ 2 callers
Method
UpdateAgentWithContext
(ctx context.Context, update AgentUpdate)
pkg/restapi/client.go:170
↓ 2 callers
Method
changeState
(newState string)
cmd/agent/session/session.go:87
↓ 2 callers
Function
defaultAgent
(gpuVram uint64)
cmd/controller/storage/tests/storage_test.go:38
↓ 2 callers
Function
defaultSessionRequirements
(gpuVram uint64)
cmd/controller/storage/tests/storage_test.go:63
↓ 2 callers
Method
doUrl
(ctx context.Context, method string, url url.URL, contentType string, body io.Reader)
pkg/restapi/client.go:21
↓ 2 callers
Method
ensureCapacity
(newElements int)
pkg/utilities/linkedList.go:64
↓ 2 callers
Function
isSubset
(set, subset map[string]string)
cmd/controller/backend/backend.go:48
↓ 2 callers
Function
parseBody
(body io.Reader, length int64)
pkg/restapi/helpers.go:14
↓ 2 callers
Function
parseResponse
(response *http.Response, contentType string)
pkg/restapi/helpers.go:30
↓ 2 callers
Function
parseStringResponse
(response *http.Response)
pkg/restapi/helpers.go:63
↓ 2 callers
Method
popFreeNode
()
pkg/utilities/linkedList.go:94
↓ 2 callers
Method
postWithJson
(ctx context.Context, path string, body io.Reader)
pkg/restapi/client.go:64
↓ 2 callers
Method
putWithJson
(ctx context.Context, path string, body io.Reader)
pkg/restapi/client.go:68
↓ 2 callers
Function
registerAgent
(t *testing.T, db storage.Storage, agent restapi.Agent)
cmd/controller/storage/tests/storage_test.go:165
↓ 2 callers
Method
retrieveRows
()
cmd/controller/storage/postgres/postgres.go:65
↓ 2 callers
Method
run
(label string, task TaskFn)
pkg/task/task.go:93
↓ 2 callers
Method
runSession
(group task.Group, id string, juicePath string, version string, gpus *gpu.SelectedGpuSet)
cmd/agent/app/agent.go:222
↓ 2 callers
Function
setupIpc
()
cmd/agent/session/session_linux.go:14
↓ 2 callers
Function
unmarshalSession
(row sqlRow)
cmd/controller/storage/postgres/postgres.go:199
next →
1–100 of 311, ranked by callers