mock

package
v0.0.0-...-0cd9b86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetInfo

func HandleGetInfo(w http.ResponseWriter, r *http.Request)

func HandleGetRegistration

func HandleGetRegistration(w http.ResponseWriter, r *http.Request)

func HandleGetTMOSSys

func HandleGetTMOSSys(w http.ResponseWriter, r *http.Request)

func HandlePostRequest

func HandlePostRequest(w http.ResponseWriter, r *http.Request)

func HandlePostRequestAuthToken

func HandlePostRequestAuthToken(w http.ResponseWriter, r *http.Request)

Types

type AuthResponse

type AuthResponse struct {
	Username       string `json:"username"`
	LoginReference struct {
		Link string `json:"link"`
	} `json:"loginReference"`
	LoginProviderName string `json:"loginProviderName"`
	Token             Token  `json:"token"`
	Generation        int    `json:"generation"`
	LastUpdateMicros  int64  `json:"lastUpdateMicros"`
}

type InfoResponse

type InfoResponse struct {
	Version       string `json:"version"`
	Release       string `json:"release"`
	SchemaCurrent string `json:"schemaCurrent"`
	SchemaMinimum string `json:"schemaMinimum"`
}

type Item

type Item struct {
	Reference Reference `json:"reference"`
}

type Reference

type Reference struct {
	Link string `json:"link"`
}

type RegistrationInfo

type RegistrationInfo struct {
	Vendor               string `json:"vendor"`
	LicensedDateTime     string `json:"licensedDateTime"`
	LicensedVersion      string `json:"licensedVersion"`
	LicenseEndDateTime   string `json:"licenseEndDateTime"`
	LicenseStartDateTime string `json:"licenseStartDateTime"`
	RegistrationKey      string `json:"registrationKey"`
}

type SysCollectionState

type SysCollectionState struct {
	Kind     string `json:"kind"`
	SelfLink string `json:"selfLink"`
	Items    []Item `json:"items"`
}

type Token

type Token struct {
	Token            string `json:"token"`
	Name             string `json:"name"`
	UserName         string `json:"userName"`
	AuthProviderName string `json:"authProviderName"`
	User             struct {
		Link string `json:"link"`
	} `json:"user"`
	Timeout          int    `json:"timeout"`
	StartTime        string `json:"startTime"`
	Address          string `json:"address"`
	Partition        string `json:"partition"`
	Generation       int    `json:"generation"`
	LastUpdateMicros int64  `json:"lastUpdateMicros"`
	ExpirationMicros int64  `json:"expirationMicros"`
	Kind             string `json:"kind"`
	SelfLink         string `json:"selfLink"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL