Skip to content

Commit ef366c6

Browse files
committed
add newparams
1 parent 2645dcd commit ef366c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxmox/service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,7 @@ func retrieveSessionKey(params Params) string {
165165
}
166166
return fmt.Sprintf("%s#%s#%x", params.endpoint, id, secret)
167167
}
168+
169+
func NewParams(endpoint string, ac AuthConfig, cc ClientConfig) Params {
170+
return Params{endpoint: endpoint, authConfig: ac, clientConfig: cc}
171+
}

0 commit comments

Comments
 (0)