Six new resources from terraform-provider-dokploy v0.2.0 -- Network, DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`, `icon`) and Application. Verified with `pulumi up` against a live v0.30.2 instance: create, preview-clean, and destroy. The upstream provider also now refuses a volume Mount with no `volumeName`, which Dokploy would otherwise turn into an anonymous Docker volume recreated on every deploy. That surfaces here at preview time, before anything exists. Two things made that fix nearly invisible to Pulumi users, so this commit fixes the second one: the bridge resolves the upstream `docs/` through the Go module cache, where a locally `replace`d dependency never lands, so tfgen was emitting every resource with no description at all. UpstreamRepoPath now points at the checkout and all 445 inputs carry documentation -- with names rendered per language, so Python readers see `volume_name` where TypeScript readers see `volumeName`.
679 lines
28 KiB
Go
Generated
679 lines
28 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"
|
|
)
|
|
|
|
// A managed Redis instance running on Dokploy.
|
|
//
|
|
// > Creating this resource provisions the service definition but does **not** start a deployment. Deploy it from the Dokploy UI or CLI.
|
|
//
|
|
// > Credentials are stored in Terraform state. Use a state backend with encryption at rest.
|
|
type Redis 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"`
|
|
// Password used to authenticate to Redis.
|
|
DatabasePassword pulumi.StringOutput `pulumi:"databasePassword"`
|
|
// Free-form description.
|
|
Description pulumi.StringPtrOutput `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolOutput `pulumi:"detachDokployNetwork"`
|
|
// Redis image to run, for example `redis:7`.
|
|
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"`
|
|
}
|
|
|
|
// NewRedis registers a new resource with the given unique name, arguments, and options.
|
|
func NewRedis(ctx *pulumi.Context,
|
|
name string, args *RedisArgs, opts ...pulumi.ResourceOption) (*Redis, error) {
|
|
if args == nil {
|
|
return nil, errors.New("missing one or more required arguments")
|
|
}
|
|
|
|
if args.DatabasePassword == nil {
|
|
return nil, errors.New("invalid value for required argument 'DatabasePassword'")
|
|
}
|
|
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)
|
|
}
|
|
secrets := pulumi.AdditionalSecretOutputs([]string{
|
|
"databasePassword",
|
|
})
|
|
opts = append(opts, secrets)
|
|
opts = internal.PkgResourceDefaultOpts(opts)
|
|
var resource Redis
|
|
err := ctx.RegisterResource("dokploy:index/redis:Redis", name, args, &resource, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resource, nil
|
|
}
|
|
|
|
// GetRedis gets an existing Redis 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 GetRedis(ctx *pulumi.Context,
|
|
name string, id pulumi.IDInput, state *RedisState, opts ...pulumi.ResourceOption) (*Redis, error) {
|
|
var resource Redis
|
|
err := ctx.ReadResource("dokploy:index/redis:Redis", name, id, state, &resource, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &resource, nil
|
|
}
|
|
|
|
// Input properties used for looking up and filtering Redis resources.
|
|
type redisState 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"`
|
|
// Password used to authenticate to Redis.
|
|
DatabasePassword *string `pulumi:"databasePassword"`
|
|
// Free-form description.
|
|
Description *string `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork *bool `pulumi:"detachDokployNetwork"`
|
|
// Redis image to run, for example `redis:7`.
|
|
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 RedisState 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
|
|
// Password used to authenticate to Redis.
|
|
DatabasePassword pulumi.StringPtrInput
|
|
// Free-form description.
|
|
Description pulumi.StringPtrInput
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolPtrInput
|
|
// Redis image to run, for example `redis:7`.
|
|
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 (RedisState) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*redisState)(nil)).Elem()
|
|
}
|
|
|
|
type redisArgs 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"`
|
|
// Password used to authenticate to Redis.
|
|
DatabasePassword string `pulumi:"databasePassword"`
|
|
// Free-form description.
|
|
Description *string `pulumi:"description"`
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork *bool `pulumi:"detachDokployNetwork"`
|
|
// Redis image to run, for example `redis:7`.
|
|
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 Redis resource.
|
|
type RedisArgs 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
|
|
// Password used to authenticate to Redis.
|
|
DatabasePassword pulumi.StringInput
|
|
// Free-form description.
|
|
Description pulumi.StringPtrInput
|
|
// Detach the service from the shared `dokploy-network`.
|
|
DetachDokployNetwork pulumi.BoolPtrInput
|
|
// Redis image to run, for example `redis:7`.
|
|
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 (RedisArgs) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*redisArgs)(nil)).Elem()
|
|
}
|
|
|
|
type RedisInput interface {
|
|
pulumi.Input
|
|
|
|
ToRedisOutput() RedisOutput
|
|
ToRedisOutputWithContext(ctx context.Context) RedisOutput
|
|
}
|
|
|
|
func (*Redis) ElementType() reflect.Type {
|
|
return reflect.TypeOf((**Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (i *Redis) ToRedisOutput() RedisOutput {
|
|
return i.ToRedisOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i *Redis) ToRedisOutputWithContext(ctx context.Context) RedisOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(RedisOutput)
|
|
}
|
|
|
|
// RedisArrayInput is an input type that accepts RedisArray and RedisArrayOutput values.
|
|
// You can construct a concrete instance of `RedisArrayInput` via:
|
|
//
|
|
// RedisArray{ RedisArgs{...} }
|
|
type RedisArrayInput interface {
|
|
pulumi.Input
|
|
|
|
ToRedisArrayOutput() RedisArrayOutput
|
|
ToRedisArrayOutputWithContext(context.Context) RedisArrayOutput
|
|
}
|
|
|
|
type RedisArray []RedisInput
|
|
|
|
func (RedisArray) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*[]*Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (i RedisArray) ToRedisArrayOutput() RedisArrayOutput {
|
|
return i.ToRedisArrayOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i RedisArray) ToRedisArrayOutputWithContext(ctx context.Context) RedisArrayOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(RedisArrayOutput)
|
|
}
|
|
|
|
// RedisMapInput is an input type that accepts RedisMap and RedisMapOutput values.
|
|
// You can construct a concrete instance of `RedisMapInput` via:
|
|
//
|
|
// RedisMap{ "key": RedisArgs{...} }
|
|
type RedisMapInput interface {
|
|
pulumi.Input
|
|
|
|
ToRedisMapOutput() RedisMapOutput
|
|
ToRedisMapOutputWithContext(context.Context) RedisMapOutput
|
|
}
|
|
|
|
type RedisMap map[string]RedisInput
|
|
|
|
func (RedisMap) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*map[string]*Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (i RedisMap) ToRedisMapOutput() RedisMapOutput {
|
|
return i.ToRedisMapOutputWithContext(context.Background())
|
|
}
|
|
|
|
func (i RedisMap) ToRedisMapOutputWithContext(ctx context.Context) RedisMapOutput {
|
|
return pulumi.ToOutputWithContext(ctx, i).(RedisMapOutput)
|
|
}
|
|
|
|
type RedisOutput struct{ *pulumi.OutputState }
|
|
|
|
func (RedisOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((**Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (o RedisOutput) ToRedisOutput() RedisOutput {
|
|
return o
|
|
}
|
|
|
|
func (o RedisOutput) ToRedisOutputWithContext(ctx context.Context) RedisOutput {
|
|
return o
|
|
}
|
|
|
|
// Unique Docker service name. Generated by Dokploy when omitted. Changing it forces a new database.
|
|
func (o RedisOutput) AppName() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.AppName }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Current status reported by Dokploy: `idle`, `running`, `done` or `error`.
|
|
func (o RedisOutput) ApplicationStatus() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.ApplicationStatus }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Arguments appended to the container command.
|
|
func (o RedisOutput) Args() pulumi.StringArrayOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringArrayOutput { return v.Args }).(pulumi.StringArrayOutput)
|
|
}
|
|
|
|
// Override the container entrypoint command.
|
|
func (o RedisOutput) Command() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.Command }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Hard CPU limit, for example `1`.
|
|
func (o RedisOutput) CpuLimit() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.CpuLimit }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Soft CPU reservation, for example `0.5`.
|
|
func (o RedisOutput) CpuReservation() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.CpuReservation }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// RFC 3339 timestamp of when the database was created.
|
|
func (o RedisOutput) CreatedAt() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Password used to authenticate to Redis.
|
|
func (o RedisOutput) DatabasePassword() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.DatabasePassword }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Free-form description.
|
|
func (o RedisOutput) Description() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Detach the service from the shared `dokploy-network`.
|
|
func (o RedisOutput) DetachDokployNetwork() pulumi.BoolOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.BoolOutput { return v.DetachDokployNetwork }).(pulumi.BoolOutput)
|
|
}
|
|
|
|
// Redis image to run, for example `redis:7`.
|
|
func (o RedisOutput) DockerImage() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.DockerImage }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Docker Swarm endpoint specification, as a JSON object.
|
|
func (o RedisOutput) EndpointSpecSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.EndpointSpecSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Environment variables in `KEY=value` format, one per line.
|
|
func (o RedisOutput) Env() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.Env }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Environment this database belongs to.
|
|
func (o RedisOutput) EnvironmentId() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) 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 RedisOutput) ExternalPort() pulumi.IntPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.IntPtrOutput { return v.ExternalPort }).(pulumi.IntPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm health check configuration, as a JSON object.
|
|
func (o RedisOutput) HealthCheckSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.HealthCheckSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm service labels, as a JSON object.
|
|
func (o RedisOutput) LabelsSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.LabelsSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Hard memory limit, for example `512m`.
|
|
func (o RedisOutput) MemoryLimit() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.MemoryLimit }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Soft memory reservation, for example `256m`.
|
|
func (o RedisOutput) MemoryReservation() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.MemoryReservation }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm service mode, as a JSON object.
|
|
func (o RedisOutput) ModeSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.ModeSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Display name of the database.
|
|
func (o RedisOutput) Name() pulumi.StringOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// IDs of additional Docker networks to attach.
|
|
func (o RedisOutput) NetworkIds() pulumi.StringArrayOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringArrayOutput { return v.NetworkIds }).(pulumi.StringArrayOutput)
|
|
}
|
|
|
|
// Docker Swarm network attachments, as a JSON array.
|
|
func (o RedisOutput) NetworkSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.NetworkSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm placement constraints, as a JSON object.
|
|
func (o RedisOutput) PlacementSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.PlacementSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Number of replicas to run.
|
|
func (o RedisOutput) Replicas() pulumi.IntOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.IntOutput { return v.Replicas }).(pulumi.IntOutput)
|
|
}
|
|
|
|
// Docker Swarm restart policy, as a JSON object.
|
|
func (o RedisOutput) RestartPolicySwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.RestartPolicySwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm rollback configuration, as a JSON object.
|
|
func (o RedisOutput) RollbackConfigSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.RollbackConfigSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Remote server to deploy on. Omit to use the Dokploy host itself.
|
|
func (o RedisOutput) ServerId() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.ServerId }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Grace period in nanoseconds before a container is killed.
|
|
func (o RedisOutput) StopGracePeriodSwarm() pulumi.IntPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.IntPtrOutput { return v.StopGracePeriodSwarm }).(pulumi.IntPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm ulimits, as a JSON object.
|
|
func (o RedisOutput) UlimitsSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.UlimitsSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
// Docker Swarm rolling update configuration, as a JSON object.
|
|
func (o RedisOutput) UpdateConfigSwarm() pulumi.StringPtrOutput {
|
|
return o.ApplyT(func(v *Redis) pulumi.StringPtrOutput { return v.UpdateConfigSwarm }).(pulumi.StringPtrOutput)
|
|
}
|
|
|
|
type RedisArrayOutput struct{ *pulumi.OutputState }
|
|
|
|
func (RedisArrayOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*[]*Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (o RedisArrayOutput) ToRedisArrayOutput() RedisArrayOutput {
|
|
return o
|
|
}
|
|
|
|
func (o RedisArrayOutput) ToRedisArrayOutputWithContext(ctx context.Context) RedisArrayOutput {
|
|
return o
|
|
}
|
|
|
|
func (o RedisArrayOutput) Index(i pulumi.IntInput) RedisOutput {
|
|
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Redis {
|
|
return vs[0].([]*Redis)[vs[1].(int)]
|
|
}).(RedisOutput)
|
|
}
|
|
|
|
type RedisMapOutput struct{ *pulumi.OutputState }
|
|
|
|
func (RedisMapOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*map[string]*Redis)(nil)).Elem()
|
|
}
|
|
|
|
func (o RedisMapOutput) ToRedisMapOutput() RedisMapOutput {
|
|
return o
|
|
}
|
|
|
|
func (o RedisMapOutput) ToRedisMapOutputWithContext(ctx context.Context) RedisMapOutput {
|
|
return o
|
|
}
|
|
|
|
func (o RedisMapOutput) MapIndex(k pulumi.StringInput) RedisOutput {
|
|
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Redis {
|
|
return vs[0].(map[string]*Redis)[vs[1].(string)]
|
|
}).(RedisOutput)
|
|
}
|
|
|
|
func init() {
|
|
pulumi.RegisterInputType(reflect.TypeOf((*RedisInput)(nil)).Elem(), &Redis{})
|
|
pulumi.RegisterInputType(reflect.TypeOf((*RedisArrayInput)(nil)).Elem(), RedisArray{})
|
|
pulumi.RegisterInputType(reflect.TypeOf((*RedisMapInput)(nil)).Elem(), RedisMap{})
|
|
pulumi.RegisterOutputType(RedisOutput{})
|
|
pulumi.RegisterOutputType(RedisArrayOutput{})
|
|
pulumi.RegisterOutputType(RedisMapOutput{})
|
|
}
|