// 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 Registry struct { pulumi.CustomResourceState // RFC 3339 timestamp of when the registry was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // Prefix prepended to pushed image names, for example an organization or namespace. ImagePrefix pulumi.StringPtrOutput `pulumi:"imagePrefix"` // Password or access token used to authenticate. Password pulumi.StringOutput `pulumi:"password"` // Display name of the registry. RegistryName pulumi.StringOutput `pulumi:"registryName"` // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. RegistryType pulumi.StringOutput `pulumi:"registryType"` // Registry hostname, for example `ghcr.io`. RegistryUrl pulumi.StringOutput `pulumi:"registryUrl"` // Server this registry is scoped to. ServerId pulumi.StringPtrOutput `pulumi:"serverId"` // Username used to authenticate to the registry. Username pulumi.StringOutput `pulumi:"username"` } // NewRegistry registers a new resource with the given unique name, arguments, and options. func NewRegistry(ctx *pulumi.Context, name string, args *RegistryArgs, opts ...pulumi.ResourceOption) (*Registry, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Password == nil { return nil, errors.New("invalid value for required argument 'Password'") } if args.RegistryName == nil { return nil, errors.New("invalid value for required argument 'RegistryName'") } if args.RegistryUrl == nil { return nil, errors.New("invalid value for required argument 'RegistryUrl'") } 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 Registry err := ctx.RegisterResource("dokploy:index/registry:Registry", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetRegistry gets an existing Registry 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 GetRegistry(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RegistryState, opts ...pulumi.ResourceOption) (*Registry, error) { var resource Registry err := ctx.ReadResource("dokploy:index/registry:Registry", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering Registry resources. type registryState struct { // RFC 3339 timestamp of when the registry was created. CreatedAt *string `pulumi:"createdAt"` // Prefix prepended to pushed image names, for example an organization or namespace. ImagePrefix *string `pulumi:"imagePrefix"` // Password or access token used to authenticate. Password *string `pulumi:"password"` // Display name of the registry. RegistryName *string `pulumi:"registryName"` // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. RegistryType *string `pulumi:"registryType"` // Registry hostname, for example `ghcr.io`. RegistryUrl *string `pulumi:"registryUrl"` // Server this registry is scoped to. ServerId *string `pulumi:"serverId"` // Username used to authenticate to the registry. Username *string `pulumi:"username"` } type RegistryState struct { // RFC 3339 timestamp of when the registry was created. CreatedAt pulumi.StringPtrInput // Prefix prepended to pushed image names, for example an organization or namespace. ImagePrefix pulumi.StringPtrInput // Password or access token used to authenticate. Password pulumi.StringPtrInput // Display name of the registry. RegistryName pulumi.StringPtrInput // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. RegistryType pulumi.StringPtrInput // Registry hostname, for example `ghcr.io`. RegistryUrl pulumi.StringPtrInput // Server this registry is scoped to. ServerId pulumi.StringPtrInput // Username used to authenticate to the registry. Username pulumi.StringPtrInput } func (RegistryState) ElementType() reflect.Type { return reflect.TypeOf((*registryState)(nil)).Elem() } type registryArgs struct { // Prefix prepended to pushed image names, for example an organization or namespace. ImagePrefix *string `pulumi:"imagePrefix"` // Password or access token used to authenticate. Password string `pulumi:"password"` // Display name of the registry. RegistryName string `pulumi:"registryName"` // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. RegistryType *string `pulumi:"registryType"` // Registry hostname, for example `ghcr.io`. RegistryUrl string `pulumi:"registryUrl"` // Server this registry is scoped to. ServerId *string `pulumi:"serverId"` // Username used to authenticate to the registry. Username string `pulumi:"username"` } // The set of arguments for constructing a Registry resource. type RegistryArgs struct { // Prefix prepended to pushed image names, for example an organization or namespace. ImagePrefix pulumi.StringPtrInput // Password or access token used to authenticate. Password pulumi.StringInput // Display name of the registry. RegistryName pulumi.StringInput // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. RegistryType pulumi.StringPtrInput // Registry hostname, for example `ghcr.io`. RegistryUrl pulumi.StringInput // Server this registry is scoped to. ServerId pulumi.StringPtrInput // Username used to authenticate to the registry. Username pulumi.StringInput } func (RegistryArgs) ElementType() reflect.Type { return reflect.TypeOf((*registryArgs)(nil)).Elem() } type RegistryInput interface { pulumi.Input ToRegistryOutput() RegistryOutput ToRegistryOutputWithContext(ctx context.Context) RegistryOutput } func (*Registry) ElementType() reflect.Type { return reflect.TypeOf((**Registry)(nil)).Elem() } func (i *Registry) ToRegistryOutput() RegistryOutput { return i.ToRegistryOutputWithContext(context.Background()) } func (i *Registry) ToRegistryOutputWithContext(ctx context.Context) RegistryOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryOutput) } // RegistryArrayInput is an input type that accepts RegistryArray and RegistryArrayOutput values. // You can construct a concrete instance of `RegistryArrayInput` via: // // RegistryArray{ RegistryArgs{...} } type RegistryArrayInput interface { pulumi.Input ToRegistryArrayOutput() RegistryArrayOutput ToRegistryArrayOutputWithContext(context.Context) RegistryArrayOutput } type RegistryArray []RegistryInput func (RegistryArray) ElementType() reflect.Type { return reflect.TypeOf((*[]*Registry)(nil)).Elem() } func (i RegistryArray) ToRegistryArrayOutput() RegistryArrayOutput { return i.ToRegistryArrayOutputWithContext(context.Background()) } func (i RegistryArray) ToRegistryArrayOutputWithContext(ctx context.Context) RegistryArrayOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryArrayOutput) } // RegistryMapInput is an input type that accepts RegistryMap and RegistryMapOutput values. // You can construct a concrete instance of `RegistryMapInput` via: // // RegistryMap{ "key": RegistryArgs{...} } type RegistryMapInput interface { pulumi.Input ToRegistryMapOutput() RegistryMapOutput ToRegistryMapOutputWithContext(context.Context) RegistryMapOutput } type RegistryMap map[string]RegistryInput func (RegistryMap) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Registry)(nil)).Elem() } func (i RegistryMap) ToRegistryMapOutput() RegistryMapOutput { return i.ToRegistryMapOutputWithContext(context.Background()) } func (i RegistryMap) ToRegistryMapOutputWithContext(ctx context.Context) RegistryMapOutput { return pulumi.ToOutputWithContext(ctx, i).(RegistryMapOutput) } type RegistryOutput struct{ *pulumi.OutputState } func (RegistryOutput) ElementType() reflect.Type { return reflect.TypeOf((**Registry)(nil)).Elem() } func (o RegistryOutput) ToRegistryOutput() RegistryOutput { return o } func (o RegistryOutput) ToRegistryOutputWithContext(ctx context.Context) RegistryOutput { return o } // RFC 3339 timestamp of when the registry was created. func (o RegistryOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } // Prefix prepended to pushed image names, for example an organization or namespace. func (o RegistryOutput) ImagePrefix() pulumi.StringPtrOutput { return o.ApplyT(func(v *Registry) pulumi.StringPtrOutput { return v.ImagePrefix }).(pulumi.StringPtrOutput) } // Password or access token used to authenticate. func (o RegistryOutput) Password() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.Password }).(pulumi.StringOutput) } // Display name of the registry. func (o RegistryOutput) RegistryName() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.RegistryName }).(pulumi.StringOutput) } // Registry kind. Dokploy currently accepts only `cloud`. Valid values: `cloud`. Defaults to `cloud`. func (o RegistryOutput) RegistryType() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.RegistryType }).(pulumi.StringOutput) } // Registry hostname, for example `ghcr.io`. func (o RegistryOutput) RegistryUrl() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.RegistryUrl }).(pulumi.StringOutput) } // Server this registry is scoped to. func (o RegistryOutput) ServerId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Registry) pulumi.StringPtrOutput { return v.ServerId }).(pulumi.StringPtrOutput) } // Username used to authenticate to the registry. func (o RegistryOutput) Username() pulumi.StringOutput { return o.ApplyT(func(v *Registry) pulumi.StringOutput { return v.Username }).(pulumi.StringOutput) } type RegistryArrayOutput struct{ *pulumi.OutputState } func (RegistryArrayOutput) ElementType() reflect.Type { return reflect.TypeOf((*[]*Registry)(nil)).Elem() } func (o RegistryArrayOutput) ToRegistryArrayOutput() RegistryArrayOutput { return o } func (o RegistryArrayOutput) ToRegistryArrayOutputWithContext(ctx context.Context) RegistryArrayOutput { return o } func (o RegistryArrayOutput) Index(i pulumi.IntInput) RegistryOutput { return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Registry { return vs[0].([]*Registry)[vs[1].(int)] }).(RegistryOutput) } type RegistryMapOutput struct{ *pulumi.OutputState } func (RegistryMapOutput) ElementType() reflect.Type { return reflect.TypeOf((*map[string]*Registry)(nil)).Elem() } func (o RegistryMapOutput) ToRegistryMapOutput() RegistryMapOutput { return o } func (o RegistryMapOutput) ToRegistryMapOutputWithContext(ctx context.Context) RegistryMapOutput { return o } func (o RegistryMapOutput) MapIndex(k pulumi.StringInput) RegistryOutput { return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Registry { return vs[0].(map[string]*Registry)[vs[1].(string)] }).(RegistryOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*RegistryInput)(nil)).Elem(), &Registry{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryArrayInput)(nil)).Elem(), RegistryArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryMapInput)(nil)).Elem(), RegistryMap{}) pulumi.RegisterOutputType(RegistryOutput{}) pulumi.RegisterOutputType(RegistryArrayOutput{}) pulumi.RegisterOutputType(RegistryMapOutput{}) }