Documentation ¶
Overview ¶
Package types is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
CreateContainerRequest CreateContainerResponse SignalRequest SignalResponse AddProcessRequest User AddProcessResponse CreateCheckpointRequest CreateCheckpointResponse DeleteCheckpointRequest DeleteCheckpointResponse ListCheckpointRequest Checkpoint ListCheckpointResponse StateRequest ContainerState Process Container Machine StateResponse UpdateContainerRequest UpdateContainerResponse EventsRequest Event NetworkStats CpuUsage ThrottlingData CpuStats MemoryData MemoryStats BlkioStatsEntry BlkioStats HugetlbStats CgroupStats Stats StatsRequest
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type API_EventsClient
- type API_EventsServer
- type API_GetStatsClient
- type API_GetStatsServer
- type AddProcessRequest
- type AddProcessResponse
- type BlkioStats
- func (*BlkioStats) Descriptor() ([]byte, []int)
- func (m *BlkioStats) GetIoMergedRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoQueuedRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoServiceBytesRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoServiceTimeRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoServicedRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoTimeRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetIoWaitTimeRecursive() []*BlkioStatsEntry
- func (m *BlkioStats) GetSectorsRecursive() []*BlkioStatsEntry
- func (*BlkioStats) ProtoMessage()
- func (m *BlkioStats) Reset()
- func (m *BlkioStats) String() string
- type BlkioStatsEntry
- type CgroupStats
- func (*CgroupStats) Descriptor() ([]byte, []int)
- func (m *CgroupStats) GetBlkioStats() *BlkioStats
- func (m *CgroupStats) GetCpuStats() *CpuStats
- func (m *CgroupStats) GetHugetlbStats() map[string]*HugetlbStats
- func (m *CgroupStats) GetMemoryStats() *MemoryStats
- func (*CgroupStats) ProtoMessage()
- func (m *CgroupStats) Reset()
- func (m *CgroupStats) String() string
- type Checkpoint
- type Container
- type ContainerState
- type CpuStats
- type CpuUsage
- type CreateCheckpointRequest
- type CreateCheckpointResponse
- type CreateContainerRequest
- type CreateContainerResponse
- type DeleteCheckpointRequest
- type DeleteCheckpointResponse
- type Event
- type EventsRequest
- type HugetlbStats
- type ListCheckpointRequest
- type ListCheckpointResponse
- type Machine
- type MemoryData
- type MemoryStats
- func (*MemoryStats) Descriptor() ([]byte, []int)
- func (m *MemoryStats) GetKernelUsage() *MemoryData
- func (m *MemoryStats) GetStats() map[string]uint64
- func (m *MemoryStats) GetSwapUsage() *MemoryData
- func (m *MemoryStats) GetUsage() *MemoryData
- func (*MemoryStats) ProtoMessage()
- func (m *MemoryStats) Reset()
- func (m *MemoryStats) String() string
- type NetworkStats
- type Process
- type SignalRequest
- type SignalResponse
- type StateRequest
- type StateResponse
- type Stats
- type StatsRequest
- type ThrottlingData
- type UpdateContainerRequest
- type UpdateContainerResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc.CallOption) (*UpdateContainerResponse, error) Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) AddProcess(ctx context.Context, in *AddProcessRequest, opts ...grpc.CallOption) (*AddProcessResponse, error) CreateCheckpoint(ctx context.Context, in *CreateCheckpointRequest, opts ...grpc.CallOption) (*CreateCheckpointResponse, error) DeleteCheckpoint(ctx context.Context, in *DeleteCheckpointRequest, opts ...grpc.CallOption) (*DeleteCheckpointResponse, error) ListCheckpoint(ctx context.Context, in *ListCheckpointRequest, opts ...grpc.CallOption) (*ListCheckpointResponse, error) State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) Events(ctx context.Context, in *EventsRequest, opts ...grpc.CallOption) (API_EventsClient, error) GetStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (API_GetStatsClient, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error) UpdateContainer(context.Context, *UpdateContainerRequest) (*UpdateContainerResponse, error) Signal(context.Context, *SignalRequest) (*SignalResponse, error) AddProcess(context.Context, *AddProcessRequest) (*AddProcessResponse, error) CreateCheckpoint(context.Context, *CreateCheckpointRequest) (*CreateCheckpointResponse, error) DeleteCheckpoint(context.Context, *DeleteCheckpointRequest) (*DeleteCheckpointResponse, error) ListCheckpoint(context.Context, *ListCheckpointRequest) (*ListCheckpointResponse, error) State(context.Context, *StateRequest) (*StateResponse, error) Events(*EventsRequest, API_EventsServer) error GetStats(*StatsRequest, API_GetStatsServer) error }
type API_EventsClient ¶
type API_EventsClient interface { Recv() (*Event, error) grpc.ClientStream }
type API_EventsServer ¶
type API_EventsServer interface { Send(*Event) error grpc.ServerStream }
type API_GetStatsClient ¶
type API_GetStatsClient interface { Recv() (*Stats, error) grpc.ClientStream }
type API_GetStatsServer ¶
type API_GetStatsServer interface { Send(*Stats) error grpc.ServerStream }
type AddProcessRequest ¶
type AddProcessRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Terminal bool `protobuf:"varint,2,opt,name=terminal" json:"terminal,omitempty"` User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` Args []string `protobuf:"bytes,4,rep,name=args" json:"args,omitempty"` Env []string `protobuf:"bytes,5,rep,name=env" json:"env,omitempty"` Cwd string `protobuf:"bytes,6,opt,name=cwd" json:"cwd,omitempty"` Stdin string `protobuf:"bytes,7,opt,name=stdin" json:"stdin,omitempty"` Stdout string `protobuf:"bytes,8,opt,name=stdout" json:"stdout,omitempty"` Stderr string `protobuf:"bytes,9,opt,name=stderr" json:"stderr,omitempty"` Console string `protobuf:"bytes,10,opt,name=console" json:"console,omitempty"` }
func (*AddProcessRequest) Descriptor ¶
func (*AddProcessRequest) Descriptor() ([]byte, []int)
func (*AddProcessRequest) GetUser ¶
func (m *AddProcessRequest) GetUser() *User
func (*AddProcessRequest) ProtoMessage ¶
func (*AddProcessRequest) ProtoMessage()
func (*AddProcessRequest) Reset ¶
func (m *AddProcessRequest) Reset()
func (*AddProcessRequest) String ¶
func (m *AddProcessRequest) String() string
type AddProcessResponse ¶
type AddProcessResponse struct {
Pid uint32 `protobuf:"varint,1,opt,name=pid" json:"pid,omitempty"`
}
func (*AddProcessResponse) Descriptor ¶
func (*AddProcessResponse) Descriptor() ([]byte, []int)
func (*AddProcessResponse) ProtoMessage ¶
func (*AddProcessResponse) ProtoMessage()
func (*AddProcessResponse) Reset ¶
func (m *AddProcessResponse) Reset()
func (*AddProcessResponse) String ¶
func (m *AddProcessResponse) String() string
type BlkioStats ¶
type BlkioStats struct { IoServiceBytesRecursive []*BlkioStatsEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive" json:"io_service_bytes_recursive,omitempty"` IoServicedRecursive []*BlkioStatsEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive" json:"io_serviced_recursive,omitempty"` IoQueuedRecursive []*BlkioStatsEntry `protobuf:"bytes,3,rep,name=io_queued_recursive" json:"io_queued_recursive,omitempty"` IoServiceTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive" json:"io_service_time_recursive,omitempty"` IoWaitTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive" json:"io_wait_time_recursive,omitempty"` IoMergedRecursive []*BlkioStatsEntry `protobuf:"bytes,6,rep,name=io_merged_recursive" json:"io_merged_recursive,omitempty"` IoTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,7,rep,name=io_time_recursive" json:"io_time_recursive,omitempty"` SectorsRecursive []*BlkioStatsEntry `protobuf:"bytes,8,rep,name=sectors_recursive" json:"sectors_recursive,omitempty"` }
func (*BlkioStats) Descriptor ¶
func (*BlkioStats) Descriptor() ([]byte, []int)
func (*BlkioStats) GetIoMergedRecursive ¶
func (m *BlkioStats) GetIoMergedRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoQueuedRecursive ¶
func (m *BlkioStats) GetIoQueuedRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoServiceBytesRecursive ¶
func (m *BlkioStats) GetIoServiceBytesRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoServiceTimeRecursive ¶
func (m *BlkioStats) GetIoServiceTimeRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoServicedRecursive ¶
func (m *BlkioStats) GetIoServicedRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoTimeRecursive ¶
func (m *BlkioStats) GetIoTimeRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetIoWaitTimeRecursive ¶
func (m *BlkioStats) GetIoWaitTimeRecursive() []*BlkioStatsEntry
func (*BlkioStats) GetSectorsRecursive ¶
func (m *BlkioStats) GetSectorsRecursive() []*BlkioStatsEntry
func (*BlkioStats) ProtoMessage ¶
func (*BlkioStats) ProtoMessage()
func (*BlkioStats) Reset ¶
func (m *BlkioStats) Reset()
func (*BlkioStats) String ¶
func (m *BlkioStats) String() string
type BlkioStatsEntry ¶
type BlkioStatsEntry struct { Major uint64 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"` Minor uint64 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"` Op string `protobuf:"bytes,3,opt,name=op" json:"op,omitempty"` Value uint64 `protobuf:"varint,4,opt,name=value" json:"value,omitempty"` }
func (*BlkioStatsEntry) Descriptor ¶
func (*BlkioStatsEntry) Descriptor() ([]byte, []int)
func (*BlkioStatsEntry) ProtoMessage ¶
func (*BlkioStatsEntry) ProtoMessage()
func (*BlkioStatsEntry) Reset ¶
func (m *BlkioStatsEntry) Reset()
func (*BlkioStatsEntry) String ¶
func (m *BlkioStatsEntry) String() string
type CgroupStats ¶
type CgroupStats struct { CpuStats *CpuStats `protobuf:"bytes,1,opt,name=cpu_stats" json:"cpu_stats,omitempty"` MemoryStats *MemoryStats `protobuf:"bytes,2,opt,name=memory_stats" json:"memory_stats,omitempty"` BlkioStats *BlkioStats `protobuf:"bytes,3,opt,name=blkio_stats" json:"blkio_stats,omitempty"` HugetlbStats map[string]*HugetlbStats `` /* 146-byte string literal not displayed */ }
func (*CgroupStats) Descriptor ¶
func (*CgroupStats) Descriptor() ([]byte, []int)
func (*CgroupStats) GetBlkioStats ¶
func (m *CgroupStats) GetBlkioStats() *BlkioStats
func (*CgroupStats) GetCpuStats ¶
func (m *CgroupStats) GetCpuStats() *CpuStats
func (*CgroupStats) GetHugetlbStats ¶
func (m *CgroupStats) GetHugetlbStats() map[string]*HugetlbStats
func (*CgroupStats) GetMemoryStats ¶
func (m *CgroupStats) GetMemoryStats() *MemoryStats
func (*CgroupStats) ProtoMessage ¶
func (*CgroupStats) ProtoMessage()
func (*CgroupStats) Reset ¶
func (m *CgroupStats) Reset()
func (*CgroupStats) String ¶
func (m *CgroupStats) String() string
type Checkpoint ¶
type Checkpoint struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Exit bool `protobuf:"varint,2,opt,name=exit" json:"exit,omitempty"` Tcp bool `protobuf:"varint,3,opt,name=tcp" json:"tcp,omitempty"` UnixSockets bool `protobuf:"varint,4,opt,name=unixSockets" json:"unixSockets,omitempty"` Shell bool `protobuf:"varint,5,opt,name=shell" json:"shell,omitempty"` }
func (*Checkpoint) Descriptor ¶
func (*Checkpoint) Descriptor() ([]byte, []int)
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) Reset ¶
func (m *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (m *Checkpoint) String() string
type Container ¶
type Container struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` BundlePath string `protobuf:"bytes,3,opt,name=bundlePath" json:"bundlePath,omitempty"` Processes []*Process `protobuf:"bytes,4,rep,name=processes" json:"processes,omitempty"` Status string `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"` }
func (*Container) Descriptor ¶
func (*Container) GetProcesses ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
type ContainerState ¶
type ContainerState struct {
Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}
func (*ContainerState) Descriptor ¶
func (*ContainerState) Descriptor() ([]byte, []int)
func (*ContainerState) ProtoMessage ¶
func (*ContainerState) ProtoMessage()
func (*ContainerState) Reset ¶
func (m *ContainerState) Reset()
func (*ContainerState) String ¶
func (m *ContainerState) String() string
type CpuStats ¶
type CpuStats struct { CpuUsage *CpuUsage `protobuf:"bytes,1,opt,name=cpu_usage" json:"cpu_usage,omitempty"` ThrottlingData *ThrottlingData `protobuf:"bytes,2,opt,name=throttling_data" json:"throttling_data,omitempty"` }
func (*CpuStats) Descriptor ¶
func (*CpuStats) GetCpuUsage ¶
func (*CpuStats) GetThrottlingData ¶
func (m *CpuStats) GetThrottlingData() *ThrottlingData
func (*CpuStats) ProtoMessage ¶
func (*CpuStats) ProtoMessage()
type CpuUsage ¶
type CpuUsage struct { TotalUsage uint64 `protobuf:"varint,1,opt,name=total_usage" json:"total_usage,omitempty"` PercpuUsage []uint64 `protobuf:"varint,2,rep,name=percpu_usage" json:"percpu_usage,omitempty"` UsageInKernelmode uint64 `protobuf:"varint,3,opt,name=usage_in_kernelmode" json:"usage_in_kernelmode,omitempty"` UsageInUsermode uint64 `protobuf:"varint,4,opt,name=usage_in_usermode" json:"usage_in_usermode,omitempty"` }
func (*CpuUsage) Descriptor ¶
func (*CpuUsage) ProtoMessage ¶
func (*CpuUsage) ProtoMessage()
type CreateCheckpointRequest ¶
type CreateCheckpointRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Checkpoint *Checkpoint `protobuf:"bytes,2,opt,name=checkpoint" json:"checkpoint,omitempty"` }
func (*CreateCheckpointRequest) Descriptor ¶
func (*CreateCheckpointRequest) Descriptor() ([]byte, []int)
func (*CreateCheckpointRequest) GetCheckpoint ¶
func (m *CreateCheckpointRequest) GetCheckpoint() *Checkpoint
func (*CreateCheckpointRequest) ProtoMessage ¶
func (*CreateCheckpointRequest) ProtoMessage()
func (*CreateCheckpointRequest) Reset ¶
func (m *CreateCheckpointRequest) Reset()
func (*CreateCheckpointRequest) String ¶
func (m *CreateCheckpointRequest) String() string
type CreateCheckpointResponse ¶
type CreateCheckpointResponse struct { }
func (*CreateCheckpointResponse) Descriptor ¶
func (*CreateCheckpointResponse) Descriptor() ([]byte, []int)
func (*CreateCheckpointResponse) ProtoMessage ¶
func (*CreateCheckpointResponse) ProtoMessage()
func (*CreateCheckpointResponse) Reset ¶
func (m *CreateCheckpointResponse) Reset()
func (*CreateCheckpointResponse) String ¶
func (m *CreateCheckpointResponse) String() string
type CreateContainerRequest ¶
type CreateContainerRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` BundlePath string `protobuf:"bytes,2,opt,name=bundlePath" json:"bundlePath,omitempty"` Stdin string `protobuf:"bytes,3,opt,name=stdin" json:"stdin,omitempty"` Stdout string `protobuf:"bytes,4,opt,name=stdout" json:"stdout,omitempty"` Stderr string `protobuf:"bytes,5,opt,name=stderr" json:"stderr,omitempty"` Console string `protobuf:"bytes,6,opt,name=console" json:"console,omitempty"` Checkpoint string `protobuf:"bytes,7,opt,name=checkpoint" json:"checkpoint,omitempty"` }
func (*CreateContainerRequest) Descriptor ¶
func (*CreateContainerRequest) Descriptor() ([]byte, []int)
func (*CreateContainerRequest) ProtoMessage ¶
func (*CreateContainerRequest) ProtoMessage()
func (*CreateContainerRequest) Reset ¶
func (m *CreateContainerRequest) Reset()
func (*CreateContainerRequest) String ¶
func (m *CreateContainerRequest) String() string
type CreateContainerResponse ¶
type CreateContainerResponse struct {
Pid uint32 `protobuf:"varint,1,opt,name=pid" json:"pid,omitempty"`
}
func (*CreateContainerResponse) Descriptor ¶
func (*CreateContainerResponse) Descriptor() ([]byte, []int)
func (*CreateContainerResponse) ProtoMessage ¶
func (*CreateContainerResponse) ProtoMessage()
func (*CreateContainerResponse) Reset ¶
func (m *CreateContainerResponse) Reset()
func (*CreateContainerResponse) String ¶
func (m *CreateContainerResponse) String() string
type DeleteCheckpointRequest ¶
type DeleteCheckpointRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*DeleteCheckpointRequest) Descriptor ¶
func (*DeleteCheckpointRequest) Descriptor() ([]byte, []int)
func (*DeleteCheckpointRequest) ProtoMessage ¶
func (*DeleteCheckpointRequest) ProtoMessage()
func (*DeleteCheckpointRequest) Reset ¶
func (m *DeleteCheckpointRequest) Reset()
func (*DeleteCheckpointRequest) String ¶
func (m *DeleteCheckpointRequest) String() string
type DeleteCheckpointResponse ¶
type DeleteCheckpointResponse struct { }
func (*DeleteCheckpointResponse) Descriptor ¶
func (*DeleteCheckpointResponse) Descriptor() ([]byte, []int)
func (*DeleteCheckpointResponse) ProtoMessage ¶
func (*DeleteCheckpointResponse) ProtoMessage()
func (*DeleteCheckpointResponse) Reset ¶
func (m *DeleteCheckpointResponse) Reset()
func (*DeleteCheckpointResponse) String ¶
func (m *DeleteCheckpointResponse) String() string
type Event ¶
type Event struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` Status uint32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"` BundlePath string `protobuf:"bytes,4,opt,name=bundlePath" json:"bundlePath,omitempty"` Pid uint32 `protobuf:"varint,5,opt,name=pid" json:"pid,omitempty"` Signal uint32 `protobuf:"varint,7,opt,name=signal" json:"signal,omitempty"` Process *Process `protobuf:"bytes,8,opt,name=process" json:"process,omitempty"` Containers []*Container `protobuf:"bytes,9,rep,name=containers" json:"containers,omitempty"` Checkpoint *Checkpoint `protobuf:"bytes,10,opt,name=checkpoint" json:"checkpoint,omitempty"` }
func (*Event) Descriptor ¶
func (*Event) GetCheckpoint ¶
func (m *Event) GetCheckpoint() *Checkpoint
func (*Event) GetContainers ¶
func (*Event) GetProcess ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type EventsRequest ¶
type EventsRequest struct { }
func (*EventsRequest) Descriptor ¶
func (*EventsRequest) Descriptor() ([]byte, []int)
func (*EventsRequest) ProtoMessage ¶
func (*EventsRequest) ProtoMessage()
func (*EventsRequest) Reset ¶
func (m *EventsRequest) Reset()
func (*EventsRequest) String ¶
func (m *EventsRequest) String() string
type HugetlbStats ¶
type HugetlbStats struct { Usage uint64 `protobuf:"varint,1,opt,name=usage" json:"usage,omitempty"` MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage" json:"max_usage,omitempty"` Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt" json:"failcnt,omitempty"` }
func (*HugetlbStats) Descriptor ¶
func (*HugetlbStats) Descriptor() ([]byte, []int)
func (*HugetlbStats) ProtoMessage ¶
func (*HugetlbStats) ProtoMessage()
func (*HugetlbStats) Reset ¶
func (m *HugetlbStats) Reset()
func (*HugetlbStats) String ¶
func (m *HugetlbStats) String() string
type ListCheckpointRequest ¶
type ListCheckpointRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*ListCheckpointRequest) Descriptor ¶
func (*ListCheckpointRequest) Descriptor() ([]byte, []int)
func (*ListCheckpointRequest) ProtoMessage ¶
func (*ListCheckpointRequest) ProtoMessage()
func (*ListCheckpointRequest) Reset ¶
func (m *ListCheckpointRequest) Reset()
func (*ListCheckpointRequest) String ¶
func (m *ListCheckpointRequest) String() string
type ListCheckpointResponse ¶
type ListCheckpointResponse struct {
Checkpoints []*Checkpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"`
}
func (*ListCheckpointResponse) Descriptor ¶
func (*ListCheckpointResponse) Descriptor() ([]byte, []int)
func (*ListCheckpointResponse) GetCheckpoints ¶
func (m *ListCheckpointResponse) GetCheckpoints() []*Checkpoint
func (*ListCheckpointResponse) ProtoMessage ¶
func (*ListCheckpointResponse) ProtoMessage()
func (*ListCheckpointResponse) Reset ¶
func (m *ListCheckpointResponse) Reset()
func (*ListCheckpointResponse) String ¶
func (m *ListCheckpointResponse) String() string
type Machine ¶
type Machine struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Cpus uint32 `protobuf:"varint,2,opt,name=cpus" json:"cpus,omitempty"` Memory uint64 `protobuf:"varint,3,opt,name=memory" json:"memory,omitempty"` }
Machine is information about machine on which containerd is run
func (*Machine) Descriptor ¶
func (*Machine) ProtoMessage ¶
func (*Machine) ProtoMessage()
type MemoryData ¶
type MemoryData struct { Usage uint64 `protobuf:"varint,1,opt,name=usage" json:"usage,omitempty"` MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage" json:"max_usage,omitempty"` Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt" json:"failcnt,omitempty"` }
func (*MemoryData) Descriptor ¶
func (*MemoryData) Descriptor() ([]byte, []int)
func (*MemoryData) ProtoMessage ¶
func (*MemoryData) ProtoMessage()
func (*MemoryData) Reset ¶
func (m *MemoryData) Reset()
func (*MemoryData) String ¶
func (m *MemoryData) String() string
type MemoryStats ¶
type MemoryStats struct { Cache uint64 `protobuf:"varint,1,opt,name=cache" json:"cache,omitempty"` Usage *MemoryData `protobuf:"bytes,2,opt,name=usage" json:"usage,omitempty"` SwapUsage *MemoryData `protobuf:"bytes,3,opt,name=swap_usage" json:"swap_usage,omitempty"` KernelUsage *MemoryData `protobuf:"bytes,4,opt,name=kernel_usage" json:"kernel_usage,omitempty"` Stats map[string]uint64 `` /* 131-byte string literal not displayed */ }
func (*MemoryStats) Descriptor ¶
func (*MemoryStats) Descriptor() ([]byte, []int)
func (*MemoryStats) GetKernelUsage ¶
func (m *MemoryStats) GetKernelUsage() *MemoryData
func (*MemoryStats) GetStats ¶
func (m *MemoryStats) GetStats() map[string]uint64
func (*MemoryStats) GetSwapUsage ¶
func (m *MemoryStats) GetSwapUsage() *MemoryData
func (*MemoryStats) GetUsage ¶
func (m *MemoryStats) GetUsage() *MemoryData
func (*MemoryStats) ProtoMessage ¶
func (*MemoryStats) ProtoMessage()
func (*MemoryStats) Reset ¶
func (m *MemoryStats) Reset()
func (*MemoryStats) String ¶
func (m *MemoryStats) String() string
type NetworkStats ¶
type NetworkStats struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` RxBytes uint64 `protobuf:"varint,2,opt,name=rx_bytes" json:"rx_bytes,omitempty"` Rx_Packets uint64 `protobuf:"varint,3,opt,name=rx_Packets" json:"rx_Packets,omitempty"` RxErrors uint64 `protobuf:"varint,4,opt,name=Rx_errors" json:"Rx_errors,omitempty"` RxDropped uint64 `protobuf:"varint,5,opt,name=Rx_dropped" json:"Rx_dropped,omitempty"` TxBytes uint64 `protobuf:"varint,6,opt,name=Tx_bytes" json:"Tx_bytes,omitempty"` TxPackets uint64 `protobuf:"varint,7,opt,name=Tx_packets" json:"Tx_packets,omitempty"` TxErrors uint64 `protobuf:"varint,8,opt,name=Tx_errors" json:"Tx_errors,omitempty"` TxDropped uint64 `protobuf:"varint,9,opt,name=Tx_dropped" json:"Tx_dropped,omitempty"` }
func (*NetworkStats) Descriptor ¶
func (*NetworkStats) Descriptor() ([]byte, []int)
func (*NetworkStats) ProtoMessage ¶
func (*NetworkStats) ProtoMessage()
func (*NetworkStats) Reset ¶
func (m *NetworkStats) Reset()
func (*NetworkStats) String ¶
func (m *NetworkStats) String() string
type Process ¶
type Process struct { Pid uint32 `protobuf:"varint,1,opt,name=pid" json:"pid,omitempty"` Terminal bool `protobuf:"varint,2,opt,name=terminal" json:"terminal,omitempty"` User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` Args []string `protobuf:"bytes,4,rep,name=args" json:"args,omitempty"` Env []string `protobuf:"bytes,5,rep,name=env" json:"env,omitempty"` Cwd string `protobuf:"bytes,6,opt,name=cwd" json:"cwd,omitempty"` }
func (*Process) Descriptor ¶
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
type SignalRequest ¶
type SignalRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Pid uint32 `protobuf:"varint,2,opt,name=pid" json:"pid,omitempty"` Signal uint32 `protobuf:"varint,3,opt,name=signal" json:"signal,omitempty"` }
func (*SignalRequest) Descriptor ¶
func (*SignalRequest) Descriptor() ([]byte, []int)
func (*SignalRequest) ProtoMessage ¶
func (*SignalRequest) ProtoMessage()
func (*SignalRequest) Reset ¶
func (m *SignalRequest) Reset()
func (*SignalRequest) String ¶
func (m *SignalRequest) String() string
type SignalResponse ¶
type SignalResponse struct { }
func (*SignalResponse) Descriptor ¶
func (*SignalResponse) Descriptor() ([]byte, []int)
func (*SignalResponse) ProtoMessage ¶
func (*SignalResponse) ProtoMessage()
func (*SignalResponse) Reset ¶
func (m *SignalResponse) Reset()
func (*SignalResponse) String ¶
func (m *SignalResponse) String() string
type StateRequest ¶
type StateRequest struct { }
func (*StateRequest) Descriptor ¶
func (*StateRequest) Descriptor() ([]byte, []int)
func (*StateRequest) ProtoMessage ¶
func (*StateRequest) ProtoMessage()
func (*StateRequest) Reset ¶
func (m *StateRequest) Reset()
func (*StateRequest) String ¶
func (m *StateRequest) String() string
type StateResponse ¶
type StateResponse struct { Containers []*Container `protobuf:"bytes,1,rep,name=containers" json:"containers,omitempty"` Machine *Machine `protobuf:"bytes,2,opt,name=machine" json:"machine,omitempty"` }
StateResponse is information about containerd daemon
func (*StateResponse) Descriptor ¶
func (*StateResponse) Descriptor() ([]byte, []int)
func (*StateResponse) GetContainers ¶
func (m *StateResponse) GetContainers() []*Container
func (*StateResponse) GetMachine ¶
func (m *StateResponse) GetMachine() *Machine
func (*StateResponse) ProtoMessage ¶
func (*StateResponse) ProtoMessage()
func (*StateResponse) Reset ¶
func (m *StateResponse) Reset()
func (*StateResponse) String ¶
func (m *StateResponse) String() string
type Stats ¶
type Stats struct { NetworkStats []*NetworkStats `protobuf:"bytes,1,rep,name=network_stats" json:"network_stats,omitempty"` CgroupStats *CgroupStats `protobuf:"bytes,2,opt,name=cgroup_stats" json:"cgroup_stats,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` }
func (*Stats) Descriptor ¶
func (*Stats) GetCgroupStats ¶
func (m *Stats) GetCgroupStats() *CgroupStats
func (*Stats) GetNetworkStats ¶
func (m *Stats) GetNetworkStats() []*NetworkStats
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
type StatsRequest ¶
type StatsRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*StatsRequest) Descriptor ¶
func (*StatsRequest) Descriptor() ([]byte, []int)
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) Reset ¶
func (m *StatsRequest) Reset()
func (*StatsRequest) String ¶
func (m *StatsRequest) String() string
type ThrottlingData ¶
type ThrottlingData struct { Periods uint64 `protobuf:"varint,1,opt,name=periods" json:"periods,omitempty"` ThrottledPeriods uint64 `protobuf:"varint,2,opt,name=throttled_periods" json:"throttled_periods,omitempty"` ThrottledTime uint64 `protobuf:"varint,3,opt,name=throttled_time" json:"throttled_time,omitempty"` }
func (*ThrottlingData) Descriptor ¶
func (*ThrottlingData) Descriptor() ([]byte, []int)
func (*ThrottlingData) ProtoMessage ¶
func (*ThrottlingData) ProtoMessage()
func (*ThrottlingData) Reset ¶
func (m *ThrottlingData) Reset()
func (*ThrottlingData) String ¶
func (m *ThrottlingData) String() string
type UpdateContainerRequest ¶
type UpdateContainerRequest struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Signal uint32 `protobuf:"varint,2,opt,name=signal" json:"signal,omitempty"` Status string `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` }
func (*UpdateContainerRequest) Descriptor ¶
func (*UpdateContainerRequest) Descriptor() ([]byte, []int)
func (*UpdateContainerRequest) ProtoMessage ¶
func (*UpdateContainerRequest) ProtoMessage()
func (*UpdateContainerRequest) Reset ¶
func (m *UpdateContainerRequest) Reset()
func (*UpdateContainerRequest) String ¶
func (m *UpdateContainerRequest) String() string
type UpdateContainerResponse ¶
type UpdateContainerResponse struct { }
func (*UpdateContainerResponse) Descriptor ¶
func (*UpdateContainerResponse) Descriptor() ([]byte, []int)
func (*UpdateContainerResponse) ProtoMessage ¶
func (*UpdateContainerResponse) ProtoMessage()
func (*UpdateContainerResponse) Reset ¶
func (m *UpdateContainerResponse) Reset()
func (*UpdateContainerResponse) String ¶
func (m *UpdateContainerResponse) String() string
type User ¶
type User struct { Uid uint32 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` Gid uint32 `protobuf:"varint,2,opt,name=gid" json:"gid,omitempty"` AdditionalGids []uint32 `protobuf:"varint,3,rep,name=additionalGids" json:"additionalGids,omitempty"` }
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.