Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public class AuthenticationConfiguration
{
public string UserName { get; set; }
public string Password { get; set; }
public string Key { get; set; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember to update this from string to Stream when we'll have the certificate uploaded.

public string KeyPassphrase { get; set; }
public string KeyUsername { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public class FTPCredentialsConfiguration
{
public string Host { get; set; }
public int Port { get; set; }
public FtpClientTypes Protocol { get; set; }
public bool IgnoreCertificateWarnings { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string Path { get; set; }
public AuthenticationConfiguration Authentication { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public class FTPCredentialsManager
{
public FTPCredentialsConfiguration CredentialsConfiguration { get; set; }

public IFtpSftpClient Client { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public enum FTPFileTypes
{
Files = 1,
Folders = 2
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public class FTPFilesInformations
{
public string Path { get; set; }
public string Name { get; set; }
public string Type { get; set; }
public long Size { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
/// <summary>
/// There are 2 types of FTP clients,
/// can be FTP or SFTP
/// </summary>
public enum FtpClientTypes
{
FTP = 1,
SFTP = 2
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Ringhel.Procesio.Action.Core.Models.Credentials.FTP
{
public interface IFtpSftpClient
{
Task<List<FTPFilesInformations>> ListFileNamesWithinFolder(string directoryPath, bool isRecursive, string type);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>Ringhel</Company>
<Product>Procesio</Product>
<RepositoryUrl>https://github.com/PROCESIO/Action-Core.git</RepositoryUrl>
<Version>1.13.0</Version>
<Version>1.13.1.1</Version>
<AssemblyName>Ringhel.Procesio.Action.Core</AssemblyName>
<PackageId>Ringhel.Procesio.Action.Core</PackageId>
<RootNamespace>Ringhel.Procesio.Action.Core</RootNamespace>
Expand Down