Documentation
¶
Index ¶
- type Capabilities
- type ComposeContent
- type 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
- func (m Config) AsComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics)
- func (m Config) AttrType() map[string]attr.Type
- func (m *Config) FromComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics)
- func (m Config) ModelType() attr.Type
- func (m Config) Value() attr.Value
- type HealthCheck
- type IPAMConfig
- type IPAMPool
- type Logging
- type Network
- func (m Network) AsComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics)
- func (m Network) AttrType() map[string]attr.Type
- func (m *Network) FromComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics)
- func (m Network) ModelType() attr.Type
- type Port
- type Secret
- func (m Secret) AsComposeConfig(ctx context.Context, secret *composetypes.SecretConfig) (d diag.Diagnostics)
- func (m Secret) AttrType() map[string]attr.Type
- func (m *Secret) FromComposeConfig(ctx context.Context, volume *composetypes.SecretConfig) (d diag.Diagnostics)
- func (m Secret) ModelType() attr.Type
- func (m Secret) Value() attr.Value
- type Service
- func (m Service) AsComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics)
- func (m Service) AttrType() map[string]attr.Type
- func (m *Service) FromComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics)
- func (m Service) ModelType() attr.Type
- func (m Service) Value() attr.Value
- type ServiceConfig
- type ServiceDependency
- type ServiceNetwork
- type ServicePortal
- type ServiceVolume
- type Ulimit
- type Volume
- func (m Volume) AsComposeConfig(ctx context.Context, network *composetypes.VolumeConfig) (d diag.Diagnostics)
- func (m Volume) AttrType() map[string]attr.Type
- func (m *Volume) FromComposeConfig(ctx context.Context, volume *composetypes.VolumeConfig) (d diag.Diagnostics)
- func (m Volume) ModelType() attr.Type
- type VolumeBind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
func (Capabilities) ModelType ¶
func (m Capabilities) ModelType() attr.Type
type ComposeContent ¶
type ComposeContentBuilder ¶
type ComposeContentBuilder struct {
// contains filtered or unexported fields
}
func NewComposeContentBuilder ¶
func NewComposeContentBuilder(ctx context.Context) *ComposeContentBuilder
func (*ComposeContentBuilder) Build ¶
func (c *ComposeContentBuilder) Build(content *string) diag.Diagnostics
func (*ComposeContentBuilder) SetConfigs ¶
func (c *ComposeContentBuilder) SetConfigs(configs *types.Map) *ComposeContentBuilder
func (*ComposeContentBuilder) SetNetworks ¶
func (c *ComposeContentBuilder) SetNetworks(networks *types.Map) *ComposeContentBuilder
func (*ComposeContentBuilder) SetSecrets ¶
func (c *ComposeContentBuilder) SetSecrets(secrets *types.Map) *ComposeContentBuilder
func (*ComposeContentBuilder) SetServices ¶
func (c *ComposeContentBuilder) SetServices(services *types.Map) *ComposeContentBuilder
func (*ComposeContentBuilder) SetVolumes ¶
func (c *ComposeContentBuilder) SetVolumes(volumes *types.Map) *ComposeContentBuilder
type Config ¶
type Config struct { Name types.String `tfsdk:"name"` Content types.String `tfsdk:"content"` File types.String `tfsdk:"file"` }
func (Config) AsComposeConfig ¶
func (m Config) AsComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics)
func (*Config) FromComposeConfig ¶
func (m *Config) FromComposeConfig(ctx context.Context, config *composetypes.ConfigObjConfig) (d diag.Diagnostics)
type HealthCheck ¶
type HealthCheck struct { Test types.List `tfsdk:"test"` Interval timetypes.GoDuration `tfsdk:"interval"` Timeout timetypes.GoDuration `tfsdk:"timeout"` StartInterval timetypes.GoDuration `tfsdk:"start_interval"` StartPeriod timetypes.GoDuration `tfsdk:"start_period"` Retries types.Number `tfsdk:"retries"` }
func (HealthCheck) ModelType ¶
func (m HealthCheck) ModelType() attr.Type
type IPAMConfig ¶
func (IPAMConfig) ModelType ¶
func (m IPAMConfig) ModelType() attr.Type
type IPAMPool ¶
type Network ¶
type Network struct { Name types.String `tfsdk:"name"` Driver types.String `tfsdk:"driver"` DriverOpts types.Map `tfsdk:"driver_opts"` Ipam types.Object `tfsdk:"ipam"` External types.Bool `tfsdk:"external"` Internal types.Bool `tfsdk:"internal"` Attachable types.Bool `tfsdk:"attachable"` Labels types.Map `tfsdk:"labels"` EnableIPv6 types.Bool `tfsdk:"enable_ipv6"` }
func (Network) AsComposeConfig ¶
func (m Network) AsComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics)
func (*Network) FromComposeConfig ¶
func (m *Network) FromComposeConfig(ctx context.Context, network *composetypes.NetworkConfig) (d diag.Diagnostics)
type Port ¶
type Secret ¶
type Secret struct { Name types.String `tfsdk:"name"` Content types.String `tfsdk:"content"` File types.String `tfsdk:"file"` }
func (Secret) AsComposeConfig ¶
func (m Secret) AsComposeConfig(ctx context.Context, secret *composetypes.SecretConfig) (d diag.Diagnostics)
func (*Secret) FromComposeConfig ¶
func (m *Secret) FromComposeConfig(ctx context.Context, volume *composetypes.SecretConfig) (d diag.Diagnostics)
type Service ¶
type Service struct { ContainerName types.String `tfsdk:"container_name"` Image types.String `tfsdk:"image"` MemLimit types.String `tfsdk:"mem_limit"` Entrypoint types.List `tfsdk:"entrypoint"` Command types.List `tfsdk:"command"` Replicas types.Int64 `tfsdk:"replicas"` Logging types.Object `tfsdk:"logging"` Ports types.List `tfsdk:"ports"` Networks types.Map `tfsdk:"networks"` NetworkMode types.String `tfsdk:"network_mode"` HealthCheck types.Object `tfsdk:"healthcheck"` SecurityOpt types.List `tfsdk:"security_opt"` Volumes types.List `tfsdk:"volumes"` Dependencies types.Map `tfsdk:"depends_on"` Privileged types.Bool `tfsdk:"privileged"` Tmpfs types.List `tfsdk:"tmpfs"` Ulimits types.Map `tfsdk:"ulimits"` Environment types.Map `tfsdk:"environment"` Restart types.String `tfsdk:"restart"` Configs types.List `tfsdk:"configs"` Secrets types.List `tfsdk:"secrets"` Labels types.Map `tfsdk:"labels"` DNS types.List `tfsdk:"dns"` User types.String `tfsdk:"user"` Capabilities types.Object `tfsdk:"capabilities"` CapAdd types.List `tfsdk:"cap_add"` CapDrop types.List `tfsdk:"cap_drop"` Sysctls types.Map `tfsdk:"sysctls"` }
func (Service) AsComposeConfig ¶
func (m Service) AsComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics)
func (*Service) FromComposeConfig ¶
func (m *Service) FromComposeConfig(ctx context.Context, service *composetypes.ServiceConfig) (d diag.Diagnostics)
type ServiceConfig ¶
type ServiceConfig struct { Source types.String `tfsdk:"source"` Target types.String `tfsdk:"target"` UID types.String `tfsdk:"uid"` GID types.String `tfsdk:"gid"` Mode types.String `tfsdk:"mode"` }
func (ServiceConfig) ModelType ¶
func (m ServiceConfig) ModelType() attr.Type
type ServiceDependency ¶
type ServiceDependency struct { Condition types.String `tfsdk:"condition"` Restart types.Bool `tfsdk:"restart"` }
func (ServiceDependency) ModelType ¶
func (m ServiceDependency) ModelType() attr.Type
type ServiceNetwork ¶
type ServiceNetwork struct { Name types.String `tfsdk:"name"` Aliases types.Set `tfsdk:"aliases"` Ipv4Address types.String `tfsdk:"ipv4_address"` Ipv6Address types.String `tfsdk:"ipv6_address"` LinkLocalIPs types.Set `tfsdk:"link_local_ips"` MacAddress types.String `tfsdk:"mac_address"` DriverOpts types.Map `tfsdk:"driver_opts"` Priority types.Int64 `tfsdk:"priority"` }
func (ServiceNetwork) ModelType ¶
func (m ServiceNetwork) ModelType() attr.Type
func (ServiceNetwork) Value ¶
func (m ServiceNetwork) Value() attr.Value
type ServicePortal ¶
type ServicePortal struct { Enable types.Bool `tfsdk:"enable"` Name types.String `tfsdk:"name"` Port types.Int64 `tfsdk:"port"` Protocol types.String `tfsdk:"protocol"` }
func (*ServicePortal) First ¶
func (s *ServicePortal) First(ctx context.Context, m types.Set) diag.Diagnostics
type ServiceVolume ¶
type ServiceVolume struct { Source types.String `tfsdk:"source"` Target types.String `tfsdk:"target"` ReadOnly types.Bool `tfsdk:"read_only"` Bind types.Object `tfsdk:"bind"` Type types.String `tfsdk:"type"` }
func (ServiceVolume) ModelType ¶
func (m ServiceVolume) ModelType() attr.Type
type Ulimit ¶
type Volume ¶
type Volume struct { Name types.String `tfsdk:"name"` Driver types.String `tfsdk:"driver"` DriverOpts types.Map `tfsdk:"driver_opts"` External types.Bool `tfsdk:"external"` Labels types.Map `tfsdk:"labels"` }
func (Volume) AsComposeConfig ¶
func (m Volume) AsComposeConfig(ctx context.Context, network *composetypes.VolumeConfig) (d diag.Diagnostics)
func (*Volume) FromComposeConfig ¶
func (m *Volume) FromComposeConfig(ctx context.Context, volume *composetypes.VolumeConfig) (d diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.