INNER CODE UNIT · Go
fillRestoreS3Cert
k8up-io/k8up · cmd/restic/main.go:360
func fillRestoreS3Cert() (cert resticCli.S3Cert) {
if cfg.Config.RestoreCACert != "" {
cert.CACert = cfg.Config.RestoreCACert
}
if cfg.Config.RestoreClientCert != "" && cfg.Config.RestoreClientKey != "" {
cert.ClientCert = cfg.Config.RestoreClientCert
cert.ClientKey = cfg.Config.RestoreClientKey
}
return cert
}