delixir

package
v0.0.0-...-9cd3f72 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerData

type ContainerData struct {
	ContainerID string
	ImageID     string
	State       string
}

ContainerData represents container data

type DockerClient

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

DockerClient represents docker client

func NewDockerClient

func NewDockerClient(p DockerClientParams) (*DockerClient, error)

NewDockerClient creates new Docker client

func (*DockerClient) CheckAndUpdateContainer

func (dc *DockerClient) CheckAndUpdateContainer(ctx context.Context)

CheckAndUpdateContainer image

type DockerClientParams

type DockerClientParams struct {
	EnvVars       []string
	Notifier      notifier.Notifier
	APIVersion    string
	ContainerName string
	Port          string
	RestartPolicy string
	ImageName     string
}

DockerClientParams represents docker client parameters

type EnvConfig

type EnvConfig struct {
	DisplayName     string
	BeneficiaryAddr string
	PrivateKey      string
}

EnvConfig represents environment configuration

func ParseEnvFile

func ParseEnvFile(filePath string) ([]string, EnvConfig, error)

ParseEnvFile reads the env file and returns a slice of environment variables

Jump to

Keyboard shortcuts

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