PluginDownloadURL moves off github:// to a templated Gitea release URL.
Pulumi interpolates ${VERSION}, then appends
pulumi-resource-dokploy-v<version>-<os>-<arch>.tar.gz -- which is what
the GoReleaser archive template already produces. Schema, bridge
metadata and all four SDKs regenerated to carry it.
Releases publish to this instance's npm, PyPI, NuGet and Go registries
using the GITEA_TOKEN that Gitea injects, so no secrets need
configuring.
The Go SDK keeps its github.com module path, which is exactly why it
goes to Gitea's Go registry: pointing GOPROXY there is what makes that
path resolve at all. Verified locally by serving the module zip from a
file proxy and building a consumer against it -- note zip -D, without
which go get rejects the archive's directory entries.
239 lines
8.4 KiB
C#
Generated
239 lines
8.4 KiB
C#
Generated
// *** WARNING: this file was generated by pulumi-language-dotnet. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
using Pulumi.Serialization;
|
|
using Pulumi;
|
|
|
|
namespace Maxvojtkov.Dokploy
|
|
{
|
|
[DokployResourceType("dokploy:index/registry:Registry")]
|
|
public partial class Registry : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the registry was created.
|
|
/// </summary>
|
|
[Output("createdAt")]
|
|
public Output<string> CreatedAt { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Prefix prepended to pushed image names, for example an organization or namespace.
|
|
/// </summary>
|
|
[Output("imagePrefix")]
|
|
public Output<string?> ImagePrefix { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Password or access token used to authenticate.
|
|
/// </summary>
|
|
[Output("password")]
|
|
public Output<string> Password { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Display name of the registry.
|
|
/// </summary>
|
|
[Output("registryName")]
|
|
public Output<string> RegistryName { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Registry kind. Dokploy currently accepts only `Cloud`. Valid values: `Cloud`. Defaults to `Cloud`.
|
|
/// </summary>
|
|
[Output("registryType")]
|
|
public Output<string> RegistryType { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Registry hostname, for example `ghcr.io`.
|
|
/// </summary>
|
|
[Output("registryUrl")]
|
|
public Output<string> RegistryUrl { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Server this registry is scoped to.
|
|
/// </summary>
|
|
[Output("serverId")]
|
|
public Output<string?> ServerId { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Username used to authenticate to the registry.
|
|
/// </summary>
|
|
[Output("username")]
|
|
public Output<string> Username { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Registry resource with the given unique name, arguments, and options.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resource</param>
|
|
/// <param name="args">The arguments used to populate this resource's properties</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public Registry(string name, RegistryArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/registry:Registry", name, args ?? new RegistryArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Registry(string name, Input<string> id, RegistryState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/registry:Registry", name, state, MakeResourceOptions(options, id))
|
|
{
|
|
}
|
|
|
|
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
|
{
|
|
var defaultOptions = new CustomResourceOptions
|
|
{
|
|
Version = Utilities.Version,
|
|
PluginDownloadURL = "https://gitea.coolify.vojtkov.dev/usr_unknown/pulumi-dokploy/releases/download/v${VERSION}",
|
|
AdditionalSecretOutputs =
|
|
{
|
|
"password",
|
|
},
|
|
};
|
|
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
|
// Override the ID if one was specified for consistency with other language SDKs.
|
|
merged.Id = id ?? merged.Id;
|
|
return merged;
|
|
}
|
|
/// <summary>
|
|
/// Get an existing Registry resource's state with the given name, ID, and optional extra
|
|
/// properties used to qualify the lookup.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resulting resource.</param>
|
|
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
|
/// <param name="state">Any extra arguments used during the lookup.</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public static Registry Get(string name, Input<string> id, RegistryState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Registry(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class RegistryArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Prefix prepended to pushed image names, for example an organization or namespace.
|
|
/// </summary>
|
|
[Input("imagePrefix")]
|
|
public Input<string>? ImagePrefix { get; set; }
|
|
|
|
[Input("password", required: true)]
|
|
private Input<string>? _password;
|
|
|
|
/// <summary>
|
|
/// Password or access token used to authenticate.
|
|
/// </summary>
|
|
public Input<string>? Password
|
|
{
|
|
get => _password;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Display name of the registry.
|
|
/// </summary>
|
|
[Input("registryName", required: true)]
|
|
public Input<string> RegistryName { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Registry kind. Dokploy currently accepts only `Cloud`. Valid values: `Cloud`. Defaults to `Cloud`.
|
|
/// </summary>
|
|
[Input("registryType")]
|
|
public Input<string>? RegistryType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Registry hostname, for example `ghcr.io`.
|
|
/// </summary>
|
|
[Input("registryUrl", required: true)]
|
|
public Input<string> RegistryUrl { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Server this registry is scoped to.
|
|
/// </summary>
|
|
[Input("serverId")]
|
|
public Input<string>? ServerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Username used to authenticate to the registry.
|
|
/// </summary>
|
|
[Input("username", required: true)]
|
|
public Input<string> Username { get; set; } = null!;
|
|
|
|
public RegistryArgs()
|
|
{
|
|
}
|
|
public static new RegistryArgs Empty => new RegistryArgs();
|
|
}
|
|
|
|
public sealed class RegistryState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the registry was created.
|
|
/// </summary>
|
|
[Input("createdAt")]
|
|
public Input<string>? CreatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Prefix prepended to pushed image names, for example an organization or namespace.
|
|
/// </summary>
|
|
[Input("imagePrefix")]
|
|
public Input<string>? ImagePrefix { get; set; }
|
|
|
|
[Input("password")]
|
|
private Input<string>? _password;
|
|
|
|
/// <summary>
|
|
/// Password or access token used to authenticate.
|
|
/// </summary>
|
|
public Input<string>? Password
|
|
{
|
|
get => _password;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Display name of the registry.
|
|
/// </summary>
|
|
[Input("registryName")]
|
|
public Input<string>? RegistryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Registry kind. Dokploy currently accepts only `Cloud`. Valid values: `Cloud`. Defaults to `Cloud`.
|
|
/// </summary>
|
|
[Input("registryType")]
|
|
public Input<string>? RegistryType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Registry hostname, for example `ghcr.io`.
|
|
/// </summary>
|
|
[Input("registryUrl")]
|
|
public Input<string>? RegistryUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// Server this registry is scoped to.
|
|
/// </summary>
|
|
[Input("serverId")]
|
|
public Input<string>? ServerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Username used to authenticate to the registry.
|
|
/// </summary>
|
|
[Input("username")]
|
|
public Input<string>? Username { get; set; }
|
|
|
|
public RegistryState()
|
|
{
|
|
}
|
|
public static new RegistryState Empty => new RegistryState();
|
|
}
|
|
}
|