Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Login ¶
type Login struct { // Operation holds the requested operation. Operation Operation `json:"operation"` // Username and Password hold traditional Juju credentials for local users. Username string `json:"username"` Password string `json:"password"` // Macaroons, alternatively, maps cookie URLs to macaroons used for // authenticating as external users. An identity manager URL/token pair is // usually provided. Macaroons map[string]macaroon.Slice `json:"macaroons"` }
Login holds parameters for making a login request.
type Response ¶
type Response struct { // Operation holds the originally requested operation. Operation Operation `json:"operation"` // Code is the response code. Code ResponseCode `json:"code"` // Message holds an optional response message. Message string `json:"message"` }
Response holds a server response.
type ResponseCode ¶
type ResponseCode string
ResponseCode is a server response code.
const ( OK ResponseCode = "ok" Error ResponseCode = "error" )
OK and Error hold the two possible response codes.
Click to show internal directories.
Click to hide internal directories.