Documentation
¶
Index ¶
- func AdminAudience(origin string) string
- func AssertOrigin(t *testing.T, request *http.Request, expected string)
- func HTTPClient(roundTrip func(*http.Request) (*http.Response, error)) *http.Client
- func MachineAuthServer(t *testing.T, tokenHandler http.HandlerFunc) *httptest.Server
- func MountDeviceAuth(t *testing.T, mux *http.ServeMux, issuer func() string, plane protocol.Plane, ...)
- func OriginClient(server *httptest.Server) *http.Client
- func SessionResponse(resource, endpoint string) map[string]any
- func ToolArguments(r *http.Request) map[string]any
- func ToolName(r *http.Request) string
- func WriteJSON(w http.ResponseWriter, value any)
- type ControlFixtures
- type ObservedOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminAudience ¶
func HTTPClient ¶
func MachineAuthServer ¶
func MountDeviceAuth ¶
func SessionResponse ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, value any)
Types ¶
type ControlFixtures ¶
type ControlFixtures struct {
// contains filtered or unexported fields
}
func NewControlFixtures ¶
func NewControlFixtures(t *testing.T, mux *http.ServeMux) *ControlFixtures
func (*ControlFixtures) Handle ¶
func (f *ControlFixtures) Handle(tools []string, match map[string]string, handler http.HandlerFunc)
type ObservedOutput ¶
type ObservedOutput struct {
OnWrite func(string)
// contains filtered or unexported fields
}
func (*ObservedOutput) String ¶
func (w *ObservedOutput) String() string
Click to show internal directories.
Click to hide internal directories.