responses

package
v0.0.0-...-c4b491b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0, GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	Snaps       map[string]map[string]Snap `json:"snaps"`
	AccountKeys []Key                      `json:"account_keys"`
	AccountId   string                     `json:"account_id"`
}

type DischargeMacaroon

type DischargeMacaroon struct {
	DischargeMacaroon string `json:"discharge_macaroon"`
}

type Key

type Key struct {
	PublicKeySHA384 string `json:"public-key-sha3-384"`
	Name            string `json:"name"`
}

type Macaroon

type Macaroon struct {
	Macaroon string `json:"macaroon"`
}

type RegisterSnap

type RegisterSnap struct {
	Id   string `json:"snap_id"`
	Name string `json:"snap_name"`
}

type Snap

type Snap struct {
	Status  string `json:"status"`
	SnapId  string `json:"snap-id"`
	Store   string `json:"store"`
	Since   string `json:"since"`
	Private bool   `json:"private"`
	Price   string `json:"price"`
}

type SnapRelease

type SnapRelease struct {
	Success bool
}

type Status

type Status struct {
	Processed bool   `json:"processed"`
	Code      string `json:"code"`
	Revision  int    `json:"revision"`
}

type Verify

type Verify struct {
	Allowed               bool           `json:"allowed"`
	DeviceRefreshRequired bool           `json:"device_refresh_required"`
	RefreshRequired       bool           `json:"refresh_required"`
	Account               *VerifyAccount `json:"account,omitempty"`
	Device                *string        `json:"device"`
	LastAuth              string         `json:"last_auth"`
	Permissions           *[]string      `json:"permissions"`
	SnapIds               *string        `json:"snap_ids"`
	Channels              *string        `json:"channels"`
}

type VerifyAccount

type VerifyAccount struct {
	Email       string `json:"email"`
	DisplayName string `json:"displayname"`
	OpenId      string `json:"openid"`
	Verified    bool   `json:"verified"`
}

Jump to

Keyboard shortcuts

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