cri

package
v0.0.0-...-97eb137 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2018 Iguazio Systems Ltd.

Licensed under the Apache License, Version 2.0 (the "License") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

In addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.

Copyright 2018 Iguazio Systems Ltd.

Licensed under the Apache License, Version 2.0 (the "License") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

In addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.

Copyright 2018 Iguazio Systems Ltd.

Licensed under the Apache License, Version 2.0 (the "License") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

In addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRI

type CRI interface {

	// CreateContainer creates a container
	CreateContainer(string, string, string, []string) error

	// RemoveContainer removes a container
	RemoveContainer(string) error

	// Close closes a CRI
	Close() error
}

type Containerd

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

func NewContainerd

func NewContainerd(containerdSock string, contextName string) (*Containerd, error)

func (*Containerd) Close

func (c *Containerd) Close() error

func (*Containerd) CreateContainer

func (c *Containerd) CreateContainer(image string,
	containerName string,
	targetPath string,
	args []string) error

CreateContainer creates a container

func (*Containerd) RemoveContainer

func (c *Containerd) RemoveContainer(containerName string) error

RemoveContainer removes a container

type Docker

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

func NewDocker

func NewDocker(dockerBinaryPath string) (*Docker, error)

func (*Docker) Close

func (d *Docker) Close() error

func (*Docker) CreateContainer

func (d *Docker) CreateContainer(image string,
	containerName string,
	targetPath string,
	args []string) error

CreateContainer creates a container

func (*Docker) RemoveContainer

func (d *Docker) RemoveContainer(containerName string) error

RemoveContainer removes a container

Jump to

Keyboard shortcuts

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