docker

package
v0.0.0-...-35696f1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName = "vmclarity"

	ContainerStateRunning = "running"
	ContainerStateExited  = "exited"
	ContainerStateDead    = "dead"
	ContainerStateHealthy = "healthy"
)

Variables

This section is empty.

Functions

func ClientOptsWithSSHConn

func ClientOptsWithSSHConn(_ context.Context, workDir string, keys *utils.SSHKeyPair, input *utils.SSHForwardInput) ([]client.Opt, error)

Types

type DockerHelper

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

func New

func New(opts []client.Opt) (*DockerHelper, error)

func (*DockerHelper) Services

func (e *DockerHelper) Services(ctx context.Context) (envtypes.Services, error)

func (*DockerHelper) ServicesReady

func (e *DockerHelper) ServicesReady(ctx context.Context) (bool, error)

type Service

type Service struct {
	ID          string
	Namespace   string
	Application string
	Component   string
	State       envtypes.ServiceState
}

Service is the types.Service interface implementation.

func (Service) GetApplicationName

func (s Service) GetApplicationName() string

func (Service) GetComponentName

func (s Service) GetComponentName() string

func (Service) GetID

func (s Service) GetID() string

func (Service) GetNamespace

func (s Service) GetNamespace() string

func (Service) GetState

func (s Service) GetState() envtypes.ServiceState

func (Service) String

func (s Service) String() string

type ServiceCollection

type ServiceCollection map[string]*Service

func (ServiceCollection) AsServices

func (c ServiceCollection) AsServices() envtypes.Services

func (ServiceCollection) ServiceNames

func (c ServiceCollection) ServiceNames() []string

Jump to

Keyboard shortcuts

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