docker

package
v0.0.0-...-7b8a371 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient interface {
	Close() error
	RegistryLogin(ctx context.Context) (string, error)
	TryPullImage(ctx context.Context, imageName, imageDigest string) error // 尝试拉取镜像,如果已经存在,则不会拉取
	GenerateCode(ctx context.Context, pluginName, imageName, imageDigest string, request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
}

func NewDockerClient

func NewDockerClient(serverAddress, username, password string) (DockerClient, error)

Jump to

Keyboard shortcuts

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