Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + const ReqIDBadRequest + const ReqIDFailID501 + const ReqIDPoll + const ReqIDSerialWithBadModel + func Device(st *state.State) (*auth.DeviceState, error) + func MockDeviceService(c *C, bhv *DeviceServiceBehavior) *httptest.Server + func MockGadget(c *C, st *state.State, name string, revision snap.Revision, ...) (restore func()) + func SetDevice(st *state.State, device *auth.DeviceState) error + type DeviceServiceBehavior struct + ExpectedCapabilities string + Head func(c *C, bhv *DeviceServiceBehavior, w http.ResponseWriter, r *http.Request) + PostPreflight func(c *C, bhv *DeviceServiceBehavior, w http.ResponseWriter, r *http.Request) + ReqID string + RequestIDURLPath string + SerialURLPath string + SignSerial func(c *C, bhv *DeviceServiceBehavior, headers map[string]interface{}, body []byte) (serial asserts.Assertion, ancillary []asserts.Assertion, err error) + type PrepareDeviceBehavior struct + DeviceSvcURL string + Headers map[string]string + ProposedSerial string + RegBody map[string]string