docker

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Packager docker provides common utilities for managing containerized AIS deployments

  • Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterEndpoint

func ClusterEndpoint(i int) (string, error)

func ClusterIDs

func ClusterIDs() ([]int, error)

ClusterIDs returns all IDs of running ais docker clusters

func Connect

func Connect(containerID string, networks []string) error

Connect connects specific containerID to all provided networks.

func CreateMpathDir

func CreateMpathDir(c int, mpathFQN string) (err error)

CreateMpathDir creates a directory that will be used as a mountpath for each target in cluster c

func Disconnect

func Disconnect(containerID string) ([]string, error)

Disconnect disconnects specific containerID from all networks. Returns networks from which the container has been disconnected.

func IsRunning

func IsRunning() bool

DockerRunning returns true if docker-based AIStore cluster is detected

func ProxiesInCluster

func ProxiesInCluster(i int) (ans []string)

ProxiesInCluster returns the names of the targets in cluster i

func RemoveMpathDir

func RemoveMpathDir(c int, mpathFQN string) (err error)

RemoveMpathDir removes a directory named mpathFQN for each target in cluster c

func Restart

func Restart(cid string) error

Restart restores previously killed target or proxy with given container id

func Stop

func Stop(cid string) error

Stop simulates killing a target or proxy (by given container id)

func TargetsInCluster

func TargetsInCluster(i int) (ans []string)

TargetsInCluster returns the names of the targets in cluster i

Types

This section is empty.

Jump to

Keyboard shortcuts

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