Skip to content

Commit c3a0d1b

Browse files
committed
Add SetClient function to allow customized linodego client
1 parent d8738c5 commit c3a0d1b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/drivers/linode/linode.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ func (d *Driver) getClient() *linodego.Client {
107107
return d.client
108108
}
109109

110+
// SetClient sets the Linode API client for the driver
111+
func (d *Driver) SetClient(client *linodego.Client) {
112+
d.client = client
113+
}
114+
110115
func createRandomRootPassword() (string, error) {
111116
rawRootPass := make([]byte, 50)
112117
_, err := rand.Read(rawRootPass)

0 commit comments

Comments
 (0)