Versions in this module Expand all Collapse all v0 v0.4.0 Dec 15, 2024 Changes in this version + type Capabilities struct + Add types.List + Drop types.List + func (m Capabilities) AttrType() map[string]attr.Type + func (m Capabilities) ModelType() attr.Type + type ComposeContent struct + type ComposeContentBuilder struct + func NewComposeContentBuilder(ctx context.Context) *ComposeContentBuilder + func (c *ComposeContentBuilder) Build(content *string) diag.Diagnostics + func (c *ComposeContentBuilder) SetConfigs(configs *types.Map) *ComposeContentBuilder + func (c *ComposeContentBuilder) SetNetworks(networks *types.Map) *ComposeContentBuilder + func (c *ComposeContentBuilder) SetSecrets(secrets *types.Map) *ComposeContentBuilder + func (c *ComposeContentBuilder) SetServices(services *types.Map) *ComposeContentBuilder + func (c *ComposeContentBuilder) SetVolumes(volumes *types.Map) *ComposeContentBuilder + type Config struct + Content types.String + File types.String + Name types.String + func (m *Config) FromComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics) + func (m Config) AsComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics) + func (m Config) AttrType() map[string]attr.Type + func (m Config) ModelType() attr.Type + func (m Config) Value() attr.Value + type HealthCheck struct + Interval timetypes.GoDuration + Retries types.Number + StartInterval timetypes.GoDuration + StartPeriod timetypes.GoDuration + Test types.List + Timeout timetypes.GoDuration + func (m HealthCheck) AttrType() map[string]attr.Type + func (m HealthCheck) ModelType() attr.Type + type IPAMConfig struct + Configs types.List + Driver types.String + func (m IPAMConfig) AttrType() map[string]attr.Type + func (m IPAMConfig) ModelType() attr.Type + type IPAMPool struct + AuxAddress types.Map + Gateway types.String + IPRange types.String + Subnet types.String + func (m IPAMPool) AttrType() map[string]attr.Type + func (m IPAMPool) ModelType() attr.Type + type Logging struct + Driver types.String + Options types.Map + func (m Logging) AttrType() map[string]attr.Type + func (m Logging) ModelType() attr.Type + type Network struct + Attachable types.Bool + Driver types.String + DriverOpts types.Map + EnableIPv6 types.Bool + External types.Bool + Internal types.Bool + Ipam types.Object + Labels types.Map + Name types.String + func (m *Network) FromComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics) + func (m Network) AsComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics) + func (m Network) AttrType() map[string]attr.Type + func (m Network) ModelType() attr.Type + type Port struct + AppProtocol types.String + HostIP types.String + Mode types.String + Name types.String + Protocol types.String + Published types.String + Target types.Int64 + func (m Port) AttrType() map[string]attr.Type + func (m Port) ModelType() attr.Type + type Secret struct + Content types.String + File types.String + Name types.String + func (m *Secret) FromComposeConfig(ctx context.Context, volume *composetypes.SecretConfig) (d diag.Diagnostics) + func (m Secret) AsComposeConfig(ctx context.Context, secret *composetypes.SecretConfig) (d diag.Diagnostics) + func (m Secret) AttrType() map[string]attr.Type + func (m Secret) ModelType() attr.Type + func (m Secret) Value() attr.Value + type Service struct + CapAdd types.List + CapDrop types.List + Capabilities types.Object + Command types.List + Configs types.List + ContainerName types.String + DNS types.List + Dependencies types.Map + Entrypoint types.List + Environment types.Map + HealthCheck types.Object + Image types.String + Labels types.Map + Logging types.Object + MemLimit types.String + NetworkMode types.String + Networks types.Map + Ports types.List + Privileged types.Bool + Replicas types.Int64 + Restart types.String + Secrets types.List + SecurityOpt types.List + Sysctls types.Map + Tmpfs types.List + Ulimits types.Map + User types.String + Volumes types.List + func (m *Service) FromComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics) + func (m Service) AsComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics) + func (m Service) AttrType() map[string]attr.Type + func (m Service) ModelType() attr.Type + func (m Service) Value() attr.Value + type ServiceConfig struct + GID types.String + Mode types.String + Source types.String + Target types.String + UID types.String + func (m ServiceConfig) AttrType() map[string]attr.Type + func (m ServiceConfig) ModelType() attr.Type + type ServiceDependency struct + Condition types.String + Restart types.Bool + func (m ServiceDependency) AttrType() map[string]attr.Type + func (m ServiceDependency) ModelType() attr.Type + type ServiceNetwork struct + Aliases types.Set + DriverOpts types.Map + Ipv4Address types.String + Ipv6Address types.String + LinkLocalIPs types.Set + MacAddress types.String + Name types.String + Priority types.Int64 + func (m ServiceNetwork) AttrType() map[string]attr.Type + func (m ServiceNetwork) ModelType() attr.Type + func (m ServiceNetwork) Value() attr.Value + type ServicePortal struct + Enable types.Bool + Name types.String + Port types.Int64 + Protocol types.String + func (s *ServicePortal) First(ctx context.Context, m types.Set) diag.Diagnostics + type ServiceVolume struct + Bind types.Object + ReadOnly types.Bool + Source types.String + Target types.String + Type types.String + func (m ServiceVolume) AttrType() map[string]attr.Type + func (m ServiceVolume) ModelType() attr.Type + type Ulimit struct + Hard types.Int64 + Soft types.Int64 + Value types.Int64 + func (m Ulimit) AttrType() map[string]attr.Type + func (m Ulimit) ModelType() attr.Type + type Volume struct + Driver types.String + DriverOpts types.Map + External types.Bool + Labels types.Map + Name types.String + func (m *Volume) FromComposeConfig(ctx context.Context, volume *composetypes.VolumeConfig) (d diag.Diagnostics) + func (m Volume) AsComposeConfig(ctx context.Context, network *composetypes.VolumeConfig) (d diag.Diagnostics) + func (m Volume) AttrType() map[string]attr.Type + func (m Volume) ModelType() attr.Type + type VolumeBind struct + CreateHostPath types.Bool + Propagation types.String + SELinux types.String + func (m VolumeBind) AttrType() map[string]attr.Type + func (m VolumeBind) ModelType() attr.Type