crio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(socket string) (types.Client, error)

Types

type Client

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

Client implements the engines.Client interface for CRI-O

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetPid

func (c *Client) GetPid(ctx context.Context, containerId string) (int, error)

func (*Client) List

func (c *Client) List(ctx context.Context) ([]types.Container, error)

func (*Client) Pause

func (c *Client) Pause(_ context.Context, _ string) error

func (*Client) Runtime

func (c *Client) Runtime() types.Runtime

func (*Client) Socket

func (c *Client) Socket() string

func (*Client) Stop

func (c *Client) Stop(ctx context.Context, id string, graceful bool) error

func (*Client) Unpause

func (c *Client) Unpause(_ context.Context, _ string) error

func (*Client) Version

func (c *Client) Version(ctx context.Context) (string, error)

type Container

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

Container implements the types.Container interface for CRI

func (*Container) Id

func (c *Container) Id() string

func (*Container) ImageName

func (c *Container) ImageName() string

func (*Container) Labels

func (c *Container) Labels() map[string]string

func (*Container) Names

func (c *Container) Names() []string

Jump to

Keyboard shortcuts

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