Skip to content

autozimu/LXD.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LXD.NET

Build status NuGet version

LXD client implemented in C#.

Usage

This module is available as a NuGet package. One can install it using NuGet Package Console window,

PM> Install-Package LXD

Example

using LXD;

Client client = new Client(
    apiEndpoint: "https://your-lxd-service:8443",
    clientCertificateFilename: "your-client-certificate.p12",
    password: "your-client-certificate-password");

Console.WriteLine(client.Trusted); // true

foreach (Domain.Container container in client.Containers) {
    Console.WriteLine(container.Name);
}
// alpline
// ubuntu

Domain.Container alpine = client.Containers.First();
foreach (string str in alpine.Exec(new[] {"cat", "/etc/issue"})) {
    Console.WriteLine(st);
}
// Welcome to Alpine Linux 3.4
// Kernel \r on an \m (\l)

About

LXD client implemented in C#

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published