MCPcopy Create free account

hub / github.com/cybozu-go/sabakan / functions

Functions1,095 in github.com/cybozu-go/sabakan

↓ 592 callersMethodError
Error implements error interface.
web/apierror.go:13
↓ 186 callersMethodString
String implements fmt.Stringer interface.
machines.go:16
↓ 139 callersFunctionrenderError
(ctx context.Context, w http.ResponseWriter, e APIError)
web/responses.go:23
↓ 138 callersMethodRun
(ctx context.Context, ch chan<- struct{})
model.go:135
↓ 104 callersMethodServeHTTP
ServeHTTP implements http.Handler.ServeHTTP
web/server.go:102
↓ 84 callersMethodGet
(ctx context.Context, name string, h AssetHandler)
model.go:89
↓ 55 callersFunctionNewMachine
NewMachine creates a new machine instance.
machines.go:193
↓ 47 callersFunctionexitCode
(err error)
e2e/sabactl_test.go:31
↓ 45 callersFunctionNewModel
NewModel returns sabakan.Model
models/mock/driver.go:21
↓ 42 callersFunctionrunSabactl
(args ...string)
e2e/main_test.go:130
↓ 40 callersFunctiontestNewDriver
(t *testing.T)
models/etcd/main_test.go:62
↓ 36 callersFunctionInternalServerError
InternalServerError creates an APIError.
web/apierror.go:22
↓ 36 callersMethodName
()
dhcpd/interface.go:8
↓ 31 callersFunctionsetStateRequest
(serial, from string, td testTransition, handler *Server, t *testing.T)
web/state_test.go:319
↓ 27 callersFunctionnewTestServer
(m sabakan.Model)
web/main_test.go:15
↓ 24 callersFunctionBadRequest
BadRequest creates an APIError that describes what was bad in the request.
web/apierror.go:31
↓ 24 callersMethodString
()
pkg/sabakan-cryptsetup/cmd/meta.go:36
↓ 22 callersMethodWrite
(data []byte)
pkg/sabactl/cmd/logs.go:45
↓ 19 callersMethodaddLog
(ctx context.Context, ts time.Time, rev int64, cat sabakan.AuditCategory, instance, action, detail string)
models/etcd/log.go:21
↓ 18 callersMethodWriteHeader
(statusCode int)
web/server.go:44
↓ 18 callersFunctionexecAt
(host string, args ...string)
mtest/run_test.go:224
↓ 18 callersFunctionrenderJSON
(w http.ResponseWriter, data interface{}, status int)
web/responses.go:12
↓ 17 callersMethodRegister
(ctx context.Context, machines []*Machine)
model.go:36
↓ 17 callersMethodprocessDeferredGroup
(dg graphql.DeferredGroup)
gql/graph/generated/generated.go:466
↓ 16 callersMethodKey
Key return key string.
ipam.go:164
↓ 15 callersMethodIP
IP returns n-th IP address in the range.
ipam.go:159
↓ 15 callersMethodPutEncryptionKey
(ctx context.Context, serial string, diskByPath string, key []byte)
model.go:30
↓ 14 callersMethodPut
(ctx context.Context, name, contentType string, csum []byte, options map[string]string, r io.Reader)
model.go:88
↓ 14 callersMethodassetPut
(ctx context.Context, name, contentType string, csum []byte, options map[string]string, r io.Reader)
models/etcd/asset.go:131
↓ 14 callersFunctiontestNewHandler
(maskbits, gwoffset, leasemin uint)
dhcpd/util_test.go:28
↓ 13 callersMethodLeaseRange
LeaseRange returns a LeaseRange for the interface that receives DHCP requests. If no range can be assigned, this returns nil.
ipam.go:173
↓ 13 callersMethoddhcpLease
(ctx context.Context, ifaddr net.IP, mac net.HardwareAddr)
models/etcd/dhcp.go:270
↓ 13 callersFunctiontestInterface
()
dhcpd/util_test.go:55
↓ 12 callersFunctionaddPacketLog
(pkt *dhcp4.Packet, fields map[string]interface{})
dhcpd/log.go:132
↓ 12 callersMethodmarshalOString2ᚖstring
(ctx context.Context, sel ast.SelectionSet, v *string)
gql/graph/generated/generated.go:6684
↓ 12 callersFunctionnewTestImage
(kernel, initrd string)
models/etcd/image_test.go:19
↓ 12 callersMethodsendRequest
(ctx context.Context, method, p string, r io.Reader)
client/client.go:138
↓ 11 callersMethodfieldContext___Type_description
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3970
↓ 11 callersMethodfieldContext___Type_enumValues
(ctx context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4248
↓ 11 callersMethodfieldContext___Type_fields
(ctx context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4052
↓ 11 callersMethodfieldContext___Type_inputFields
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4310
↓ 11 callersMethodfieldContext___Type_isOneOf
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4430
↓ 11 callersMethodfieldContext___Type_kind
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3888
↓ 11 callersMethodfieldContext___Type_name
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:3929
↓ 11 callersMethodfieldContext___Type_specifiedByURL
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4011
↓ 11 callersMethodgetAssetDir
()
models/etcd/asset.go:20
↓ 11 callersFunctionsabactlSafe
(args ...string)
mtest/run_test.go:284
↓ 11 callersFunctiontestComparePacket
(t *testing.T, resp, expected *dhcp4.Packet)
dhcpd/util_test.go:79
↓ 11 callersFunctiontestRequestPacket
()
dhcpd/request_test.go:12
↓ 10 callersMethodExists
Exists returns true if image files referenced by "id" is stored in the directory.
models/etcd/image_dir.go:44
↓ 10 callersMethodRemove
Remove removes an asset.
models/etcd/asset_dir.go:41
↓ 10 callersMethodfieldContext___Type_interfaces
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4118
↓ 10 callersMethodfieldContext___Type_ofType
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4365
↓ 10 callersMethodfieldContext___Type_possibleTypes
(_ context.Context, field graphql.CollectedField)
gql/graph/generated/generated.go:4183
↓ 10 callersMethodgetIPAMConfig
()
models/etcd/ipam.go:39
↓ 10 callersMethodimageGetIndex
(ctx context.Context, os string)
models/etcd/image.go:72
↓ 10 callersFunctioninitializeTestData
(d *driver, ch <-chan struct{})
models/etcd/main_test.go:85
↓ 10 callersMethodmachineGet
(ctx context.Context, serial string)
models/etcd/machine.go:105
↓ 10 callersFunctiontestDiscoverPacket
()
dhcpd/discover_test.go:12
↓ 9 callersMethodPath
Path returns a path to an asset of id.
models/etcd/asset_dir.go:21
↓ 9 callersMethodSize
Size returns byte size of the image
models/etcd/image_dir.go:278
↓ 9 callersMethodUpload
(ctx context.Context, os, id string, r io.Reader)
model.go:67
↓ 9 callersMethodgetImageDir
(os string)
models/etcd/image.go:26
↓ 9 callersMethodgetLeaseUsage
(ctx context.Context, lrkey string)
models/etcd/dhcp.go:216
↓ 9 callersMethodhandleDiscover
(ctx context.Context, pkt *dhcp4.Packet, intf Interface)
dhcpd/discover.go:57
↓ 9 callersMethodmachineGetWithRev
(ctx context.Context, serial string)
models/etcd/machine.go:84
↓ 9 callersMethodmachineSetState
(ctx context.Context, serial string, state sabakan.MachineState)
models/etcd/machine.go:110
↓ 9 callersMethodmarshalNString2string
(ctx context.Context, sel ast.SelectionSet, v string)
gql/graph/generated/generated.go:6154
↓ 9 callersFunctionnewTestImage
(kernel, initrd string)
web/image_test.go:17
↓ 9 callersFunctionsetupMock
(ctx context.Context, serial string, t *testing.T)
web/state_test.go:329
↓ 9 callersFunctiontestImagePutIndex
(t *testing.T, d *driver, index sabakan.ImageIndex, osName string)
models/etcd/image_test.go:48
↓ 8 callersMethodExtract
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 callersMethodFind
Find an image whose ID is id. If no image can be found, this returns nil.
image.go:90
↓ 8 callersMethodMatch
Match returns true if all non-empty fields matches Machine
query.go:12
↓ 8 callersMethodPutTemplate
(ctx context.Context, role, id string, tmpl *IgnitionTemplate)
model.go:95
↓ 8 callersMethodSetState
(ctx context.Context, serial string, state MachineState)
model.go:38
↓ 8 callersMethodgetJSON
(ctx context.Context, p string, params map[string]string, data interface{})
client/client.go:84
↓ 8 callersMethodhandleRequest
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 callersMethodAppend
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 callersMethodDelete
(ctx context.Context, os, id string)
model.go:69
↓ 7 callersMethodGetConfig
()
model.go:49
↓ 7 callersMethodRemove
Remove removes an image entry from the index.
image.go:75
↓ 7 callersMethoddo
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 callersMethodimageServeFile
(ctx context.Context, os, filename string, f func(modtime time.Time, content io.ReadSeeker))
models/etcd/image.go:256
↓ 7 callersMethodimageUpload
(ctx context.Context, os, id string, r io.Reader)
models/etcd/image.go:132
↓ 7 callersMethodmachineRegister
(ctx context.Context, machines []*sabakan.Machine)
models/etcd/machine.go:16
↓ 7 callersMethodnewRequest
newRequest creates a new http.Request whose context is set to ctx. path will be prefixed by "/api/v1".
client/client.go:47
↓ 7 callersFunctionoptionLogKey
(n dhcp4.Option)
dhcpd/log.go:42
↓ 7 callersMethodupdateLeaseUsage
(ctx context.Context, lrkey string, lu *leaseUsage)
models/etcd/dhcp.go:247
↓ 6 callersMethodGetEncryptionKey
(ctx context.Context, serial string, diskByPath string)
model.go:29
↓ 6 callersMethodMachineSpec
()
gql/graph/generated/generated.go:44
↓ 6 callersMethodPutConfig
(ctx context.Context, config *IPAMConfig)
model.go:48
↓ 6 callersMethodSectorSize
SectorSize returns the physical block size of this disk.
pkg/sabakan-cryptsetup/cmd/disks.go:132
↓ 6 callersMethodSize512
Size512 returns the device size / 512.
pkg/sabakan-cryptsetup/cmd/disks.go:137
↓ 6 callersMethodassetGetInfo
(ctx context.Context, name string)
models/etcd/asset.go:123
↓ 6 callersMethodimageGetDeletedWithRev
(ctx context.Context, os string)
models/etcd/image.go:54
↓ 6 callersFunctionrunSabactlWithFile
(t *testing.T, data interface{}, args ...string)
e2e/sabactl_test.go:46
↓ 6 callersFunctiontestSetupConfig
(t *testing.T, d *driver, ch <-chan struct{})
models/etcd/dhcp_test.go:72
↓ 5 callersMethodCryptName
CryptName returns the crypt device name of this disk.
pkg/sabakan-cryptsetup/cmd/disks.go:117
↓ 5 callersMethodGenerateIP
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