justinsb
a8a0d22a9d
vfs: fix file replacement for SFTP
...
This makes it consistent with other VFS systems, where we can replace existing files.
2024-08-30 09:13:00 -04:00
justinsb
27dd371c08
Refactor: Add context.Context to more VFS methods
...
This allows for propagation of opentelemetry traces.
2023-10-14 14:31:05 -04:00
Jules Casteran
e27ae94daf
add removeAll to vfs
2023-05-10 15:24:15 +02:00
justinsb
6c2edaee7e
Add Context arg to vfs ReadFile
...
This is an "action" method, so should take a context.
2023-01-01 09:51:44 -05:00
justinsb
ae074bbc6b
VFS: Add context to CreateFile & WriteFile
...
As "request" methods, these should have context parameters.
2022-12-23 10:39:52 -05:00
Kubernetes Prow Robot
5922daed00
Merge pull request #14852 from justinsb/ssh_vfscontext
...
vfs: wire context into SSHPath
2022-12-22 09:31:38 -08:00
justinsb
4c789c7295
vfs: cleanup of SSH code
...
Generally cleaning up the SSH/SFTP code, only real change is to use posix rename.
2022-12-22 10:42:40 -05:00
justinsb
0a24aa99be
vfs: wire context into SSHPath
...
It doesn't follow quite the same patterns, but we still need to lay
the groundwork here.
2022-12-22 10:37:50 -05:00
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +02:00
Peter Rifel
4d9f0128a3
Upgrade to klog2
...
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Ciprian Hacman
d54aadc89c
Fix nits for removal of S3 file versions
2020-05-28 06:50:32 +03:00
Ciprian Hacman
9675692b84
Implement RemoveAll() for S3 paths
2020-05-25 07:46:32 +03:00
tanjunchen
3f9400a588
util/pkg/vfs/:staticcheck
2019-12-23 10:20:56 +08:00
feifei.zhang@huawei.com
48ebd260d3
fix golint failures
2019-11-24 16:38:58 +08:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Lars Lehtonen
420273b309
util/pkg/vfs: Fix swallowed errors
2019-08-28 14:03:57 -07:00
Justin SB
3e33ac7682
Change code from glog to klog
...
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog. That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Justin Santa Barbara
412cf377c2
VFS: WriteFile takes an io.ReadSeeker
...
Means we don't have to buffer big files in memory, in combination with
WriteTo for reading.
2018-02-26 09:09:17 -05:00
Justin Santa Barbara
6f6bafb65e
VFS: Support io.WriterTo interface
...
Allows us to handle much bigger files (no need to buffer in-memory)
2018-01-08 22:34:27 -05:00
Justin Santa Barbara
ec8db8b78c
Initial implementation of bundle command
...
The bundle command will support enrollment of a machine via SSH.
2018-01-04 18:55:28 -05:00
chrislovecnm
8d1ee1fa16
updating files for goimports
2017-11-01 12:51:43 -06:00
Justin Santa Barbara
b2bcba4a6d
GCE: Use object-level permissions for files in GCS
...
This lets us configure cross-project permissions while ourselves needing
minimal permissions, but also gives us a nice hook for future lockdown
of object-level permissions.
2017-10-29 19:17:00 -04:00
chrislovecnm
8fa2aac99f
fixing more headers
2016-10-15 19:20:56 -06:00
Justin Santa Barbara
5f8d68ec85
Refactor shared packages into util directory
2016-09-25 18:27:09 -04:00