-
Notifications
You must be signed in to change notification settings - Fork 1
Add FTP configuration files #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c02d990
Add FTP configuration files
ana-musat eb2ee98
Update FTPFileTypes enum
ana-musat bca924e
Update FTPFileTypes
ana-musat cb38aff
Update FTPFileTypes , File to Files and Directory to Folders
ana-musat c73a0c3
Add AuthenticationConfiguration class for the FTP
ana-musat 6698d23
Change version to 1.13.1.1
ana-musat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/AuthenticationConfiguration.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; } | ||
| public string KeyPassphrase { get; set; } | ||
| public string KeyUsername { get; set; } | ||
| } | ||
| } | ||
14 changes: 14 additions & 0 deletions
14
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/FTPCredentialsConfiguration.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; } | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions
9
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/FTPCredentialsManager.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; } | ||
| } | ||
| } |
8 changes: 8 additions & 0 deletions
8
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/FTPFileTypes.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/FTPFilesInformations.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/FtpClientTypes.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
Ringhel.Procesio.Action.Core/Models/Credentials/FTP/IFtpSftpClient.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.