models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCredential

type ApiCredential struct {
	Account string `url:"account"`
	Passwd  string `url:"passwd"`
	Session string `url:"session,omitempty"`
	Format  string `url:"format,omitempty"`
	OtpCode string `url:"otp_code,omitempty"`
	// contains filtered or unexported fields
}

type ApiDetails

type ApiDetails struct {
	Path       string `json:"path"`
	MinVersion int    `json:"minVersion"`
	Maxversion int    `json:"maxVersion"`
}

type ApiInfo

type ApiInfo map[string]ApiDetails

type AuthenticateResponse

type AuthenticateResponse struct {
	Sid string `json:"sid"`
	Did string `json:"did"`
}

type Certificate

type Certificate struct {
	Desc               string               `json:"desc"`
	ID                 string               `json:"id"`
	IsBroken           bool                 `json:"is_broken"`
	IsDefault          bool                 `json:"is_default"`
	Issuer             CertificateIssuer    `json:"issuer"`
	KeyTypes           string               `json:"key_types"`
	Renewable          bool                 `json:"renewable"`
	Services           []CertificateService `json:"services"`
	SignatureAlgorithm string               `json:"signature_algorithm"`
	Subject            CertificateSubject   `json:"subject"`
	UserDeletable      bool                 `json:"user_deletable"`
	ValidFrom          string               `json:"valid_from"`
	ValidTill          string               `json:"valid_till"`
}

type CertificateCreateResponse

type CertificateCreateResponse struct {
	Id string `json:"id"`
}

type CertificateIssuer

type CertificateIssuer struct {
	CommonName   string `json:"common_name"`
	Country      string `json:"country"`
	Organization string `json:"organization"`
}

type CertificateList

type CertificateList struct {
	Certificates []Certificate `json:"certificates"`
}

type CertificateService

type CertificateService struct {
	DisplayName     string `json:"display_name"`
	DisplayNamei18n string `json:"display_name_i18n"`
	IsPkg           bool   `json:"isPkg"`
	MultipleCert    bool   `json:"multiple_cert"`
	Owner           string `json:"owner"`
	Service         string `json:"service"`
	Subscriber      string `json:"subscriber"`
	UserSetable     bool   `json:"user_setable"`
}

type CertificateSubject

type CertificateSubject struct {
	City         string   `json:"city"`
	CommonName   string   `json:"common_name"`
	Country      string   `json:"country"`
	Organization string   `json:"organization"`
	SubAltName   []string `json:"sub_alt_name"`
}

type Response

type Response[T any] struct {
	Data    T             `json:"data"`
	Error   ResponseErrpr `json:"error"`
	Success bool          `json:"success"`
}

type ResponseErrpr

type ResponseErrpr struct {
	Code int `json:"code"`
}

Jump to

Keyboard shortcuts

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