From 3ba46e0a91214173e8139f8128c8cdd5cfec1a95 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Wed, 22 Nov 2023 09:37:38 +0100 Subject: [PATCH] v2/servers: add docstring for userdata UserData has to be base64 encoded when creating a new server. Signed-off-by: Mathieu Tortuyaux --- v2/servers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/servers.go b/v2/servers.go index 5ce0692..7ff00b9 100644 --- a/v2/servers.go +++ b/v2/servers.go @@ -51,6 +51,7 @@ type ServerConsole struct { // ServerOptions is used in conjunction with CreateServer and UpdateServer to // create and update servers. +// UserData needs to be base64 encoded. type ServerOptions struct { ID string `json:"-"` Image *string `json:"image,omitempty"`