ttrpcutil

package
v1.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the client to interact with TTRPC part of containerd server (plugins, events)

func NewClient

func NewClient(address string, opts ...ttrpc.ClientOpts) (*Client, error)

NewClient returns a new containerd TTRPC client that is connected to the containerd instance provided by address

func (*Client) Client

func (c *Client) Client() *ttrpc.Client

Client returns the underlying TTRPC client object

func (*Client) Close

func (c *Client) Close() error

Close closes the clients TTRPC connection to containerd

func (*Client) EventsService

func (c *Client) EventsService() v1.EventsService

EventsService creates an EventsService client

func (*Client) Reconnect

func (c *Client) Reconnect() error

Reconnect re-establishes the TTRPC connection to the containerd daemon

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL