Documentation
      ¶
    
    
  
    
  
    Index ¶
- type AttachHooks
 - type AttachIO
 - type Client
 - func (c *Client) Attach(containerID string, attachIO AttachIO, hooks ...AttachHooks) (err error)
 - func (c *Client) CreatePod(status chan<- []*progress.ImageFetch, pod *pods.Pod, opts ...PodOpts) error
 - func (c *Client) DeletePod(pod *pods.Pod) (*pods.Pod, error)
 - func (c *Client) Exec(containerID string, args []string, tty bool, attachIO AttachIO, ...) (err error)
 - func (c *Client) GetInfo() (*node.Info, error)
 - func (c *Client) GetPod(podName string) (*pods.Pod, error)
 - func (c *Client) GetPods() ([]*pods.Pod, error)
 - func (c *Client) Signal(containerID string, signal syscall.Signal) (err error)
 - func (c *Client) StartPod(name string) (*pods.Pod, error)
 
- type PodOpts
 - type Server
 - func (s *Server) Attach(server containers.Containers_AttachServer) error
 - func (s *Server) Create(req *pods.CreatePodRequest, server pods.Pods_CreateServer) error
 - func (s *Server) Delete(context context.Context, req *pods.DeletePodRequest) (*pods.DeletePodResponse, error)
 - func (s *Server) Exec(server containers.Containers_ExecServer) error
 - func (s *Server) Info(context context.Context, req *node.InfoRequest) (*node.InfoResponse, error)
 - func (s *Server) List(context context.Context, req *pods.ListPodsRequest) (*pods.ListPodsResponse, error)
 - func (s *Server) Serve()
 - func (s *Server) Signal(cxt context.Context, req *containers.SignalRequest) (*containers.SignalResponse, error)
 - func (s *Server) Start(context context.Context, req *pods.StartPodRequest) (*pods.StartPodResponse, error)
 - func (s *Server) Stop()
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachHooks ¶
AttachHooks is additional process what runs when is attached to container
type AttachIO ¶
AttachIO wraps stdin/stdout for attach
type Client ¶
type Client struct {
	Namespace string
	Endpoint  config.Endpoint
	// contains filtered or unexported fields
}
    Client connects directly to node RPC API
func NewClient ¶ added in v0.2.3
NewClient creates new RPC server client
func (*Client) Attach ¶
func (c *Client) Attach(containerID string, attachIO AttachIO, hooks ...AttachHooks) (err error)
Attach hooks to container main process stdin/stout
func (*Client) CreatePod ¶
func (c *Client) CreatePod(status chan<- []*progress.ImageFetch, pod *pods.Pod, opts ...PodOpts) error
CreatePod creates new pod to the node
func (*Client) DeletePod ¶
DeletePod removes pod from the node
func (*Client) Exec ¶ added in v0.2.3
func (c *Client) Exec(containerID string, args []string, tty bool, attachIO AttachIO, hooks ...AttachHooks) (err error)
Exec executes command inside some container
func (*Client) GetInfo ¶ added in v0.2.3
GetInfo calls server and get node info
func (*Client) GetPod ¶
GetPod return Pod by name
func (*Client) GetPods ¶
GetPods calls server and fetches all pods information
func (*Client) Signal ¶
Signal sends kill signal to container process
type PodOpts ¶
PodOpts adds more information to the Pod going to be created
func WithContainer ¶
func WithContainer(container *containers.Container) PodOpts
WithContainer adds container to the Pod spec
func WithSharedMount ¶
func WithSharedMount(mounts ...*containers.Mount) PodOpts
WithSharedMount adds mount point to each container
type Server ¶
type Server struct {
	// contains filtered or unexported fields
}
    Server implements the GRPC API for the eli
func NewServer ¶
NewServer creates new API server
func (*Server) Attach ¶
func (s *Server) Attach(server containers.Containers_AttachServer) error
Attach connects to process in container and streams stdout and stderr outputs to client
func (*Server) Create ¶
func (s *Server) Create(req *pods.CreatePodRequest, server pods.Pods_CreateServer) error
Create is 'pods' service Create implementation
func (*Server) Delete ¶
func (s *Server) Delete(context context.Context, req *pods.DeletePodRequest) (*pods.DeletePodResponse, error)
Delete is 'pods' service Delete implementation
func (*Server) Exec ¶ added in v0.2.3
func (s *Server) Exec(server containers.Containers_ExecServer) error
Exec connects to process in container and streams stdout and stderr outputs to client
func (*Server) Info ¶ added in v0.2.3
func (s *Server) Info(context context.Context, req *node.InfoRequest) (*node.InfoResponse, error)
Info is Node service Info implementation
func (*Server) List ¶
func (s *Server) List(context context.Context, req *pods.ListPodsRequest) (*pods.ListPodsResponse, error)
List is 'pods' service List implementation
func (*Server) Signal ¶
func (s *Server) Signal(cxt context.Context, req *containers.SignalRequest) (*containers.SignalResponse, error)
Signal connects to process in container and send signal to the process
func (*Server) Start ¶
func (s *Server) Start(context context.Context, req *pods.StartPodRequest) (*pods.StartPodResponse, error)
Start is 'pods' service Start implementation
      
      Source Files
      ¶
    
- client.go
 - interface.go
 - pod_opts.go
 - server.go
 
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package core is a generated protocol buffer package. 
         | 
      Package core is a generated protocol buffer package. | 
| 
       services
        | 
      |
| 
         
          
            containers/v1
            
            
          
           
      Package containers is a generated protocol buffer package. 
         | 
      Package containers is a generated protocol buffer package. | 
| 
         
          
            node/v1
            
            
          
           
      Package node is a generated protocol buffer package. 
         | 
      Package node is a generated protocol buffer package. | 
| 
         
          
            pods/v1
            
            
          
           
      Package pods is a generated protocol buffer package. 
         | 
      Package pods is a generated protocol buffer package. |