AmasiaLabs.Toolkit.Podman 1.0.23

dotnet add package AmasiaLabs.Toolkit.Podman --version 1.0.23
                    
NuGet\Install-Package AmasiaLabs.Toolkit.Podman -Version 1.0.23
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AmasiaLabs.Toolkit.Podman" Version="1.0.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AmasiaLabs.Toolkit.Podman" Version="1.0.23" />
                    
Directory.Packages.props
<PackageReference Include="AmasiaLabs.Toolkit.Podman" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AmasiaLabs.Toolkit.Podman --version 1.0.23
                    
#r "nuget: AmasiaLabs.Toolkit.Podman, 1.0.23"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AmasiaLabs.Toolkit.Podman@1.0.23
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AmasiaLabs.Toolkit.Podman&version=1.0.23
                    
Install as a Cake Addin
#tool nuget:?package=AmasiaLabs.Toolkit.Podman&version=1.0.23
                    
Install as a Cake Tool

AmasiaLabs.Toolkit.Podman

Configuration extensions for reading Podman/Docker secrets into .NET configuration.

Install

dotnet add package AmasiaLabs.Toolkit.Podman

Usage

var builder = Host.CreateApplicationBuilder(args);

// Using default settings
builder.AddPodmanSecrets();

// Or with custom settings
builder.AddPodmanSecrets(
    directory: "/run/secrets",
    requireDirectory: false,
    throwOnError: false
);

// Or place all secrets under a configuration prefix (e.g., when sharing
// a secrets directory across multiple services)
builder.AddPodmanSecrets(
    directory: "/run/secrets",
    requireDirectory: false,
    throwOnError: false,
    prefix: "myapp");
// → file `db__password` becomes configuration key `myapp:db:password`

Parameters

Parameter Default Description
directory /run/secrets Directory where Podman/Docker secret files are mounted
requireDirectory false Whether to throw if the secrets directory doesn't exist
throwOnError false (for HostApplicationBuilder)<br>true (for IConfigurationBuilder) Whether to throw exceptions when reading secret files fails
prefix null Optional prefix prepended to every key (trailing colons trimmed; null/empty = no prefix)

Secrets are mapped to configuration keys:

  • File names with __ become : hierarchy (e.g., database__password → database:password).
  • Hidden files (starting with .) are ignored.
  • Trailing newlines are trimmed.
  • When prefix is provided, all keys are placed under it (e.g., with prefix: "myapp", database__password → myapp:database:password).
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.23 162 9/4/2026
1.0.22 222 7/15/2026
1.0.21 144 7/6/2026
1.0.20 134 7/1/2026
1.0.19 178 6/18/2026
1.0.18 278 5/1/2026
1.0.17 159 4/22/2026
1.0.16 124 4/21/2026
1.0.15 119 4/21/2026