Documentation ¶
Index ¶
- Constants
- type CurrentStats
- type IPSlot
- func (ips *IPSlot) CreateNetwork() error
- func (ips *IPSlot) HostCIDR() string
- func (ips *IPSlot) HostIP() string
- func (ips *IPSlot) HostMask() int
- func (ips *IPSlot) NamespaceID() string
- func (ips *IPSlot) NamespaceIP() string
- func (ips *IPSlot) Release(consulClient *consul.Client) error
- func (ipSlot *IPSlot) RemoveNetwork() 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 NetworkSlotPool
- type PostInitJSONBody
- type Sandbox
- func (s *Sandbox) CleanupAfterFCStop(ctx context.Context, tracer trace.Tracer, consul *consul.Client, dns *dns.DNS, ...)
- func (s *Sandbox) FcPid() int
- func (s *Sandbox) Healthcheck(ctx context.Context, alwaysReport bool)
- 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
- type SandboxStats
Constants ¶
View Source
const ( BuildIDName = "build_id" RootfsName = "rootfs.ext4" SnapfileName = "snapfile" MemfileName = "memfile" BuildDirName = "builds" EnvInstancesDirName = "env-instances" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentStats ¶
type IPSlot ¶
func (*IPSlot) CreateNetwork ¶
func (*IPSlot) HostIP ¶
IP address for the sandbox from the host machine. You can use it to make requests to the sandbox.
func (*IPSlot) NamespaceID ¶
func (*IPSlot) NamespaceIP ¶
func (*IPSlot) RemoveNetwork ¶
type MmdsMetadata ¶
type NetworkSlotPool ¶
type NetworkSlotPool struct {
// contains filtered or unexported fields
}
func NewNetworkSlotPool ¶
func NewNetworkSlotPool(size, returnedSize int) *NetworkSlotPool
type PostInitJSONBody ¶
type Sandbox ¶
type Sandbox struct { Sandbox *orchestrator.SandboxConfig StartedAt time.Time EndAt time.Time TraceID string Logger *logs.SandboxLogger // contains filtered or unexported fields }
func NewSandbox ¶
func NewSandbox( ctx context.Context, tracer trace.Tracer, consul *consul.Client, dns *dns.DNS, networkPool *NetworkSlotPool, config *orchestrator.SandboxConfig, traceID string, startedAt time.Time, endAt time.Time, logger *logs.SandboxLogger, ) (*Sandbox, error)
func (*Sandbox) CleanupAfterFCStop ¶
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
type SandboxStats ¶
type SandboxStats struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.