Versions in this module Expand all Collapse all v0 v0.6.0 May 25, 2016 Changes in this version + func RegisterPublicAPIServer(s *grpc.Server, srv PublicAPIServer) type Container + Env []*EnvironmentVar + Tty bool + VolumeMounts []*VolumeMount + WorkingDir string + func (*Container) Descriptor() ([]byte, []int) + func (*Container) ProtoMessage() + func (m *Container) GetEnv() []*EnvironmentVar + func (m *Container) GetPorts() []*ContainerPort + func (m *Container) GetVolumeMounts() []*VolumeMount + func (m *Container) Reset() + func (m *Container) String() string type ContainerInfo + Env []*EnvironmentVar + Tty bool + VolumeMounts []*VolumeMount + WorkingDir string + func (*ContainerInfo) Descriptor() ([]byte, []int) + func (*ContainerInfo) ProtoMessage() + func (m *ContainerInfo) GetEnv() []*EnvironmentVar + func (m *ContainerInfo) GetPorts() []*ContainerPort + func (m *ContainerInfo) GetStatus() *ContainerStatus + func (m *ContainerInfo) GetVolumeMounts() []*VolumeMount + func (m *ContainerInfo) Reset() + func (m *ContainerInfo) String() string + type ContainerInfoRequest struct + Container string + func (*ContainerInfoRequest) Descriptor() ([]byte, []int) + func (*ContainerInfoRequest) ProtoMessage() + func (m *ContainerInfoRequest) Reset() + func (m *ContainerInfoRequest) String() string + type ContainerInfoResponse struct + ContainerInfo *ContainerInfo + func (*ContainerInfoResponse) Descriptor() ([]byte, []int) + func (*ContainerInfoResponse) ProtoMessage() + func (m *ContainerInfoResponse) GetContainerInfo() *ContainerInfo + func (m *ContainerInfoResponse) Reset() + func (m *ContainerInfoResponse) String() string + type ContainerListRequest struct + Auxiliary bool + PodID string + VmID string + func (*ContainerListRequest) Descriptor() ([]byte, []int) + func (*ContainerListRequest) ProtoMessage() + func (m *ContainerListRequest) Reset() + func (m *ContainerListRequest) String() string + type ContainerListResponse struct + ContainerList []*ContainerListResult + func (*ContainerListResponse) Descriptor() ([]byte, []int) + func (*ContainerListResponse) ProtoMessage() + func (m *ContainerListResponse) GetContainerList() []*ContainerListResult + func (m *ContainerListResponse) Reset() + func (m *ContainerListResponse) String() string + type ContainerListResult struct + ContainerID string + ContainerName string + PodID string + Status string + func (*ContainerListResult) Descriptor() ([]byte, []int) + func (*ContainerListResult) ProtoMessage() + func (m *ContainerListResult) Reset() + func (m *ContainerListResult) String() string + type ContainerLogsRequest struct + Container string + Follow bool + Since string + Stderr bool + Stdout bool + Tail string + Timestamps bool + func (*ContainerLogsRequest) Descriptor() ([]byte, []int) + func (*ContainerLogsRequest) ProtoMessage() + func (m *ContainerLogsRequest) Reset() + func (m *ContainerLogsRequest) String() string + type ContainerLogsResponse struct + Log []byte + func (*ContainerLogsResponse) Descriptor() ([]byte, []int) + func (*ContainerLogsResponse) ProtoMessage() + func (m *ContainerLogsResponse) Reset() + func (m *ContainerLogsResponse) String() string type ContainerPort + func (*ContainerPort) Descriptor() ([]byte, []int) + func (*ContainerPort) ProtoMessage() + func (m *ContainerPort) Reset() + func (m *ContainerPort) String() string type ContainerStatus + func (*ContainerStatus) Descriptor() ([]byte, []int) + func (*ContainerStatus) ProtoMessage() + func (m *ContainerStatus) GetRunning() *RunningStatus + func (m *ContainerStatus) GetTerminated() *TermStatus + func (m *ContainerStatus) GetWaiting() *WaitingStatus + func (m *ContainerStatus) Reset() + func (m *ContainerStatus) String() string type EnvironmentVar + func (*EnvironmentVar) Descriptor() ([]byte, []int) + func (*EnvironmentVar) ProtoMessage() + func (m *EnvironmentVar) Reset() + func (m *EnvironmentVar) String() string + type ImageInfo struct + Created int64 + Id string + Labels map[string]string + ParentID string + RepoDigests []string + RepoTags []string + VirtualSize int64 + func (*ImageInfo) Descriptor() ([]byte, []int) + func (*ImageInfo) ProtoMessage() + func (m *ImageInfo) GetLabels() map[string]string + func (m *ImageInfo) Reset() + func (m *ImageInfo) String() string + type ImageListRequest struct + All bool + Filter string + FilterArgs string + func (*ImageListRequest) Descriptor() ([]byte, []int) + func (*ImageListRequest) ProtoMessage() + func (m *ImageListRequest) Reset() + func (m *ImageListRequest) String() string + type ImageListResponse struct + ImageList []*ImageInfo + func (*ImageListResponse) Descriptor() ([]byte, []int) + func (*ImageListResponse) ProtoMessage() + func (m *ImageListResponse) GetImageList() []*ImageInfo + func (m *ImageListResponse) Reset() + func (m *ImageListResponse) String() string + type PodCreateRequest struct + PodID string + PodSpec *UserPod + func (*PodCreateRequest) Descriptor() ([]byte, []int) + func (*PodCreateRequest) ProtoMessage() + func (m *PodCreateRequest) GetPodSpec() *UserPod + func (m *PodCreateRequest) Reset() + func (m *PodCreateRequest) String() string + type PodCreateResponse struct + PodID string + func (*PodCreateResponse) Descriptor() ([]byte, []int) + func (*PodCreateResponse) ProtoMessage() + func (m *PodCreateResponse) Reset() + func (m *PodCreateResponse) String() string type PodInfo + func (*PodInfo) Descriptor() ([]byte, []int) + func (*PodInfo) ProtoMessage() + func (m *PodInfo) GetSpec() *PodSpec + func (m *PodInfo) GetStatus() *PodStatus + func (m *PodInfo) Reset() + func (m *PodInfo) String() string + type PodInfoRequest struct + PodID string + func (*PodInfoRequest) Descriptor() ([]byte, []int) + func (*PodInfoRequest) ProtoMessage() + func (m *PodInfoRequest) Reset() + func (m *PodInfoRequest) String() string + type PodInfoResponse struct + PodInfo *PodInfo + func (*PodInfoResponse) Descriptor() ([]byte, []int) + func (*PodInfoResponse) ProtoMessage() + func (m *PodInfoResponse) GetPodInfo() *PodInfo + func (m *PodInfoResponse) Reset() + func (m *PodInfoResponse) String() string + type PodListRequest struct + PodID string + VmID string + func (*PodListRequest) Descriptor() ([]byte, []int) + func (*PodListRequest) ProtoMessage() + func (m *PodListRequest) Reset() + func (m *PodListRequest) String() string + type PodListResponse struct + PodList []*PodListResult + func (*PodListResponse) Descriptor() ([]byte, []int) + func (*PodListResponse) ProtoMessage() + func (m *PodListResponse) GetPodList() []*PodListResult + func (m *PodListResponse) Reset() + func (m *PodListResponse) String() string + type PodListResult struct + PodID string + PodName string + Status string + VmID string + func (*PodListResult) Descriptor() ([]byte, []int) + func (*PodListResult) ProtoMessage() + func (m *PodListResult) Reset() + func (m *PodListResult) String() string + type PodLogConfig struct + Config map[string]string + Type string + func (*PodLogConfig) Descriptor() ([]byte, []int) + func (*PodLogConfig) ProtoMessage() + func (m *PodLogConfig) GetConfig() map[string]string + func (m *PodLogConfig) Reset() + func (m *PodLogConfig) String() string + type PodRemoveRequest struct + PodID string + func (*PodRemoveRequest) Descriptor() ([]byte, []int) + func (*PodRemoveRequest) ProtoMessage() + func (m *PodRemoveRequest) Reset() + func (m *PodRemoveRequest) String() string + type PodRemoveResponse struct + Cause string + Code int32 + func (*PodRemoveResponse) Descriptor() ([]byte, []int) + func (*PodRemoveResponse) ProtoMessage() + func (m *PodRemoveResponse) Reset() + func (m *PodRemoveResponse) String() string type PodSpec + func (*PodSpec) Descriptor() ([]byte, []int) + func (*PodSpec) ProtoMessage() + func (m *PodSpec) GetContainers() []*Container + func (m *PodSpec) GetLabels() map[string]string + func (m *PodSpec) GetVolumes() []*PodVolume + func (m *PodSpec) Reset() + func (m *PodSpec) String() string type PodStatus + ContainerStatus []*ContainerStatus + FinishTime string + func (*PodStatus) Descriptor() ([]byte, []int) + func (*PodStatus) ProtoMessage() + func (m *PodStatus) GetContainerStatus() []*ContainerStatus + func (m *PodStatus) Reset() + func (m *PodStatus) String() string type PodVolume + Source string + func (*PodVolume) Descriptor() ([]byte, []int) + func (*PodVolume) ProtoMessage() + func (m *PodVolume) GetRbd() *RBDVolumeSource + func (m *PodVolume) Reset() + func (m *PodVolume) String() string + type PublicAPIClient interface + ContainerInfo func(ctx context.Context, in *ContainerInfoRequest, opts ...grpc.CallOption) (*ContainerInfoResponse, error) + ContainerList func(ctx context.Context, in *ContainerListRequest, opts ...grpc.CallOption) (*ContainerListResponse, error) + ContainerLogs func(ctx context.Context, in *ContainerLogsRequest, opts ...grpc.CallOption) (PublicAPI_ContainerLogsClient, error) + ImageList func(ctx context.Context, in *ImageListRequest, opts ...grpc.CallOption) (*ImageListResponse, error) + PodCreate func(ctx context.Context, in *PodCreateRequest, opts ...grpc.CallOption) (*PodCreateResponse, error) + PodInfo func(ctx context.Context, in *PodInfoRequest, opts ...grpc.CallOption) (*PodInfoResponse, error) + PodList func(ctx context.Context, in *PodListRequest, opts ...grpc.CallOption) (*PodListResponse, error) + PodRemove func(ctx context.Context, in *PodRemoveRequest, opts ...grpc.CallOption) (*PodRemoveResponse, error) + VMCreate func(ctx context.Context, in *VMCreateRequest, opts ...grpc.CallOption) (*VMCreateResponse, error) + VMList func(ctx context.Context, in *VMListRequest, opts ...grpc.CallOption) (*VMListResponse, error) + VMRemove func(ctx context.Context, in *VMRemoveRequest, opts ...grpc.CallOption) (*VMRemoveResponse, error) + func NewPublicAPIClient(cc *grpc.ClientConn) PublicAPIClient + type PublicAPIServer interface + ContainerInfo func(context.Context, *ContainerInfoRequest) (*ContainerInfoResponse, error) + ContainerList func(context.Context, *ContainerListRequest) (*ContainerListResponse, error) + ContainerLogs func(*ContainerLogsRequest, PublicAPI_ContainerLogsServer) error + ImageList func(context.Context, *ImageListRequest) (*ImageListResponse, error) + PodCreate func(context.Context, *PodCreateRequest) (*PodCreateResponse, error) + PodInfo func(context.Context, *PodInfoRequest) (*PodInfoResponse, error) + PodList func(context.Context, *PodListRequest) (*PodListResponse, error) + PodRemove func(context.Context, *PodRemoveRequest) (*PodRemoveResponse, error) + VMCreate func(context.Context, *VMCreateRequest) (*VMCreateResponse, error) + VMList func(context.Context, *VMListRequest) (*VMListResponse, error) + VMRemove func(context.Context, *VMRemoveRequest) (*VMRemoveResponse, error) + type PublicAPI_ContainerLogsClient interface + Recv func() (*ContainerLogsResponse, error) + type PublicAPI_ContainerLogsServer interface + Send func(*ContainerLogsResponse) error type RBDVolumeSource + func (*RBDVolumeSource) Descriptor() ([]byte, []int) + func (*RBDVolumeSource) ProtoMessage() + func (m *RBDVolumeSource) Reset() + func (m *RBDVolumeSource) String() string type RunningStatus + func (*RunningStatus) Descriptor() ([]byte, []int) + func (*RunningStatus) ProtoMessage() + func (m *RunningStatus) Reset() + func (m *RunningStatus) String() string type TermStatus + func (*TermStatus) Descriptor() ([]byte, []int) + func (*TermStatus) ProtoMessage() + func (m *TermStatus) Reset() + func (m *TermStatus) String() string + type UserContainer struct + Command []string + Entrypoint []string + Envs []*EnvironmentVar + Files []*UserFileReference + Image string + Name string + Ports []*UserContainerPort + RestartPolicy string + Sysctl map[string]string + Tty bool + Volumes []*UserVolumeReference + Workdir string + func (*UserContainer) Descriptor() ([]byte, []int) + func (*UserContainer) ProtoMessage() + func (m *UserContainer) GetEnvs() []*EnvironmentVar + func (m *UserContainer) GetFiles() []*UserFileReference + func (m *UserContainer) GetPorts() []*UserContainerPort + func (m *UserContainer) GetSysctl() map[string]string + func (m *UserContainer) GetVolumes() []*UserVolumeReference + func (m *UserContainer) Reset() + func (m *UserContainer) String() string + type UserContainerPort struct + ContainerPort int32 + HostPort int32 + Protocol string + ServicePort int32 + func (*UserContainerPort) Descriptor() ([]byte, []int) + func (*UserContainerPort) ProtoMessage() + func (m *UserContainerPort) Reset() + func (m *UserContainerPort) String() string + type UserFile struct + Content string + Encoding string + Name string + Uri string + func (*UserFile) Descriptor() ([]byte, []int) + func (*UserFile) ProtoMessage() + func (m *UserFile) Reset() + func (m *UserFile) String() string + type UserFileReference struct + Filename string + Group string + Path string + Perm string + User string + func (*UserFileReference) Descriptor() ([]byte, []int) + func (*UserFileReference) ProtoMessage() + func (m *UserFileReference) Reset() + func (m *UserFileReference) String() string + type UserInterface struct + Bridge string + Gateway string + Ifname string + Ip string + Mac string + func (*UserInterface) Descriptor() ([]byte, []int) + func (*UserInterface) ProtoMessage() + func (m *UserInterface) Reset() + func (m *UserInterface) String() string + type UserPod struct + Containers []*UserContainer + Dns []string + Files []*UserFile + Hostname string + Id string + Interfaces []*UserInterface + Labels map[string]string + Log *PodLogConfig + Resource *UserResource + RestartPolicy string + Services []*UserService + Tty bool + Type string + Volumes []*UserVolume + func (*UserPod) Descriptor() ([]byte, []int) + func (*UserPod) ProtoMessage() + func (m *UserPod) GetContainers() []*UserContainer + func (m *UserPod) GetFiles() []*UserFile + func (m *UserPod) GetInterfaces() []*UserInterface + func (m *UserPod) GetLabels() map[string]string + func (m *UserPod) GetLog() *PodLogConfig + func (m *UserPod) GetResource() *UserResource + func (m *UserPod) GetServices() []*UserService + func (m *UserPod) GetVolumes() []*UserVolume + func (m *UserPod) Reset() + func (m *UserPod) String() string + type UserResource struct + Memory int32 + Vcpu int32 + func (*UserResource) Descriptor() ([]byte, []int) + func (*UserResource) ProtoMessage() + func (m *UserResource) Reset() + func (m *UserResource) String() string + type UserService struct + Hosts []*UserServiceBackend + Protocol string + Serviceip string + Serviceport int32 + func (*UserService) Descriptor() ([]byte, []int) + func (*UserService) ProtoMessage() + func (m *UserService) GetHosts() []*UserServiceBackend + func (m *UserService) Reset() + func (m *UserService) String() string + type UserServiceBackend struct + Hostip string + Hostport int32 + func (*UserServiceBackend) Descriptor() ([]byte, []int) + func (*UserServiceBackend) ProtoMessage() + func (m *UserServiceBackend) Reset() + func (m *UserServiceBackend) String() string + type UserVolume struct + Driver string + Name string + Option *UserVolumeOption + Source string + func (*UserVolume) Descriptor() ([]byte, []int) + func (*UserVolume) ProtoMessage() + func (m *UserVolume) GetOption() *UserVolumeOption + func (m *UserVolume) Reset() + func (m *UserVolume) String() string + type UserVolumeOption struct + Keyring string + Monitors []string + User string + func (*UserVolumeOption) Descriptor() ([]byte, []int) + func (*UserVolumeOption) ProtoMessage() + func (m *UserVolumeOption) Reset() + func (m *UserVolumeOption) String() string + type UserVolumeReference struct + Path string + ReadOnly bool + Volume string + func (*UserVolumeReference) Descriptor() ([]byte, []int) + func (*UserVolumeReference) ProtoMessage() + func (m *UserVolumeReference) Reset() + func (m *UserVolumeReference) String() string + type VMCreateRequest struct + Cpu int32 + Memory int32 + func (*VMCreateRequest) Descriptor() ([]byte, []int) + func (*VMCreateRequest) ProtoMessage() + func (m *VMCreateRequest) Reset() + func (m *VMCreateRequest) String() string + type VMCreateResponse struct + VmID string + func (*VMCreateResponse) Descriptor() ([]byte, []int) + func (*VMCreateResponse) ProtoMessage() + func (m *VMCreateResponse) Reset() + func (m *VMCreateResponse) String() string + type VMListRequest struct + PodID string + VmID string + func (*VMListRequest) Descriptor() ([]byte, []int) + func (*VMListRequest) ProtoMessage() + func (m *VMListRequest) Reset() + func (m *VMListRequest) String() string + type VMListResponse struct + VmList []*VMListResult + func (*VMListResponse) Descriptor() ([]byte, []int) + func (*VMListResponse) ProtoMessage() + func (m *VMListResponse) GetVmList() []*VMListResult + func (m *VMListResponse) Reset() + func (m *VMListResponse) String() string + type VMListResult struct + PodID string + Status string + VmID string + func (*VMListResult) Descriptor() ([]byte, []int) + func (*VMListResult) ProtoMessage() + func (m *VMListResult) Reset() + func (m *VMListResult) String() string + type VMRemoveRequest struct + VmID string + func (*VMRemoveRequest) Descriptor() ([]byte, []int) + func (*VMRemoveRequest) ProtoMessage() + func (m *VMRemoveRequest) Reset() + func (m *VMRemoveRequest) String() string + type VMRemoveResponse struct + Cause string + Code int32 + func (*VMRemoveResponse) Descriptor() ([]byte, []int) + func (*VMRemoveResponse) ProtoMessage() + func (m *VMRemoveResponse) Reset() + func (m *VMRemoveResponse) String() string type VolumeMount + func (*VolumeMount) Descriptor() ([]byte, []int) + func (*VolumeMount) ProtoMessage() + func (m *VolumeMount) Reset() + func (m *VolumeMount) String() string type WaitingStatus + func (*WaitingStatus) Descriptor() ([]byte, []int) + func (*WaitingStatus) ProtoMessage() + func (m *WaitingStatus) Reset() + func (m *WaitingStatus) String() string v0.5.0 Feb 5, 2016 Changes in this version + type Container struct + Args []string + Commands []string + ContainerID string + Environment []EnvironmentVar + Image string + ImageID string + ImagePullPolicy string + Name string + Ports []ContainerPort + Volume []VolumeMount + Workdir string + type ContainerInfo struct + Args []string + Commands []string + ContainerID string + Environment []EnvironmentVar + Image string + ImageID string + ImagePullPolicy string + Name string + PodID string + Ports []ContainerPort + Status ContainerStatus + Volume []VolumeMount + Workdir string + type ContainerPort struct + ContainerPort int + HostIP string + HostPort int + Name string + Protocol string + type ContainerStatus struct + ContainerID string + Name string + Phase string + Running RunningStatus + Terminated TermStatus + Waiting WaitingStatus + type EnvironmentVar struct + Env string + Value string + type ImagePullConfig struct + AuthConfig *cliconfig.AuthConfig + MetaHeaders map[string][]string + type ImagePushConfig struct + AuthConfig *cliconfig.AuthConfig + MetaHeaders map[string][]string + Tag string + type PodInfo struct + ApiVersion string + Kind string + Spec PodSpec + Status PodStatus + Vm string + type PodSpec struct + Containers []Container + Labels map[string]string + Memory int + Vcpu int + Volumes []PodVolume + type PodStatus struct + HostIP string + Message string + Phase string + PodIP []string + Reason string + StartTime string + Status []ContainerStatus + type PodVolume struct + Driver string + HostPath string + Name string + Rbd RBDVolumeSource + type RBDVolumeSource struct + FsType string + Image string + Keyring string + Monitors []string + Pool string + ReadOnly bool + User string + type RunningStatus struct + StartedAt string + type TermStatus struct + ExitCode int + FinishedAt string + Message string + Reason string + StartedAt string + type VolumeMount struct + MountPath string + Name string + ReadOnly bool + type WaitingStatus struct + Reason string v0.2.1 Jul 6, 2015 Changes in this version + const E_BAD_REQUEST + const E_BUSY + const E_EXEC_FINISH + const E_FAILED + const E_JSON_PARSE_FAIL + const E_NO_TTY + const E_OK + const E_POD_FINISHED + const E_POD_RUNNING + const E_POD_STOPPED + const E_VM_RUNNING + const E_VM_SHUTDOWN + const S_POD_CREATED + const S_POD_FAILED + const S_POD_NONE + const S_POD_RUNNING + const S_POD_SUCCEEDED + const S_VM_ASSOCIATED + const S_VM_IDLE + type QemuResponse struct + Cause string + Code int + Data interface{} + VmId string