Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cybozu-go/sabakan
/ functions
Functions
1,095 in github.com/cybozu-go/sabakan
⨍
Functions
1,095
◇
Types & classes
129
↓ 592 callers
Method
Error
Error implements error interface.
web/apierror.go:13
↓ 186 callers
Method
String
String implements fmt.Stringer interface.
machines.go:16
↓ 139 callers
Function
renderError
(ctx context.Context, w http.ResponseWriter, e APIError)
web/responses.go:23
↓ 138 callers
Method
Run
(ctx context.Context, ch chan<- struct{})
model.go:135
↓ 104 callers
Method
ServeHTTP
ServeHTTP implements http.Handler.ServeHTTP
web/server.go:102
↓ 84 callers
Method
Get
(ctx context.Context, name string, h AssetHandler)
model.go:89
↓ 55 callers
Function
NewMachine
NewMachine creates a new machine instance.
machines.go:193
↓ 47 callers
Function
exitCode
(err error)
e2e/sabactl_test.go:31
↓ 45 callers
Function
NewModel
NewModel returns sabakan.Model
models/mock/driver.go:21
↓ 42 callers
Function
runSabactl
(args ...string)
e2e/main_test.go:130
↓ 40 callers
Function
testNewDriver
(t *testing.T)
models/etcd/main_test.go:62
↓ 36 callers
Function
InternalServerError
InternalServerError creates an APIError.
web/apierror.go:22
↓ 36 callers
Method
Name
()
dhcpd/interface.go:8
↓ 31 callers
Function
setStateRequest
(serial, from string, td testTransition, handler *Server, t *testing.T)
web/state_test.go:319
↓ 27 callers
Function
newTestServer
(m sabakan.Model)
web/main_test.go:15
↓ 24 callers
Function
BadRequest
BadRequest creates an APIError that describes what was bad in the request.
web/apierror.go:31
↓ 24 callers
Method
String
()
pkg/sabakan-cryptsetup/cmd/meta.go:36
↓ 22 callers
Method
Write
(data []byte)
pkg/sabactl/cmd/logs.go:45
↓ 19 callers
Method
addLog
(ctx context.Context, ts time.Time, rev int64, cat sabakan.AuditCategory, instance, action, detail string)
models/etcd/log.go:21
↓ 18 callers
Method
WriteHeader
(statusCode int)
web/server.go:44
↓ 18 callers
Function
execAt
(host string, args ...string)
mtest/run_test.go:224
↓ 18 callers
Function
renderJSON
(w http.ResponseWriter, data interface{}, status int)
web/responses.go:12
↓ 17 callers
Method
Register
(ctx context.Context, machines []*Machine)
model.go:36
↓ 17 callers
Method
processDeferredGroup
(dg graphql.DeferredGroup)
gql/graph/generated/generated.go:466
↓ 16 callers
Method
Key
Key return key string.
ipam.go:164
↓ 15 callers
Method
IP
IP returns n-th IP address in the range.
ipam.go:159
↓ 15 callers
Method
PutEncryptionKey
(ctx context.Context, serial string, diskByPath string, key []byte)
model.go:30
↓ 14 callers
Method
Put
(ctx context.Context, name, contentType string, csum []byte, options map[string]string, r io.Reader)
model.go:88
↓ 14 callers
Method
assetPut
(ctx context.Context, name, contentType string, csum []byte, options map[string]string, r io.Reader)
models/etcd/asset.go:131
↓ 14 callers
Function
testNewHandler
(maskbits, gwoffset, leasemin uint)
dhcpd/util_test.go:28
↓ 13 callers
Method
LeaseRange
LeaseRange returns a LeaseRange for the interface that receives DHCP requests. If no range can be assigned, this returns nil.
ipam.go:173
↓ 13 callers
Method
dhcpLease
(ctx context.Context, ifaddr net.IP, mac net.HardwareAddr)
models/etcd/dhcp.go:270
↓ 13 callers
Function
testInterface
()
dhcpd/util_test.go:55
↓ 12 callers
Function
addPacketLog
(pkt *dhcp4.Packet, fields map[string]interface{})
dhcpd/log.go:132
↓ 12 callers
Method
marshalOString2ᚖstring
(ctx context.Context, sel ast.SelectionSet, v *string)
gql/graph/generated/generated.go:6684
↓ 12 callers
Function
newTestImage
(kernel, initrd string)
models/etcd/image_test.go:19
↓ 12 callers
Method
sendRequest
(ctx context.Context, method, p string, r io.Reader)
client/client.go:138
↓ 11 callers
Method
fieldContext___Type_description
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3970
↓ 11 callers
Method
fieldContext___Type_enumValues
(ctx context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4248
↓ 11 callers
Method
fieldContext___Type_fields
(ctx context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4052
↓ 11 callers
Method
fieldContext___Type_inputFields
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4310
↓ 11 callers
Method
fieldContext___Type_isOneOf
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4430
↓ 11 callers
Method
fieldContext___Type_kind
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3888
↓ 11 callers
Method
fieldContext___Type_name
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3929
↓ 11 callers
Method
fieldContext___Type_specifiedByURL
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4011
↓ 11 callers
Method
getAssetDir
()
models/etcd/asset.go:20
↓ 11 callers
Function
sabactlSafe
(args ...string)
mtest/run_test.go:284
↓ 11 callers
Function
testComparePacket
(t *testing.T, resp, expected *dhcp4.Packet)
dhcpd/util_test.go:79
↓ 11 callers
Function
testRequestPacket
()
dhcpd/request_test.go:12
↓ 10 callers
Method
Exists
Exists returns true if image files referenced by "id" is stored in the directory.
models/etcd/image_dir.go:44
↓ 10 callers
Method
Remove
Remove removes an asset.
models/etcd/asset_dir.go:41
↓ 10 callers
Method
fieldContext___Type_interfaces
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4118
↓ 10 callers
Method
fieldContext___Type_ofType
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4365
↓ 10 callers
Method
fieldContext___Type_possibleTypes
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4183
↓ 10 callers
Method
getIPAMConfig
()
models/etcd/ipam.go:39
↓ 10 callers
Method
imageGetIndex
(ctx context.Context, os string)
models/etcd/image.go:72
↓ 10 callers
Function
initializeTestData
(d *driver, ch <-chan struct{})
models/etcd/main_test.go:85
↓ 10 callers
Method
machineGet
(ctx context.Context, serial string)
models/etcd/machine.go:105
↓ 10 callers
Function
testDiscoverPacket
()
dhcpd/discover_test.go:12
↓ 9 callers
Method
Path
Path returns a path to an asset of id.
models/etcd/asset_dir.go:21
↓ 9 callers
Method
Size
Size returns byte size of the image
models/etcd/image_dir.go:278
↓ 9 callers
Method
Upload
(ctx context.Context, os, id string, r io.Reader)
model.go:67
↓ 9 callers
Method
getImageDir
(os string)
models/etcd/image.go:26
↓ 9 callers
Method
getLeaseUsage
(ctx context.Context, lrkey string)
models/etcd/dhcp.go:216
↓ 9 callers
Method
handleDiscover
(ctx context.Context, pkt *dhcp4.Packet, intf Interface)
dhcpd/discover.go:57
↓ 9 callers
Method
machineGetWithRev
(ctx context.Context, serial string)
models/etcd/machine.go:84
↓ 9 callers
Method
machineSetState
(ctx context.Context, serial string, state sabakan.MachineState)
models/etcd/machine.go:110
↓ 9 callers
Method
marshalNString2string
(ctx context.Context, sel ast.SelectionSet, v string)
gql/graph/generated/generated.go:6154
↓ 9 callers
Function
newTestImage
(kernel, initrd string)
web/image_test.go:17
↓ 9 callers
Function
setupMock
(ctx context.Context, serial string, t *testing.T)
web/state_test.go:329
↓ 9 callers
Function
testImagePutIndex
(t *testing.T, d *driver, index sabakan.ImageIndex, osName string)
models/etcd/image_test.go:48
↓ 8 callers
Method
Extract
Extract reads tar archive from "r" to extract files shown in "members". Extracted files are finally stored under "id" directory. If the tar archive c
models/etcd/image_dir.go:127
↓ 8 callers
Method
Find
Find an image whose ID is id. If no image can be found, this returns nil.
image.go:90
↓ 8 callers
Method
Match
Match returns true if all non-empty fields matches Machine
query.go:12
↓ 8 callers
Method
PutTemplate
(ctx context.Context, role, id string, tmpl *IgnitionTemplate)
model.go:95
↓ 8 callers
Method
SetState
(ctx context.Context, serial string, state MachineState)
model.go:38
↓ 8 callers
Method
getJSON
(ctx context.Context, p string, params map[string]string, data interface{})
client/client.go:84
↓ 8 callers
Method
handleRequest
DHCPREQUEST has three use-cases. 1. accept offer from a server. 2. confirm previously assigned IP address. 3. renew/rebind lease for an already receiv
dhcpd/request.go:17
↓ 7 callers
Method
Append
Append appends a new *Image to the index. If the index has MaxImages images, the oldest image will be discarded. ID of discarded images are returned
image.go:50
↓ 7 callers
Method
Delete
(ctx context.Context, os, id string)
model.go:69
↓ 7 callers
Method
GetConfig
()
model.go:49
↓ 7 callers
Method
Remove
Remove removes an image entry from the index.
image.go:75
↓ 7 callers
Method
do
do calls http.Client.Do and processes errors. This returns non-nil *http.Response only when the server returns 2xx status code.
client/client.go:57
↓ 7 callers
Method
imageServeFile
(ctx context.Context, os, filename string, f func(modtime time.Time, content io.ReadSeeker))
models/etcd/image.go:256
↓ 7 callers
Method
imageUpload
(ctx context.Context, os, id string, r io.Reader)
models/etcd/image.go:132
↓ 7 callers
Method
machineRegister
(ctx context.Context, machines []*sabakan.Machine)
models/etcd/machine.go:16
↓ 7 callers
Method
newRequest
newRequest creates a new http.Request whose context is set to ctx. path will be prefixed by "/api/v1".
client/client.go:47
↓ 7 callers
Function
optionLogKey
(n dhcp4.Option)
dhcpd/log.go:42
↓ 7 callers
Method
updateLeaseUsage
(ctx context.Context, lrkey string, lu *leaseUsage)
models/etcd/dhcp.go:247
↓ 6 callers
Method
GetEncryptionKey
(ctx context.Context, serial string, diskByPath string)
model.go:29
↓ 6 callers
Method
MachineSpec
()
gql/graph/generated/generated.go:44
↓ 6 callers
Method
PutConfig
(ctx context.Context, config *IPAMConfig)
model.go:48
↓ 6 callers
Method
SectorSize
SectorSize returns the physical block size of this disk.
pkg/sabakan-cryptsetup/cmd/disks.go:132
↓ 6 callers
Method
Size512
Size512 returns the device size / 512.
pkg/sabakan-cryptsetup/cmd/disks.go:137
↓ 6 callers
Method
assetGetInfo
(ctx context.Context, name string)
models/etcd/asset.go:123
↓ 6 callers
Method
imageGetDeletedWithRev
(ctx context.Context, os string)
models/etcd/image.go:54
↓ 6 callers
Function
runSabactlWithFile
(t *testing.T, data interface{}, args ...string)
e2e/sabactl_test.go:46
↓ 6 callers
Function
testSetupConfig
(t *testing.T, d *driver, ch <-chan struct{})
models/etcd/dhcp_test.go:72
↓ 5 callers
Method
CryptName
CryptName returns the crypt device name of this disk.
pkg/sabakan-cryptsetup/cmd/disks.go:117
↓ 5 callers
Method
GenerateIP
GenerateIP generates IP addresses for a machine. Generated IP addresses are stored in mc.
ipam.go:93
next →
1–100 of 1,095, ranked by callers