refactor(grafanabackuper): add restore function

This commit is contained in:
Tom Neuber 2024-08-19 20:12:28 +02:00
parent 83a15b5a87
commit 1f0d76ba9e
Signed by: tom
GPG key ID: F17EFE4272D89FF6
9 changed files with 214 additions and 8 deletions

View file

@ -23,7 +23,8 @@ type Client struct {
logger zerolog.Logger
signer *git.SignKey
Backup BackupClient
Backup BackupClient
Restore RestoreClient
}
func NewClient(options ...ClientOption) *Client {
@ -34,6 +35,7 @@ func NewClient(options ...ClientOption) *Client {
}
client.Backup = BackupClient{client: client}
client.Restore = RestoreClient{client: client}
return client
}