models

package
v5.1.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: BSD-3-Clause Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKey

type AccessKey struct {
	ID        string    `json:"id"`
	PublicKey []byte    `json:"public_key"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
}

type AppConfig

type AppConfig struct {
	AppID    string `json:"APP_ID"`
	APIKeyID string `json:"API_KEY_ID"`
	APIKey   []byte `json:"API_KEY"`
}

type Application

type Application struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
}

type ApplicationToken

type ApplicationToken struct {
	ID        string    `json:"id"`
	Name      string    `json:"token_name"`
	CreatedAt time.Time `json:"created_at"`
	Token     string    `json:"app_token"`
}

type CreateAccessKeyRequest

type CreateAccessKeyRequest struct {
	Name      string `json:"name"`
	PublicKey []byte `json:"public_key"`
	Signature []byte `json:"signature"`
}

type CreateAccountRequest

type CreateAccountRequest struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

type CreateAppRequest

type CreateAppRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

type CreateAppResp

type CreateAppResp struct {
	ID string `json:"id"`
}

type CreateAppTokenRequest

type CreateAppTokenRequest struct {
	Name          string `json:"token_name"`
	ApplicationID string `json:"application_id"`
}

type DcmCertificateCreateRequest

type DcmCertificateCreateRequest struct {
	Name             string `json:"name"`
	EncryptPublicKey string `json:"encrypt_public_key"`
	VerifyPublicKey  string `json:"verify_public_key"`
}

type DcmCertificateCreateResponse

type DcmCertificateCreateResponse struct {
	Name           string `json:"name"`
	Certificate    string `json:"certificate"`
	EcaAddress     string `json:"eca_address"`
	EcaCertificate string `json:"eca_certificate"`
	RaAddress      string `json:"ra_address"`
	Lccf           string `json:"lccf"`
}

type DcmCertificateListItem

type DcmCertificateListItem struct {
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
}

type Device

type Device struct {
	ID        string    `json:"id"`
	DcmID     string    `json:"dcm_id"`
	ValidFrom time.Time `json:"valid_from"`
	ValidTo   time.Time `json:"valid_to"`
}

type LoginRequest

type LoginRequest struct {
	Email        string        `json:"email"`
	Password     string        `json:"password"`
	Verification *Verification `json:"verification"`
}

type ManagementTokenRequest

type ManagementTokenRequest struct {
	Name string `json:"token_name"`
}

type ManagementTokenResponse

type ManagementTokenResponse struct {
	Token string `json:"management_token"`
}

type SessionToken

type SessionToken struct {
	Token string `json:"session_token"`
}

type StoredApplication

type StoredApplication struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
	Token     string    `json:"token"`
	IsDefault bool      `json:"is_default"`
}

type UpdateAccessKeyRequest

type UpdateAccessKeyRequest struct {
	Name string `json:"name"`
}

type UpdateAppRequest

type UpdateAppRequest struct {
	Name string `json:"name"`
}

type Verification

type Verification struct {
	MFACode string `json:"mfa_code"`
}

Jump to

Keyboard shortcuts

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