Documentation ¶
Index ¶
- Constants
- func MockInstance(envID, instanceID string, dns *dns.DNS, keepAlive time.Duration)
- func Must[T any](obj T, err error) T
- type IPSlot
- func (ips *IPSlot) CreateNetwork(ctx context.Context, tracer trace.Tracer) error
- func (ips *IPSlot) HostIP() string
- func (ips *IPSlot) HostSnapshotCIDR() string
- func (ips *IPSlot) HostSnapshotIP() string
- func (ips *IPSlot) HostSnapshotMask() int
- func (ips *IPSlot) NamespaceID() string
- func (ips *IPSlot) NamespaceSnapshotIP() string
- func (ips *IPSlot) Release(ctx context.Context, tracer trace.Tracer, consulClient *consul.Client) error
- func (ipSlot *IPSlot) RemoveNetwork(ctx context.Context, tracer trace.Tracer) error
- func (ips *IPSlot) TapCIDR() string
- func (ips *IPSlot) TapIP() string
- func (ips *IPSlot) TapMask() int
- func (ips *IPSlot) TapName() string
- func (ips *IPSlot) VMask() int
- func (ips *IPSlot) VethCIDR() string
- func (ips *IPSlot) VethIP() string
- func (ips *IPSlot) VethName() string
- func (ips *IPSlot) VpeerCIDR() string
- func (ips *IPSlot) VpeerIP() string
- func (ips *IPSlot) VpeerName() string
- type MmdsMetadata
- type PostInitJSONBody
- type Sandbox
- func (s *Sandbox) CleanupAfterFCStop(ctx context.Context, tracer trace.Tracer, consul *consul.Client, dns *dns.DNS, ...)
- func (s *Sandbox) EnsureClockSync(ctx context.Context, port int64) error
- func (s *Sandbox) FcPid() int
- func (s *Sandbox) SlotIdx() int
- func (s *Sandbox) Stop(ctx context.Context, tracer trace.Tracer) error
- func (s *Sandbox) Wait(ctx context.Context, tracer trace.Tracer) error
- type SandboxFiles
Constants ¶
View Source
const ( BuildIDName = "build_id" RootfsName = "rootfs.ext4" SnapfileName = "snapfile" MemfileName = "memfile" BuildDirName = "builds" EnvInstancesDirName = "env-instances" )
View Source
const ( // This is the maximum number of IP addresses that can be allocated. IPSlotsSize = octetSize * octetSize HostSnapshotMask = 32 VMask = 30 TapMask = 30 )
We are using a more debuggable IP address allocation for now that only covers 255 addresses.
Variables ¶
This section is empty.
Functions ¶
func MockInstance ¶
Types ¶
type IPSlot ¶
func (*IPSlot) CreateNetwork ¶
func (*IPSlot) HostSnapshotCIDR ¶
func (*IPSlot) HostSnapshotIP ¶
func (*IPSlot) HostSnapshotMask ¶
func (*IPSlot) NamespaceID ¶
func (*IPSlot) NamespaceSnapshotIP ¶
func (*IPSlot) RemoveNetwork ¶
type MmdsMetadata ¶
type PostInitJSONBody ¶
type Sandbox ¶
type Sandbox struct { Sandbox *orchestrator.SandboxConfig StartedAt time.Time EndAt time.Time TraceID string // contains filtered or unexported fields }
func NewSandbox ¶
func (*Sandbox) CleanupAfterFCStop ¶
func (*Sandbox) EnsureClockSync ¶
type SandboxFiles ¶
type SandboxFiles struct { UFFDSocketPath *string EnvPath string BuildDirPath string EnvInstancePath string SocketPath string KernelDirPath string KernelMountDirPath string FirecrackerBinaryPath string }
func (*SandboxFiles) MemfilePath ¶
func (f *SandboxFiles) MemfilePath() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.