Versions in this module Expand all Collapse all v0 v0.0.13 Jun 7, 2026 v0.0.12 Nov 6, 2025 v0.0.11 Jun 20, 2025 Changes in this version + type RuntimeInfo struct + InternalHostname string + NetworkLatency time.Duration + Runtime string + func ExtractRuntimeInfo(ctx context.Context, cli *client.Client) (*RuntimeInfo, error) v0.0.10 Aug 29, 2024 v0.0.9 Aug 24, 2024 v0.0.8 Jul 16, 2024 v0.0.7 Jul 10, 2024 v0.0.6 May 30, 2024 v0.0.5 Feb 25, 2024 v0.0.4 Feb 21, 2024 v0.0.3 Feb 17, 2024 v0.0.2 Dec 24, 2023 v0.0.1 Dec 19, 2023 Changes in this version + const ComponentType + type BindOptions struct + CreateMountpoint bool + NonRecursive bool + Propagation mount.Propagation + type Component struct + func (c *Component) AttachEnvironment(ctx context.Context, env *envite.Environment, writer *envite.Writer) error + func (c *Component) Cleanup(ctx context.Context) error + func (c *Component) Config() any + func (c *Component) ContainerName() string + func (c *Component) EnvVars() map[string]string + func (c *Component) Exec(ctx context.Context, cmd []string) (int, error) + func (c *Component) Host() string + func (c *Component) ID() string + func (c *Component) Logger() envite.Logger + func (c *Component) Prepare(ctx context.Context) error + func (c *Component) Start(ctx context.Context) error + func (c *Component) Status(context.Context) (envite.ComponentStatus, error) + func (c *Component) Stop(ctx context.Context) error + func (c *Component) Type() string + func (c *Component) Writer() *envite.Writer + type Config struct + Annotations map[string]string + ArgsEscaped bool + AttachStderr bool + AttachStdin bool + AttachStdout bool + Binds []string + CapAdd StrSlice + CapDrop StrSlice + Cgroup container.CgroupSpec + CgroupnsMode container.CgroupnsMode + Cmd StrSlice + ConsoleSize []uint + ContainerIDFile string + DNS []string + DNSOptions []string + DNSSearch []string + Domainname string + Entrypoint StrSlice + Env map[string]string + ExtraHosts []string + GroupAdd []string + Healthcheck *Healthcheck + Hostname string + Image string + ImagePullOptions *ImagePullOptions + Init *bool + IpcMode container.IpcMode + Isolation container.Isolation + Labels map[string]string + Links []string + LogConfig *LogConfig + MacAddress string + MaskedPaths []string + Mounts []Mount + Name string + NetworkDisabled bool + OnBuild []string + OomScoreAdj int + OpenStdin bool + PidMode container.PidMode + PlatformConfig *PlatformConfig + Ports []Port + Privileged bool + PublishAllPorts bool + ReadonlyPaths []string + ReadonlyRootfs bool + Resources *Resources + RestartPolicy *RestartPolicy + Runtime string + SecurityOpt []string + Shell StrSlice + ShmSize int64 + StdinOnce bool + StopSignal string + StopTimeout *int + StorageOpt map[string]string + Sysctls map[string]string + Tmpfs map[string]string + Tty bool + UTSMode container.UTSMode + User string + UsernsMode container.UsernsMode + VolumeDriver string + Volumes map[string]struct{} + VolumesFrom []string + Waiters []Waiter + WorkingDir string + type DeviceMapping struct + CgroupPermissions string + PathInContainer string + PathOnHost string + type DeviceRequest struct + Capabilities [][]string + Count int + DeviceIDs []string + Driver string + Options map[string]string + type Driver struct + Name string + Options map[string]string + type ErrContainerStopped struct + func (e ErrContainerStopped) Error() string + type ErrInvalidConfig struct + Msg string + Property string + func (e ErrInvalidConfig) Error() string + type ErrInvalidWaiterType struct + Type WaiterType + func (e ErrInvalidWaiterType) Error() string + type ErrNetworkNotExist struct + func (e ErrNetworkNotExist) Error() string + type Healthcheck struct + Interval time.Duration + Retries int + StartPeriod time.Duration + Test []string + Timeout time.Duration + type ImagePullOptions struct + All bool + Disabled bool + Platform string + PrivilegeFunc types.RequestPrivilegeFunc + RegistryAuth string + RegistryAuthFunc func() (string, error) + type LogConfig struct + Config map[string]string + Type string + type Mount struct + BindOptions *BindOptions + Consistency mount.Consistency + OnMount func() + ReadOnly bool + Source string + Target string + TmpfsOptions *TmpfsOptions + Type mount.Type + VolumeOptions *VolumeOptions + type Network struct + ID string + KeepStoppedContainers bool + OnNewComponent func(*Config) + func NewNetwork(cli *client.Client, networkIdentifier, envID string) (*Network, error) + func (n *Network) NewComponent(config Config) (*Component, error) + type PlatformConfig struct + Architecture string + OS string + OSFeatures []string + OSVersion string + Variant string + type Port struct + Port string + Protocol string + type Resources struct + BlkioDeviceReadBps []ThrottleDevice + BlkioDeviceReadIOps []ThrottleDevice + BlkioDeviceWriteBps []ThrottleDevice + BlkioDeviceWriteIOps []ThrottleDevice + BlkioWeight uint16 + BlkioWeightDevice []WeightDevice + CPUCount int64 + CPUPercent int64 + CPUPeriod int64 + CPUQuota int64 + CPURealtimePeriod int64 + CPURealtimeRuntime int64 + CPUShares int64 + CgroupParent string + CpusetCpus string + CpusetMems string + DeviceCgroupRules []string + DeviceRequests []DeviceRequest + Devices []DeviceMapping + IOMaximumBandwidth uint64 + IOMaximumIOps uint64 + KernelMemoryTCP int64 + Memory int64 + MemoryReservation int64 + MemorySwap int64 + MemorySwappiness *int64 + NanoCPUs int64 + OomKillDisable *bool + PidsLimit *int64 + Ulimits []Ulimit + type RestartPolicy struct + MaximumRetryCount int + Name string + type StrSlice strslice.StrSlice + func (s *StrSlice) UnmarshalYAML(value *yaml.Node) error + type ThrottleDevice struct + Path string + Rate uint64 + type TmpfsOptions struct + Mode os.FileMode + SizeBytes int64 + type Ulimit struct + Hard int64 + Name string + Soft int64 + type VolumeOptions struct + DriverConfig *Driver + Labels map[string]string + NoCopy bool + type Waiter struct + Duration string + Regex string + String string + Type WaiterType + func WaitForDuration(duration string) Waiter + func WaitForLog(s string) Waiter + func WaitForLogRegex(regexp string) Waiter + type WaiterType string + const WaiterTypeDuration + const WaiterTypeRegex + const WaiterTypeString + type WeightDevice struct + Path string + Weight uint16