18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
732 lines
30 KiB
Go
Generated
732 lines
30 KiB
Go
Generated
// Code generated by pulumi-language-go DO NOT EDIT.
|
|
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
package dokploy
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"errors"
|
|
"github.com/maxvojtkov/pulumi-dokploy/sdk/go/dokploy/internal"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
type MySql struct {
|
|
pulumi.CustomResourceState
|
|
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
AppName pulumi.StringOutput `pulumi:"appName"`
|
|
// Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
|
|
ApplicationStatus pulumi.StringOutput `pulumi:"applicationStatus"`
|
|
// Arguments appended to the container command.
|
|
Args pulumi.StringArrayOutput `pulumi:"args"`
|
|
// Override the container entrypoint command.
|
|
Command pulumi.StringPtrOutput `pulumi:"command"`
|
|
// Hard CPU limit, for example `1`.
|
|
CpuLimit pulumi.StringPtrOutput `pulumi:"cpuLimit"`
|
|
// Soft CPU reservation, for example `0.5`.
|
|
CpuReservation pulumi.StringPtrOutput `pulumi:"cpuReservation"`
|
|
// RFC 3339 timestamp of when the database was created.
|
|
CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
|
|
// Name of the database to create.
|
|
DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
|
|
// Password for the database user.
|
|
DatabasePassword pulumi.StringOutput `pulumi:"databasePassword"`
|
|
// Password for the MySQL `root` user.
|
|
DatabaseRootPassword pulumi.StringOutput `pulumi:"databaseRootPassword"`
|
|
// Database user to create.
|
|
DatabaseUser pulumi.StringOutput `pulumi:"databaseUser"`
|
|
// Free-form description.
|
|
Description pulumi.StringPtrOutput `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolOutput `pulumi:"detachDokployNetwork"`
|
|
// MySQL image to run, for example `mysql:8`.
|
|
DockerImage pulumi.StringOutput `pulumi:"dockerImage"`
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
EndpointSpecSwarm pulumi.StringPtrOutput `pulumi:"endpointSpecSwarm"`
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
Env pulumi.StringPtrOutput `pulumi:"env"`
|
|
// Environment this database belongs to.
|
|
EnvironmentId pulumi.StringOutput `pulumi:"environmentId"`
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
ExternalPort pulumi.IntPtrOutput `pulumi:"externalPort"`
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
HealthCheckSwarm pulumi.StringPtrOutput `pulumi:"healthCheckSwarm"`
|
|
// Docker Swarm service labels, as a JSON object.
|
|
LabelsSwarm pulumi.StringPtrOutput `pulumi:"labelsSwarm"`
|
|
// Hard memory limit, for example `512m`.
|
|
MemoryLimit pulumi.StringPtrOutput `pulumi:"memoryLimit"`
|
|
// Soft memory reservation, for example `256m`.
|
|
MemoryReservation pulumi.StringPtrOutput `pulumi:"memoryReservation"`
|
|
// Docker Swarm service mode, as a JSON object.
|
|
ModeSwarm pulumi.StringPtrOutput `pulumi:"modeSwarm"`
|
|
// Display name of the database.
|
|
Name pulumi.StringOutput `pulumi:"name"`
|
|
// IDs of additional Docker networks to attach.
|
|
NetworkIds pulumi.StringArrayOutput `pulumi:"networkIds"`
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
NetworkSwarm pulumi.StringPtrOutput `pulumi:"networkSwarm"`
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
PlacementSwarm pulumi.StringPtrOutput `pulumi:"placementSwarm"`
|
|
// Number of replicas to run.
|
|
Replicas pulumi.IntOutput `pulumi:"replicas"`
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
RestartPolicySwarm pulumi.StringPtrOutput `pulumi:"restartPolicySwarm"`
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
RollbackConfigSwarm pulumi.StringPtrOutput `pulumi:"rollbackConfigSwarm"`
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
ServerId pulumi.StringPtrOutput `pulumi:"serverId"`
|
|
// Grace period in nanoseconds before a container is killed.
|
|
StopGracePeriodSwarm pulumi.IntPtrOutput `pulumi:"stopGracePeriodSwarm"`
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
UlimitsSwarm pulumi.StringPtrOutput `pulumi:"ulimitsSwarm"`
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
UpdateConfigSwarm pulumi.StringPtrOutput `pulumi:"updateConfigSwarm"`
|
|
}
|
|
|
|
// NewMySql registers a new resource with the given unique name, arguments, and options.
|
|
func NewMySql(ctx *pulumi.Context,
|
|
name string, args *MySqlArgs, opts ...pulumi.ResourceOption) (*MySql, error) {
|
|
if args == nil {
|
|
return nil, errors.New("missing one or more required arguments")
|
|
}
|
|
|
|
if args.DatabaseName == nil {
|
|
return nil, errors.New("invalid value for required argument 'DatabaseName'")
|
|
}
|
|
if args.DatabasePassword == nil {
|
|
return nil, errors.New("invalid value for required argument 'DatabasePassword'")
|
|
}
|
|
if args.DatabaseRootPassword == nil {
|
|
return nil, errors.New("invalid value for required argument 'DatabaseRootPassword'")
|
|
}
|
|
if args.DatabaseUser == nil {
|
|
return nil, errors.New("invalid value for required argument 'DatabaseUser'")
|
|
}
|
|
if args.DockerImage == nil {
|
|
return nil, errors.New("invalid value for required argument 'DockerImage'")
|
|
}
|
|
if args.EnvironmentId == nil {
|
|
return nil, errors.New("invalid value for required argument 'EnvironmentId'")
|
|
}
|
|
if args.DatabasePassword != nil {
|
|
args.DatabasePassword = pulumi.ToSecret(args.DatabasePassword).(pulumi.StringInput)
|
|
}
|
|
if args.DatabaseRootPassword != nil {
|
|
args.DatabaseRootPassword = pulumi.ToSecret(args.DatabaseRootPassword).(pulumi.StringInput)
|
|
}
|
|
secrets := pulumi.AdditionalSecretOutputs([]string{
|
|
"databasePassword",
|
|
"databaseRootPassword",
|
|
})
|
|
opts = append(opts, secrets)
|
|
opts = internal.PkgResourceDefaultOpts(opts)
|
|
var resource MySql
|
|
err := ctx.RegisterResource("dokploy:index/mySql:MySql", name, args, &resource, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resource, nil
|
|
}
|
|
|
|
// GetMySql gets an existing MySql resource's state with the given name, ID, and optional
|
|
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
|
func GetMySql(ctx *pulumi.Context,
|
|
name string, id pulumi.IDInput, state *MySqlState, opts ...pulumi.ResourceOption) (*MySql, error) {
|
|
var resource MySql
|
|
err := ctx.ReadResource("dokploy:index/mySql:MySql", name, id, state, &resource, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resource, nil
|
|
}
|
|
|
|
// Input properties used for looking up and filtering MySql resources.
|
|
type mySqlState struct {
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
AppName *string `pulumi:"appName"`
|
|
// Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
|
|
ApplicationStatus *string `pulumi:"applicationStatus"`
|
|
// Arguments appended to the container command.
|
|
Args []string `pulumi:"args"`
|
|
// Override the container entrypoint command.
|
|
Command *string `pulumi:"command"`
|
|
// Hard CPU limit, for example `1`.
|
|
CpuLimit *string `pulumi:"cpuLimit"`
|
|
// Soft CPU reservation, for example `0.5`.
|
|
CpuReservation *string `pulumi:"cpuReservation"`
|
|
// RFC 3339 timestamp of when the database was created.
|
|
CreatedAt *string `pulumi:"createdAt"`
|
|
// Name of the database to create.
|
|
DatabaseName *string `pulumi:"databaseName"`
|
|
// Password for the database user.
|
|
DatabasePassword *string `pulumi:"databasePassword"`
|
|
// Password for the MySQL `root` user.
|
|
DatabaseRootPassword *string `pulumi:"databaseRootPassword"`
|
|
// Database user to create.
|
|
DatabaseUser *string `pulumi:"databaseUser"`
|
|
// Free-form description.
|
|
Description *string `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork *bool `pulumi:"detachDokployNetwork"`
|
|
// MySQL image to run, for example `mysql:8`.
|
|
DockerImage *string `pulumi:"dockerImage"`
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
EndpointSpecSwarm *string `pulumi:"endpointSpecSwarm"`
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
Env *string `pulumi:"env"`
|
|
// Environment this database belongs to.
|
|
EnvironmentId *string `pulumi:"environmentId"`
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
ExternalPort *int `pulumi:"externalPort"`
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
HealthCheckSwarm *string `pulumi:"healthCheckSwarm"`
|
|
// Docker Swarm service labels, as a JSON object.
|
|
LabelsSwarm *string `pulumi:"labelsSwarm"`
|
|
// Hard memory limit, for example `512m`.
|
|
MemoryLimit *string `pulumi:"memoryLimit"`
|
|
// Soft memory reservation, for example `256m`.
|
|
MemoryReservation *string `pulumi:"memoryReservation"`
|
|
// Docker Swarm service mode, as a JSON object.
|
|
ModeSwarm *string `pulumi:"modeSwarm"`
|
|
// Display name of the database.
|
|
Name *string `pulumi:"name"`
|
|
// IDs of additional Docker networks to attach.
|
|
NetworkIds []string `pulumi:"networkIds"`
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
NetworkSwarm *string `pulumi:"networkSwarm"`
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
PlacementSwarm *string `pulumi:"placementSwarm"`
|
|
// Number of replicas to run.
|
|
Replicas *int `pulumi:"replicas"`
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
RestartPolicySwarm *string `pulumi:"restartPolicySwarm"`
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
RollbackConfigSwarm *string `pulumi:"rollbackConfigSwarm"`
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
ServerId *string `pulumi:"serverId"`
|
|
// Grace period in nanoseconds before a container is killed.
|
|
StopGracePeriodSwarm *int `pulumi:"stopGracePeriodSwarm"`
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
UlimitsSwarm *string `pulumi:"ulimitsSwarm"`
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
UpdateConfigSwarm *string `pulumi:"updateConfigSwarm"`
|
|
}
|
|
|
|
type MySqlState struct {
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
AppName pulumi.StringPtrInput
|
|
// Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
|
|
ApplicationStatus pulumi.StringPtrInput
|
|
// Arguments appended to the container command.
|
|
Args pulumi.StringArrayInput
|
|
// Override the container entrypoint command.
|
|
Command pulumi.StringPtrInput
|
|
// Hard CPU limit, for example `1`.
|
|
CpuLimit pulumi.StringPtrInput
|
|
// Soft CPU reservation, for example `0.5`.
|
|
CpuReservation pulumi.StringPtrInput
|
|
// RFC 3339 timestamp of when the database was created.
|
|
CreatedAt pulumi.StringPtrInput
|
|
// Name of the database to create.
|
|
DatabaseName pulumi.StringPtrInput
|
|
// Password for the database user.
|
|
DatabasePassword pulumi.StringPtrInput
|
|
// Password for the MySQL `root` user.
|
|
DatabaseRootPassword pulumi.StringPtrInput
|
|
// Database user to create.
|
|
DatabaseUser pulumi.StringPtrInput
|
|
// Free-form description.
|
|
Description pulumi.StringPtrInput
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolPtrInput
|
|
// MySQL image to run, for example `mysql:8`.
|
|
DockerImage pulumi.StringPtrInput
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
EndpointSpecSwarm pulumi.StringPtrInput
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
Env pulumi.StringPtrInput
|
|
// Environment this database belongs to.
|
|
EnvironmentId pulumi.StringPtrInput
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
ExternalPort pulumi.IntPtrInput
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
HealthCheckSwarm pulumi.StringPtrInput
|
|
// Docker Swarm service labels, as a JSON object.
|
|
LabelsSwarm pulumi.StringPtrInput
|
|
// Hard memory limit, for example `512m`.
|
|
MemoryLimit pulumi.StringPtrInput
|
|
// Soft memory reservation, for example `256m`.
|
|
MemoryReservation pulumi.StringPtrInput
|
|
// Docker Swarm service mode, as a JSON object.
|
|
ModeSwarm pulumi.StringPtrInput
|
|
// Display name of the database.
|
|
Name pulumi.StringPtrInput
|
|
// IDs of additional Docker networks to attach.
|
|
NetworkIds pulumi.StringArrayInput
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
NetworkSwarm pulumi.StringPtrInput
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
PlacementSwarm pulumi.StringPtrInput
|
|
// Number of replicas to run.
|
|
Replicas pulumi.IntPtrInput
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
RestartPolicySwarm pulumi.StringPtrInput
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
RollbackConfigSwarm pulumi.StringPtrInput
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
ServerId pulumi.StringPtrInput
|
|
// Grace period in nanoseconds before a container is killed.
|
|
StopGracePeriodSwarm pulumi.IntPtrInput
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
UlimitsSwarm pulumi.StringPtrInput
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
UpdateConfigSwarm pulumi.StringPtrInput
|
|
}
|
|
|
|
func (MySqlState) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*mySqlState)(nil)).Elem()
|
|
}
|
|
|
|
type mySqlArgs struct {
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
AppName *string `pulumi:"appName"`
|
|
// Arguments appended to the container command.
|
|
Args []string `pulumi:"args"`
|
|
// Override the container entrypoint command.
|
|
Command *string `pulumi:"command"`
|
|
// Hard CPU limit, for example `1`.
|
|
CpuLimit *string `pulumi:"cpuLimit"`
|
|
// Soft CPU reservation, for example `0.5`.
|
|
CpuReservation *string `pulumi:"cpuReservation"`
|
|
// Name of the database to create.
|
|
DatabaseName string `pulumi:"databaseName"`
|
|
// Password for the database user.
|
|
DatabasePassword string `pulumi:"databasePassword"`
|
|
// Password for the MySQL `root` user.
|
|
DatabaseRootPassword string `pulumi:"databaseRootPassword"`
|
|
// Database user to create.
|
|
DatabaseUser string `pulumi:"databaseUser"`
|
|
// Free-form description.
|
|
Description *string `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork *bool `pulumi:"detachDokployNetwork"`
|
|
// MySQL image to run, for example `mysql:8`.
|
|
DockerImage string `pulumi:"dockerImage"`
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
EndpointSpecSwarm *string `pulumi:"endpointSpecSwarm"`
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
Env *string `pulumi:"env"`
|
|
// Environment this database belongs to.
|
|
EnvironmentId string `pulumi:"environmentId"`
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
ExternalPort *int `pulumi:"externalPort"`
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
HealthCheckSwarm *string `pulumi:"healthCheckSwarm"`
|
|
// Docker Swarm service labels, as a JSON object.
|
|
LabelsSwarm *string `pulumi:"labelsSwarm"`
|
|
// Hard memory limit, for example `512m`.
|
|
MemoryLimit *string `pulumi:"memoryLimit"`
|
|
// Soft memory reservation, for example `256m`.
|
|
MemoryReservation *string `pulumi:"memoryReservation"`
|
|
// Docker Swarm service mode, as a JSON object.
|
|
ModeSwarm *string `pulumi:"modeSwarm"`
|
|
// Display name of the database.
|
|
Name *string `pulumi:"name"`
|
|
// IDs of additional Docker networks to attach.
|
|
NetworkIds []string `pulumi:"networkIds"`
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
NetworkSwarm *string `pulumi:"networkSwarm"`
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
PlacementSwarm *string `pulumi:"placementSwarm"`
|
|
// Number of replicas to run.
|
|
Replicas *int `pulumi:"replicas"`
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
RestartPolicySwarm *string `pulumi:"restartPolicySwarm"`
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
RollbackConfigSwarm *string `pulumi:"rollbackConfigSwarm"`
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
ServerId *string `pulumi:"serverId"`
|
|
// Grace period in nanoseconds before a container is killed.
|
|
StopGracePeriodSwarm *int `pulumi:"stopGracePeriodSwarm"`
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
UlimitsSwarm *string `pulumi:"ulimitsSwarm"`
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
UpdateConfigSwarm *string `pulumi:"updateConfigSwarm"`
|
|
}
|
|
|
|
// The set of arguments for constructing a MySql resource.
|
|
type MySqlArgs struct {
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
AppName pulumi.StringPtrInput
|
|
// Arguments appended to the container command.
|
|
Args pulumi.StringArrayInput
|
|
// Override the container entrypoint command.
|
|
Command pulumi.StringPtrInput
|
|
// Hard CPU limit, for example `1`.
|
|
CpuLimit pulumi.StringPtrInput
|
|
// Soft CPU reservation, for example `0.5`.
|
|
CpuReservation pulumi.StringPtrInput
|
|
// Name of the database to create.
|
|
DatabaseName pulumi.StringInput
|
|
// Password for the database user.
|
|
DatabasePassword pulumi.StringInput
|
|
// Password for the MySQL `root` user.
|
|
DatabaseRootPassword pulumi.StringInput
|
|
// Database user to create.
|
|
DatabaseUser pulumi.StringInput
|
|
// Free-form description.
|
|
Description pulumi.StringPtrInput
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolPtrInput
|
|
// MySQL image to run, for example `mysql:8`.
|
|
DockerImage pulumi.StringInput
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
EndpointSpecSwarm pulumi.StringPtrInput
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
Env pulumi.StringPtrInput
|
|
// Environment this database belongs to.
|
|
EnvironmentId pulumi.StringInput
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
ExternalPort pulumi.IntPtrInput
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
HealthCheckSwarm pulumi.StringPtrInput
|
|
// Docker Swarm service labels, as a JSON object.
|
|
LabelsSwarm pulumi.StringPtrInput
|
|
// Hard memory limit, for example `512m`.
|
|
MemoryLimit pulumi.StringPtrInput
|
|
// Soft memory reservation, for example `256m`.
|
|
MemoryReservation pulumi.StringPtrInput
|
|
// Docker Swarm service mode, as a JSON object.
|
|
ModeSwarm pulumi.StringPtrInput
|
|
// Display name of the database.
|
|
Name pulumi.StringPtrInput
|
|
// IDs of additional Docker networks to attach.
|
|
NetworkIds pulumi.StringArrayInput
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
NetworkSwarm pulumi.StringPtrInput
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
PlacementSwarm pulumi.StringPtrInput
|
|
// Number of replicas to run.
|
|
Replicas pulumi.IntPtrInput
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
RestartPolicySwarm pulumi.StringPtrInput
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
RollbackConfigSwarm pulumi.StringPtrInput
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
ServerId pulumi.StringPtrInput
|
|
// Grace period in nanoseconds before a container is killed.
|
|
StopGracePeriodSwarm pulumi.IntPtrInput
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
UlimitsSwarm pulumi.StringPtrInput
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
UpdateConfigSwarm pulumi.StringPtrInput
|
|
}
|
|
|
|
func (MySqlArgs) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*mySqlArgs)(nil)).Elem()
|
|
}
|
|
|
|
type MySqlInput interface {
|
|
pulumi.Input
|
|
|
|
ToMySqlOutput() MySqlOutput
|
|
ToMySqlOutputWithContext(ctx context.Context) MySqlOutput
|
|
}
|
|
|
|
func (*MySql) ElementType() reflect.Type {
|
|
return reflect.TypeOf((**MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (i *MySql) ToMySqlOutput() MySqlOutput {
|
|
return i.ToMySqlOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i *MySql) ToMySqlOutputWithContext(ctx context.Context) MySqlOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(MySqlOutput)
|
|
}
|
|
|
|
// MySqlArrayInput is an input type that accepts MySqlArray and MySqlArrayOutput values.
|
|
// You can construct a concrete instance of `MySqlArrayInput` via:
|
|
//
|
|
// MySqlArray{ MySqlArgs{...} }
|
|
type MySqlArrayInput interface {
|
|
pulumi.Input
|
|
|
|
ToMySqlArrayOutput() MySqlArrayOutput
|
|
ToMySqlArrayOutputWithContext(context.Context) MySqlArrayOutput
|
|
}
|
|
|
|
type MySqlArray []MySqlInput
|
|
|
|
func (MySqlArray) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*[]*MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (i MySqlArray) ToMySqlArrayOutput() MySqlArrayOutput {
|
|
return i.ToMySqlArrayOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i MySqlArray) ToMySqlArrayOutputWithContext(ctx context.Context) MySqlArrayOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(MySqlArrayOutput)
|
|
}
|
|
|
|
// MySqlMapInput is an input type that accepts MySqlMap and MySqlMapOutput values.
|
|
// You can construct a concrete instance of `MySqlMapInput` via:
|
|
//
|
|
// MySqlMap{ "key": MySqlArgs{...} }
|
|
type MySqlMapInput interface {
|
|
pulumi.Input
|
|
|
|
ToMySqlMapOutput() MySqlMapOutput
|
|
ToMySqlMapOutputWithContext(context.Context) MySqlMapOutput
|
|
}
|
|
|
|
type MySqlMap map[string]MySqlInput
|
|
|
|
func (MySqlMap) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*map[string]*MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (i MySqlMap) ToMySqlMapOutput() MySqlMapOutput {
|
|
return i.ToMySqlMapOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i MySqlMap) ToMySqlMapOutputWithContext(ctx context.Context) MySqlMapOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(MySqlMapOutput)
|
|
}
|
|
|
|
type MySqlOutput struct{ *pulumi.OutputState }
|
|
|
|
func (MySqlOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((**MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (o MySqlOutput) ToMySqlOutput() MySqlOutput {
|
|
return o
|
|
}
|
|
|
|
func (o MySqlOutput) ToMySqlOutputWithContext(ctx context.Context) MySqlOutput {
|
|
return o
|
|
}
|
|
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
func (o MySqlOutput) AppName() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.AppName }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
|
|
func (o MySqlOutput) ApplicationStatus() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.ApplicationStatus }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Arguments appended to the container command.
|
|
func (o MySqlOutput) Args() pulumi.StringArrayOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringArrayOutput { return v.Args }).(pulumi.StringArrayOutput)
|
|
}
|
|
|
|
// Override the container entrypoint command.
|
|
func (o MySqlOutput) Command() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.Command }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Hard CPU limit, for example `1`.
|
|
func (o MySqlOutput) CpuLimit() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.CpuLimit }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Soft CPU reservation, for example `0.5`.
|
|
func (o MySqlOutput) CpuReservation() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.CpuReservation }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// RFC 3339 timestamp of when the database was created.
|
|
func (o MySqlOutput) CreatedAt() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Name of the database to create.
|
|
func (o MySqlOutput) DatabaseName() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.DatabaseName }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Password for the database user.
|
|
func (o MySqlOutput) DatabasePassword() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.DatabasePassword }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Password for the MySQL `root` user.
|
|
func (o MySqlOutput) DatabaseRootPassword() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.DatabaseRootPassword }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Database user to create.
|
|
func (o MySqlOutput) DatabaseUser() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.DatabaseUser }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Free-form description.
|
|
func (o MySqlOutput) Description() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Detach the service from the shared `dokploy-network`.
|
|
func (o MySqlOutput) DetachDokployNetwork() pulumi.BoolOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.BoolOutput { return v.DetachDokployNetwork }).(pulumi.BoolOutput)
|
|
}
|
|
|
|
// MySQL image to run, for example `mysql:8`.
|
|
func (o MySqlOutput) DockerImage() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.DockerImage }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
func (o MySqlOutput) EndpointSpecSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.EndpointSpecSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
func (o MySqlOutput) Env() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.Env }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Environment this database belongs to.
|
|
func (o MySqlOutput) EnvironmentId() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.EnvironmentId }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Host port to expose the database on. Leave unset to keep the database reachable only from inside the Docker network.
|
|
func (o MySqlOutput) ExternalPort() pulumi.IntPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.IntPtrOutput { return v.ExternalPort }).(pulumi.IntPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
func (o MySqlOutput) HealthCheckSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.HealthCheckSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm service labels, as a JSON object.
|
|
func (o MySqlOutput) LabelsSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.LabelsSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Hard memory limit, for example `512m`.
|
|
func (o MySqlOutput) MemoryLimit() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.MemoryLimit }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Soft memory reservation, for example `256m`.
|
|
func (o MySqlOutput) MemoryReservation() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.MemoryReservation }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm service mode, as a JSON object.
|
|
func (o MySqlOutput) ModeSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.ModeSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Display name of the database.
|
|
func (o MySqlOutput) Name() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// IDs of additional Docker networks to attach.
|
|
func (o MySqlOutput) NetworkIds() pulumi.StringArrayOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringArrayOutput { return v.NetworkIds }).(pulumi.StringArrayOutput)
|
|
}
|
|
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
func (o MySqlOutput) NetworkSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.NetworkSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
func (o MySqlOutput) PlacementSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.PlacementSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Number of replicas to run.
|
|
func (o MySqlOutput) Replicas() pulumi.IntOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.IntOutput { return v.Replicas }).(pulumi.IntOutput)
|
|
}
|
|
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
func (o MySqlOutput) RestartPolicySwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.RestartPolicySwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
func (o MySqlOutput) RollbackConfigSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.RollbackConfigSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
func (o MySqlOutput) ServerId() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.ServerId }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Grace period in nanoseconds before a container is killed.
|
|
func (o MySqlOutput) StopGracePeriodSwarm() pulumi.IntPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.IntPtrOutput { return v.StopGracePeriodSwarm }).(pulumi.IntPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
func (o MySqlOutput) UlimitsSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.UlimitsSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
func (o MySqlOutput) UpdateConfigSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *MySql) pulumi.StringPtrOutput { return v.UpdateConfigSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
type MySqlArrayOutput struct{ *pulumi.OutputState }
|
|
|
|
func (MySqlArrayOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*[]*MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (o MySqlArrayOutput) ToMySqlArrayOutput() MySqlArrayOutput {
|
|
return o
|
|
}
|
|
|
|
func (o MySqlArrayOutput) ToMySqlArrayOutputWithContext(ctx context.Context) MySqlArrayOutput {
|
|
return o
|
|
}
|
|
|
|
func (o MySqlArrayOutput) Index(i pulumi.IntInput) MySqlOutput {
|
|
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MySql {
|
|
return vs[0].([]*MySql)[vs[1].(int)]
|
|
}).(MySqlOutput)
|
|
}
|
|
|
|
type MySqlMapOutput struct{ *pulumi.OutputState }
|
|
|
|
func (MySqlMapOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*map[string]*MySql)(nil)).Elem()
|
|
}
|
|
|
|
func (o MySqlMapOutput) ToMySqlMapOutput() MySqlMapOutput {
|
|
return o
|
|
}
|
|
|
|
func (o MySqlMapOutput) ToMySqlMapOutputWithContext(ctx context.Context) MySqlMapOutput {
|
|
return o
|
|
}
|
|
|
|
func (o MySqlMapOutput) MapIndex(k pulumi.StringInput) MySqlOutput {
|
|
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MySql {
|
|
return vs[0].(map[string]*MySql)[vs[1].(string)]
|
|
}).(MySqlOutput)
|
|
}
|
|
|
|
func init() {
|
|
pulumi.RegisterInputType(reflect.TypeOf((*MySqlInput)(nil)).Elem(), &MySql{})
|
|
pulumi.RegisterInputType(reflect.TypeOf((*MySqlArrayInput)(nil)).Elem(), MySqlArray{})
|
|
pulumi.RegisterInputType(reflect.TypeOf((*MySqlMapInput)(nil)).Elem(), MySqlMap{})
|
|
pulumi.RegisterOutputType(MySqlOutput{})
|
|
pulumi.RegisterOutputType(MySqlArrayOutput{})
|
|
pulumi.RegisterOutputType(MySqlMapOutput{})
|
|
}
|