KuduClientVFSExtensions.

VFSUploadString(IKuduClient, string, FilePath, Encoding) Method

Summary

Uploads stream to remote path.

Syntax

public static void VFSUploadString(this IKuduClient client, string sourceString, FilePath remotePath, Encoding encoding = null)

Examples

 #addin nuget:?package=Cake.Kudu.Client

 string  baseUri     = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
         userName    = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
         password    = EnvironmentVariable("KUDU_CLIENT_PASSWORD");

 IKuduClient kuduClient = KuduClient(
     baseUri,
     userName,
     password);

 string sourceString = "Hello";
 FilePath remoteFilePath = "/site/wwwroot/hello.txt";

 kuduClient.VFSUploadString(sourceString, remoteFilePath);

Parameters

Name Type Description
client IKuduClient The Kudu client.
sourceString string The source string.
remotePath FilePath The remote target file path.
encoding Encoding The text encoding.

Return Value

Type Description
void