Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
62bbef72
Commit
62bbef72
authored
Apr 29, 2021
by
Brian Downs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update struct field doc comment and get basename on s3 obj
Signed-off-by:
Brian Downs
<
brian.downs@gmail.com
>
parent
83ae76fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
etcd.go
pkg/etcd/etcd.go
+2
-3
No files found.
pkg/etcd/etcd.go
View file @
62bbef72
...
@@ -884,8 +884,7 @@ type s3Config struct {
...
@@ -884,8 +884,7 @@ type s3Config struct {
type
snapshotFile
struct
{
type
snapshotFile
struct
{
Name
string
`json:"name"`
Name
string
`json:"name"`
// Location contains the full path of the snapshot. For
// Location contains the full path of the snapshot. For
// local paths, the location will be prefixed with "file://"
// local paths, the location will be prefixed with "file://".
// and for S3 will be "s3://".
Location
string
`json:"location,omitempty"`
Location
string
`json:"location,omitempty"`
NodeName
string
`json:"nodeName,omitempty"`
NodeName
string
`json:"nodeName,omitempty"`
CreatedAt
*
metav1
.
Time
`json:"createdAt,omitempty"`
CreatedAt
*
metav1
.
Time
`json:"createdAt,omitempty"`
...
@@ -918,7 +917,7 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
...
@@ -918,7 +917,7 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
return
nil
,
err
return
nil
,
err
}
}
snapshots
=
append
(
snapshots
,
snapshotFile
{
snapshots
=
append
(
snapshots
,
snapshotFile
{
Name
:
obj
.
Key
,
Name
:
filepath
.
Base
(
obj
.
Key
)
,
NodeName
:
nodeName
,
NodeName
:
nodeName
,
CreatedAt
:
&
metav1
.
Time
{
CreatedAt
:
&
metav1
.
Time
{
Time
:
ca
,
Time
:
ca
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment