Documentation
¶
Overview ¶
Package pods is a generated protocol buffer package.
It is generated from these files:
services/pods/v1/pods.proto
It has these top-level messages:
CreatePodRequest CreatePodStreamResponse ImageFetch ImageLayerStatus StartPodRequest StartPodResponse DeletePodRequest DeletePodResponse ListPodsRequest ListPodsResponse Pod PodSpec PodStatus
Index ¶
- func RegisterPodsServer(s *grpc.Server, srv PodsServer)
- type CreatePodRequest
- type CreatePodStreamResponse
- type DeletePodRequest
- type DeletePodResponse
- type ImageFetch
- func (*ImageFetch) Descriptor() ([]byte, []int)
- func (m *ImageFetch) GetContainerID() string
- func (m *ImageFetch) GetFailed() bool
- func (m *ImageFetch) GetImage() string
- func (m *ImageFetch) GetLayers() []*ImageLayerStatus
- func (m *ImageFetch) GetResolved() bool
- func (*ImageFetch) ProtoMessage()
- func (m *ImageFetch) Reset()
- func (m *ImageFetch) String() string
- type ImageLayerStatus
- func (*ImageLayerStatus) Descriptor() ([]byte, []int)
- func (m *ImageLayerStatus) GetDigest() string
- func (m *ImageLayerStatus) GetOffset() int64
- func (m *ImageLayerStatus) GetRef() string
- func (m *ImageLayerStatus) GetStatus() string
- func (m *ImageLayerStatus) GetTotal() int64
- func (*ImageLayerStatus) ProtoMessage()
- func (m *ImageLayerStatus) Reset()
- func (m *ImageLayerStatus) String() string
- type ListPodsRequest
- type ListPodsResponse
- type Pod
- type PodSpec
- func (*PodSpec) Descriptor() ([]byte, []int)
- func (m *PodSpec) GetContainers() []*cand_services_containers_v1.Container
- func (m *PodSpec) GetHostNetwork() bool
- func (m *PodSpec) GetHostPID() bool
- func (m *PodSpec) GetRestartPolicy() string
- func (*PodSpec) ProtoMessage()
- func (m *PodSpec) Reset()
- func (m *PodSpec) String() string
- type PodStatus
- type PodsClient
- type PodsServer
- type Pods_CreateClient
- type Pods_CreateServer
- type StartPodRequest
- type StartPodResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPodsServer ¶
func RegisterPodsServer(s *grpc.Server, srv PodsServer)
Types ¶
type CreatePodRequest ¶
type CreatePodRequest struct { Pod *Pod `protobuf:"bytes,1,opt,name=pod" json:"pod,omitempty"` Tty bool `protobuf:"varint,2,opt,name=tty" json:"tty,omitempty"` }
func (*CreatePodRequest) Descriptor ¶
func (*CreatePodRequest) Descriptor() ([]byte, []int)
func (*CreatePodRequest) GetPod ¶
func (m *CreatePodRequest) GetPod() *Pod
func (*CreatePodRequest) GetTty ¶
func (m *CreatePodRequest) GetTty() bool
func (*CreatePodRequest) ProtoMessage ¶
func (*CreatePodRequest) ProtoMessage()
func (*CreatePodRequest) Reset ¶
func (m *CreatePodRequest) Reset()
func (*CreatePodRequest) String ¶
func (m *CreatePodRequest) String() string
type CreatePodStreamResponse ¶
type CreatePodStreamResponse struct {
Images []*ImageFetch `protobuf:"bytes,1,rep,name=images" json:"images,omitempty"`
}
func (*CreatePodStreamResponse) Descriptor ¶
func (*CreatePodStreamResponse) Descriptor() ([]byte, []int)
func (*CreatePodStreamResponse) GetImages ¶
func (m *CreatePodStreamResponse) GetImages() []*ImageFetch
func (*CreatePodStreamResponse) ProtoMessage ¶
func (*CreatePodStreamResponse) ProtoMessage()
func (*CreatePodStreamResponse) Reset ¶
func (m *CreatePodStreamResponse) Reset()
func (*CreatePodStreamResponse) String ¶
func (m *CreatePodStreamResponse) String() string
type DeletePodRequest ¶
type DeletePodRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*DeletePodRequest) Descriptor ¶
func (*DeletePodRequest) Descriptor() ([]byte, []int)
func (*DeletePodRequest) GetName ¶
func (m *DeletePodRequest) GetName() string
func (*DeletePodRequest) GetNamespace ¶
func (m *DeletePodRequest) GetNamespace() string
func (*DeletePodRequest) ProtoMessage ¶
func (*DeletePodRequest) ProtoMessage()
func (*DeletePodRequest) Reset ¶
func (m *DeletePodRequest) Reset()
func (*DeletePodRequest) String ¶
func (m *DeletePodRequest) String() string
type DeletePodResponse ¶
type DeletePodResponse struct {
Pod *Pod `protobuf:"bytes,1,opt,name=pod" json:"pod,omitempty"`
}
func (*DeletePodResponse) Descriptor ¶
func (*DeletePodResponse) Descriptor() ([]byte, []int)
func (*DeletePodResponse) GetPod ¶
func (m *DeletePodResponse) GetPod() *Pod
func (*DeletePodResponse) ProtoMessage ¶
func (*DeletePodResponse) ProtoMessage()
func (*DeletePodResponse) Reset ¶
func (m *DeletePodResponse) Reset()
func (*DeletePodResponse) String ¶
func (m *DeletePodResponse) String() string
type ImageFetch ¶
type ImageFetch struct { ContainerID string `protobuf:"bytes,1,opt,name=containerID" json:"containerID,omitempty"` Image string `protobuf:"bytes,2,opt,name=image" json:"image,omitempty"` Resolved bool `protobuf:"varint,3,opt,name=resolved" json:"resolved,omitempty"` Failed bool `protobuf:"varint,4,opt,name=failed" json:"failed,omitempty"` Layers []*ImageLayerStatus `protobuf:"bytes,5,rep,name=layers" json:"layers,omitempty"` }
func (*ImageFetch) Descriptor ¶
func (*ImageFetch) Descriptor() ([]byte, []int)
func (*ImageFetch) GetContainerID ¶
func (m *ImageFetch) GetContainerID() string
func (*ImageFetch) GetFailed ¶
func (m *ImageFetch) GetFailed() bool
func (*ImageFetch) GetImage ¶
func (m *ImageFetch) GetImage() string
func (*ImageFetch) GetLayers ¶
func (m *ImageFetch) GetLayers() []*ImageLayerStatus
func (*ImageFetch) GetResolved ¶
func (m *ImageFetch) GetResolved() bool
func (*ImageFetch) ProtoMessage ¶
func (*ImageFetch) ProtoMessage()
func (*ImageFetch) Reset ¶
func (m *ImageFetch) Reset()
func (*ImageFetch) String ¶
func (m *ImageFetch) String() string
type ImageLayerStatus ¶
type ImageLayerStatus struct { Ref string `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"` Status string `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` Offset int64 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` Total int64 `protobuf:"varint,5,opt,name=total" json:"total,omitempty"` }
func (*ImageLayerStatus) Descriptor ¶
func (*ImageLayerStatus) Descriptor() ([]byte, []int)
func (*ImageLayerStatus) GetDigest ¶
func (m *ImageLayerStatus) GetDigest() string
func (*ImageLayerStatus) GetOffset ¶
func (m *ImageLayerStatus) GetOffset() int64
func (*ImageLayerStatus) GetRef ¶
func (m *ImageLayerStatus) GetRef() string
func (*ImageLayerStatus) GetStatus ¶
func (m *ImageLayerStatus) GetStatus() string
func (*ImageLayerStatus) GetTotal ¶
func (m *ImageLayerStatus) GetTotal() int64
func (*ImageLayerStatus) ProtoMessage ¶
func (*ImageLayerStatus) ProtoMessage()
func (*ImageLayerStatus) Reset ¶
func (m *ImageLayerStatus) Reset()
func (*ImageLayerStatus) String ¶
func (m *ImageLayerStatus) String() string
type ListPodsRequest ¶
type ListPodsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
}
func (*ListPodsRequest) Descriptor ¶
func (*ListPodsRequest) Descriptor() ([]byte, []int)
func (*ListPodsRequest) GetNamespace ¶
func (m *ListPodsRequest) GetNamespace() string
func (*ListPodsRequest) ProtoMessage ¶
func (*ListPodsRequest) ProtoMessage()
func (*ListPodsRequest) Reset ¶
func (m *ListPodsRequest) Reset()
func (*ListPodsRequest) String ¶
func (m *ListPodsRequest) String() string
type ListPodsResponse ¶
type ListPodsResponse struct {
Pods []*Pod `protobuf:"bytes,1,rep,name=pods" json:"pods,omitempty"`
}
func (*ListPodsResponse) Descriptor ¶
func (*ListPodsResponse) Descriptor() ([]byte, []int)
func (*ListPodsResponse) GetPods ¶
func (m *ListPodsResponse) GetPods() []*Pod
func (*ListPodsResponse) ProtoMessage ¶
func (*ListPodsResponse) ProtoMessage()
func (*ListPodsResponse) Reset ¶
func (m *ListPodsResponse) Reset()
func (*ListPodsResponse) String ¶
func (m *ListPodsResponse) String() string
type Pod ¶
type Pod struct { Metadata *cand_core.ResourceMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` Spec *PodSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` Status *PodStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` }
func UnmarshalListJSON ¶
UnmarshalListJSON reads v1 Pods data in JSON format and unmarshals it to v1 api model
func UnmarshalListYaml ¶
UnmarshalListYaml reads list of v1 Pods data in YAML format and unmarshals it to v1 api model
func UnmarshalYaml ¶
UnmarshalYaml reads v1 Pods data in YAML format and unmarshals it to v1 api model
func (*Pod) Descriptor ¶
func (*Pod) GetMetadata ¶
func (m *Pod) GetMetadata() *cand_core.ResourceMetadata
func (*Pod) ProtoMessage ¶
func (*Pod) ProtoMessage()
type PodSpec ¶
type PodSpec struct { Containers []*cand_services_containers_v1.Container `protobuf:"bytes,1,rep,name=containers" json:"containers,omitempty"` HostNetwork bool `protobuf:"varint,2,opt,name=hostNetwork" json:"hostNetwork,omitempty"` HostPID bool `protobuf:"varint,3,opt,name=hostPID" json:"hostPID,omitempty"` RestartPolicy string `protobuf:"bytes,4,opt,name=restartPolicy" json:"restartPolicy,omitempty"` }
func (*PodSpec) Descriptor ¶
func (*PodSpec) GetContainers ¶
func (m *PodSpec) GetContainers() []*cand_services_containers_v1.Container
func (*PodSpec) GetHostNetwork ¶
func (*PodSpec) GetHostPID ¶
func (*PodSpec) GetRestartPolicy ¶
func (*PodSpec) ProtoMessage ¶
func (*PodSpec) ProtoMessage()
type PodStatus ¶
type PodStatus struct { ContainerStatuses []*cand_services_containers_v1.ContainerStatus `protobuf:"bytes,1,rep,name=containerStatuses" json:"containerStatuses,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname" json:"hostname,omitempty"` }
func (*PodStatus) Descriptor ¶
func (*PodStatus) GetContainerStatuses ¶
func (m *PodStatus) GetContainerStatuses() []*cand_services_containers_v1.ContainerStatus
func (*PodStatus) GetHostname ¶
func (*PodStatus) ProtoMessage ¶
func (*PodStatus) ProtoMessage()
type PodsClient ¶
type PodsClient interface { Create(ctx context.Context, in *CreatePodRequest, opts ...grpc.CallOption) (Pods_CreateClient, error) Start(ctx context.Context, in *StartPodRequest, opts ...grpc.CallOption) (*StartPodResponse, error) Delete(ctx context.Context, in *DeletePodRequest, opts ...grpc.CallOption) (*DeletePodResponse, error) List(ctx context.Context, in *ListPodsRequest, opts ...grpc.CallOption) (*ListPodsResponse, error) }
func NewPodsClient ¶
func NewPodsClient(cc *grpc.ClientConn) PodsClient
type PodsServer ¶
type PodsServer interface { Create(*CreatePodRequest, Pods_CreateServer) error Start(context.Context, *StartPodRequest) (*StartPodResponse, error) Delete(context.Context, *DeletePodRequest) (*DeletePodResponse, error) List(context.Context, *ListPodsRequest) (*ListPodsResponse, error) }
type Pods_CreateClient ¶
type Pods_CreateClient interface { Recv() (*CreatePodStreamResponse, error) grpc.ClientStream }
type Pods_CreateServer ¶
type Pods_CreateServer interface { Send(*CreatePodStreamResponse) error grpc.ServerStream }
type StartPodRequest ¶
type StartPodRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*StartPodRequest) Descriptor ¶
func (*StartPodRequest) Descriptor() ([]byte, []int)
func (*StartPodRequest) GetName ¶
func (m *StartPodRequest) GetName() string
func (*StartPodRequest) GetNamespace ¶
func (m *StartPodRequest) GetNamespace() string
func (*StartPodRequest) ProtoMessage ¶
func (*StartPodRequest) ProtoMessage()
func (*StartPodRequest) Reset ¶
func (m *StartPodRequest) Reset()
func (*StartPodRequest) String ¶
func (m *StartPodRequest) String() string
type StartPodResponse ¶
type StartPodResponse struct {
Pod *Pod `protobuf:"bytes,1,opt,name=pod" json:"pod,omitempty"`
}
func (*StartPodResponse) Descriptor ¶
func (*StartPodResponse) Descriptor() ([]byte, []int)
func (*StartPodResponse) GetPod ¶
func (m *StartPodResponse) GetPod() *Pod
func (*StartPodResponse) ProtoMessage ¶
func (*StartPodResponse) ProtoMessage()
func (*StartPodResponse) Reset ¶
func (m *StartPodResponse) Reset()
func (*StartPodResponse) String ¶
func (m *StartPodResponse) String() string
Click to show internal directories.
Click to hide internal directories.