-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
184 additions
and
80 deletions.
There are no files selected for viewing
This file contains 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,25 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: am-secret | ||
type: Opaque | ||
stringData: | ||
enduro_am_user: "analyst" | ||
enduro_am_api_key: "1w9ioGI2reeeeua8uPaiOee4Eiueev6u" | ||
enduro_known_hosts: | | ||
# enduro-temporal.ss.analyst.archivematica.net:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.9 | ||
enduro-temporal.ss.analyst.archivematica.net ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDW98QbhNAq2bwazlJb57ptBgxhWELNVo4R4Mh6WEO9FJHUfOLc6bE6eKD65MsJ0BZ4utpe64M1rvH6OX5PVQPFW8IjDgl132UPzkMSAJlze+aZhVI7Xjwq/ppJyRS3EJNyZ5cUV2yv/pDZ8zmaq06EpWnpbwYj8fmvdXqYJAvX7iJ4DZ9dycEPmNnWMwlh4pv3EOHlGO7gFqo2hurbzZFroz9O7mG/msf0qO3F/IXjJT6kw8yvxJ9nBMymp8ErdsLKhMxgBRPyrO2HULRUsDchZk550DCPrOAIH8Dea+WFsmczhJhKYDRWqiwTGhmaXQT3qezlMwNxJJnIeErEVSJx3Ic7pzcF8ZjTy2QwiGEdcMgFSgQobx9ujiuc+C7HaXkx8eOely8j6fiFr2cM6PzuuxgmBomcNOJjAz0r1vEGlbDLy5t/D7cYk3zElarXbqn1q9cronD6MR0h46hs7fxh+Ki6nwf60oOioD0kQmkflm6CCYA4LBTNt3+g3K6tqyU= | ||
# enduro-temporal.ss.analyst.archivematica.net:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.9 | ||
enduro-temporal.ss.analyst.archivematica.net ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIbi18z3t2gzGJfZLWGVWJLEEquuhPIxTcFDFE4N4j2rXt5FLHJS8zb/CSyWKjsBmGrspQz4xfTYSJJ0lc6+fww= | ||
# enduro-temporal.ss.analyst.archivematica.net:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.9 | ||
enduro-temporal.ss.analyst.archivematica.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEYTs4txTlcU8iGQ6C9ilvITtZaW4S3mT32w+WvzMmC0 | ||
data: | ||
enduro_id_ed25519: | | ||
LS0tLS1CRUdJTiBPUEVOU1NIIFBSSVZBVEUgS0VZLS0tLS0KYjNCbGJuTnphQzFyWlhrdGRqRUFB | ||
QUFBQkc1dmJtVUFBQUFFYm05dVpRQUFBQUFBQUFBQkFBQUFNd0FBQUF0emMyZ3RaVwpReU5UVXhP | ||
UUFBQUNEV1ZhSVR5d0xwTnh2STQwY0xHQUI3dWhmZDArc1JqNTc3VDNsNFU0dUdpd0FBQUppbXJG | ||
Y3ZwcXhYCkx3QUFBQXR6YzJndFpXUXlOVFV4T1FBQUFDRFdWYUlUeXdMcE54dkk0MGNMR0FCN3Vo | ||
ZmQwK3NSajU3N1QzbDRVNHVHaXcKQUFBRUFZRGlGdWh5d3FGNTBVMUFLTnhJY05NTnZTUWMwZE9R | ||
a0piZ25uMzlxb0c5WlZvaFBMQXVrM0c4ampSd3NZQUh1NgpGOTNUNnhHUG52dFBlWGhUaTRhTEFB | ||
QUFGV1JoZG1sa1FHRnlkR1ZtWVdOMGRXRnNMbU52YlE9PQotLS0tLUVORCBPUEVOU1NIIFBSSVZB | ||
VEUgS0VZLS0tLS0K |
This file contains 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
This file contains 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
This file contains 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
This file contains 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,17 @@ | ||
package sftp | ||
|
||
import ( | ||
"context" | ||
"io" | ||
) | ||
|
||
// A Client manages the transmission of data over SFTP. | ||
// | ||
// Implementations of the Client interface handle the connection details, | ||
// authentication, and other intricacies associated with different SFTP | ||
// servers and protocols. | ||
type Client interface { | ||
// Upload transfers data from the provided source reader to a specified | ||
// destination on the SFTP server. | ||
Upload(ctx context.Context, src io.Reader, dest string) (bytes int64, err error) | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.