cli

package
v0.0.0-...-42fb9ca Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright © 2022 Hypergiant, LLC

Licensed under the Apache License, Version 2.0 (the "License"); 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient struct {
	Cli client.Client
	Ctx context.Context
}

func NewDockerClient

func NewDockerClient() *DockerClient

func (*DockerClient) BuildImage

func (dockerClient *DockerClient) BuildImage(dockerfilePath string, tags []string)

func (*DockerClient) CreateContainer

func (dockerClient *DockerClient) CreateContainer(
	image, name string, contConfig *container.Config,
	hostConfig *container.HostConfig, pullImage bool,
) (string, error)

func (*DockerClient) CreateDockerFile

func (dockerClient *DockerClient) CreateDockerFile(studyPath string, savePath string, requirements bool, syncOptions HyperTypes.WorkspaceSyncOptions)

func (*DockerClient) ExecuteContainer

func (dockerClient *DockerClient) ExecuteContainer(containerID string, attach bool)

func (*DockerClient) InspectContainer

func (dockerClient *DockerClient) InspectContainer(containerId string) types.ContainerJSON

func (*DockerClient) ListAllRunningContainers

func (dockerClient *DockerClient) ListAllRunningContainers() ([]types.Container, error)

func (*DockerClient) ListContainers

func (dockerClient *DockerClient) ListContainers(containerName string) ([]types.Container, error)

func (*DockerClient) ListImages

func (dockerClient *DockerClient) ListImages() ([]types.ImageSummary, error)

func (*DockerClient) RemoveContainer

func (dockerClient *DockerClient) RemoveContainer(containerId string) error

type HyperPackageDockerfileParameters

type HyperPackageDockerfileParameters struct {
	StudyPath string
}

Jump to

Keyboard shortcuts

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