Bridge terraform-provider-dokploy into a Pulumi provider

18 resources and 5 data sources mapped into the dokploy:index module, with
SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
2026-08-08 15:28:16 +03:00
commit bb3c15135b
175 changed files with 61774 additions and 0 deletions

272
sdk/go/dokploy/security.go generated Normal file
View File

@@ -0,0 +1,272 @@
// 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 Security struct {
pulumi.CustomResourceState
// Application these credentials protect.
ApplicationId pulumi.StringOutput `pulumi:"applicationId"`
// RFC 3339 timestamp of when the credentials were created.
CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
// Basic auth password.
Password pulumi.StringOutput `pulumi:"password"`
// Basic auth username.
Username pulumi.StringOutput `pulumi:"username"`
}
// NewSecurity registers a new resource with the given unique name, arguments, and options.
func NewSecurity(ctx *pulumi.Context,
name string, args *SecurityArgs, opts ...pulumi.ResourceOption) (*Security, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ApplicationId == nil {
return nil, errors.New("invalid value for required argument 'ApplicationId'")
}
if args.Password == nil {
return nil, errors.New("invalid value for required argument 'Password'")
}
if args.Username == nil {
return nil, errors.New("invalid value for required argument 'Username'")
}
if args.Password != nil {
args.Password = pulumi.ToSecret(args.Password).(pulumi.StringInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"password",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource Security
err := ctx.RegisterResource("dokploy:index/security:Security", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSecurity gets an existing Security 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 GetSecurity(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SecurityState, opts ...pulumi.ResourceOption) (*Security, error) {
var resource Security
err := ctx.ReadResource("dokploy:index/security:Security", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Security resources.
type securityState struct {
// Application these credentials protect.
ApplicationId *string `pulumi:"applicationId"`
// RFC 3339 timestamp of when the credentials were created.
CreatedAt *string `pulumi:"createdAt"`
// Basic auth password.
Password *string `pulumi:"password"`
// Basic auth username.
Username *string `pulumi:"username"`
}
type SecurityState struct {
// Application these credentials protect.
ApplicationId pulumi.StringPtrInput
// RFC 3339 timestamp of when the credentials were created.
CreatedAt pulumi.StringPtrInput
// Basic auth password.
Password pulumi.StringPtrInput
// Basic auth username.
Username pulumi.StringPtrInput
}
func (SecurityState) ElementType() reflect.Type {
return reflect.TypeOf((*securityState)(nil)).Elem()
}
type securityArgs struct {
// Application these credentials protect.
ApplicationId string `pulumi:"applicationId"`
// Basic auth password.
Password string `pulumi:"password"`
// Basic auth username.
Username string `pulumi:"username"`
}
// The set of arguments for constructing a Security resource.
type SecurityArgs struct {
// Application these credentials protect.
ApplicationId pulumi.StringInput
// Basic auth password.
Password pulumi.StringInput
// Basic auth username.
Username pulumi.StringInput
}
func (SecurityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*securityArgs)(nil)).Elem()
}
type SecurityInput interface {
pulumi.Input
ToSecurityOutput() SecurityOutput
ToSecurityOutputWithContext(ctx context.Context) SecurityOutput
}
func (*Security) ElementType() reflect.Type {
return reflect.TypeOf((**Security)(nil)).Elem()
}
func (i *Security) ToSecurityOutput() SecurityOutput {
return i.ToSecurityOutputWithContext(context.Background())
}
func (i *Security) ToSecurityOutputWithContext(ctx context.Context) SecurityOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecurityOutput)
}
// SecurityArrayInput is an input type that accepts SecurityArray and SecurityArrayOutput values.
// You can construct a concrete instance of `SecurityArrayInput` via:
//
// SecurityArray{ SecurityArgs{...} }
type SecurityArrayInput interface {
pulumi.Input
ToSecurityArrayOutput() SecurityArrayOutput
ToSecurityArrayOutputWithContext(context.Context) SecurityArrayOutput
}
type SecurityArray []SecurityInput
func (SecurityArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Security)(nil)).Elem()
}
func (i SecurityArray) ToSecurityArrayOutput() SecurityArrayOutput {
return i.ToSecurityArrayOutputWithContext(context.Background())
}
func (i SecurityArray) ToSecurityArrayOutputWithContext(ctx context.Context) SecurityArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecurityArrayOutput)
}
// SecurityMapInput is an input type that accepts SecurityMap and SecurityMapOutput values.
// You can construct a concrete instance of `SecurityMapInput` via:
//
// SecurityMap{ "key": SecurityArgs{...} }
type SecurityMapInput interface {
pulumi.Input
ToSecurityMapOutput() SecurityMapOutput
ToSecurityMapOutputWithContext(context.Context) SecurityMapOutput
}
type SecurityMap map[string]SecurityInput
func (SecurityMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Security)(nil)).Elem()
}
func (i SecurityMap) ToSecurityMapOutput() SecurityMapOutput {
return i.ToSecurityMapOutputWithContext(context.Background())
}
func (i SecurityMap) ToSecurityMapOutputWithContext(ctx context.Context) SecurityMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecurityMapOutput)
}
type SecurityOutput struct{ *pulumi.OutputState }
func (SecurityOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Security)(nil)).Elem()
}
func (o SecurityOutput) ToSecurityOutput() SecurityOutput {
return o
}
func (o SecurityOutput) ToSecurityOutputWithContext(ctx context.Context) SecurityOutput {
return o
}
// Application these credentials protect.
func (o SecurityOutput) ApplicationId() pulumi.StringOutput {
return o.ApplyT(func(v *Security) pulumi.StringOutput { return v.ApplicationId }).(pulumi.StringOutput)
}
// RFC 3339 timestamp of when the credentials were created.
func (o SecurityOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v *Security) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
}
// Basic auth password.
func (o SecurityOutput) Password() pulumi.StringOutput {
return o.ApplyT(func(v *Security) pulumi.StringOutput { return v.Password }).(pulumi.StringOutput)
}
// Basic auth username.
func (o SecurityOutput) Username() pulumi.StringOutput {
return o.ApplyT(func(v *Security) pulumi.StringOutput { return v.Username }).(pulumi.StringOutput)
}
type SecurityArrayOutput struct{ *pulumi.OutputState }
func (SecurityArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Security)(nil)).Elem()
}
func (o SecurityArrayOutput) ToSecurityArrayOutput() SecurityArrayOutput {
return o
}
func (o SecurityArrayOutput) ToSecurityArrayOutputWithContext(ctx context.Context) SecurityArrayOutput {
return o
}
func (o SecurityArrayOutput) Index(i pulumi.IntInput) SecurityOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Security {
return vs[0].([]*Security)[vs[1].(int)]
}).(SecurityOutput)
}
type SecurityMapOutput struct{ *pulumi.OutputState }
func (SecurityMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Security)(nil)).Elem()
}
func (o SecurityMapOutput) ToSecurityMapOutput() SecurityMapOutput {
return o
}
func (o SecurityMapOutput) ToSecurityMapOutputWithContext(ctx context.Context) SecurityMapOutput {
return o
}
func (o SecurityMapOutput) MapIndex(k pulumi.StringInput) SecurityOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Security {
return vs[0].(map[string]*Security)[vs[1].(string)]
}).(SecurityOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SecurityInput)(nil)).Elem(), &Security{})
pulumi.RegisterInputType(reflect.TypeOf((*SecurityArrayInput)(nil)).Elem(), SecurityArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SecurityMapInput)(nil)).Elem(), SecurityMap{})
pulumi.RegisterOutputType(SecurityOutput{})
pulumi.RegisterOutputType(SecurityArrayOutput{})
pulumi.RegisterOutputType(SecurityMapOutput{})
}