Documentation ¶
Overview ¶
Package apitypes defines types shared between the daemon and its api client.
Index ¶
Constants ¶
View Source
const ( BadRequestError = "bad_request" NotFoundError = "not_found" InternalServerError = "internal_server" NotImplementedError = "not_implemented" )
These are the possible error types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { ID string `json:"id"` Version int `json:"version"` Body *primitive.Environment `json:"body"` }
Environment contains information for creating a new Env object
type ErrorType ¶
type ErrorType string
ErrorType represents the string error types that the daemon and registry can return.
type OrgInvite ¶
type OrgInvite struct { ID string `json:"id"` Version int `json:"version"` Body *primitive.OrgInvite `json:"body"` }
OrgInvite contains information for sending an Org invite
type Profile ¶
type Profile struct { ID string `json:"id"` Body *struct { Name string `json:"name"` Username string `json:"username"` } `json:"body"` }
Profile contains the fields in the response for the profiles endpoint
type Service ¶
type Service struct { ID *identity.ID `json:"id"` Version int `json:"version"` Body *primitive.Service `json:"body"` }
Service contains information for creating a new Service object
type SessionStatus ¶
SessionStatus contains details about the user's daemon session.
Click to show internal directories.
Click to hide internal directories.