client

package
v0.0.0-...-004cd70 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package client provides Docker client initiatialisation functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContext

func CreateContext(contextName string, user string, port string) error

func DeleteContext

func DeleteContext(name string) error

func GetContext

func GetContext(contextName string) (contextStore.Metadata, error)

func GetRegistryTags

func GetRegistryTags(img reference.Named) ([]string, error)

GetRegistryTags retrieves all tags of an image from a container registry.

func GetVolumeNames

func GetVolumeNames(volumes []*volume.Volume) []string

func GetVolumes

func GetVolumes(cl *client.Client, ctx context.Context, server string, fs filters.Args) ([]*volume.Volume, error)

func New

func New(serverName string) (*client.Client, error)

New initiates a new Docker client. New client connections are validated so that we ensure connections via SSH to the daemon can succeed. It takes into account that you may only want the local client and not communicate via SSH. For this use-case, please pass "default" as the contextName.

func RemoveVolumes

func RemoveVolumes(cl *client.Client, ctx context.Context, volumeNames []string, force bool, retries int) error

func StoreSecret

func StoreSecret(cl *client.Client, secretName, secretValue, server string) error

Types

type Context

type Context = contextStore.Metadata

Jump to

Keyboard shortcuts

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