Documentation
¶
Index ¶
- func Revoke(ctx context.Context, param RevokeParam) (err errors.CodeError)
- func SaveExchangeKey(ctx context.Context, param SaveExchangeKeyParam) (err errors.CodeError)
- func SaveRoot(ctx context.Context, param SaveRootParam) (err errors.CodeError)
- type GetExchangeKeyParam
- type GetExchangeKeyResult
- type IssueParam
- type IssueResult
- type RevokeParam
- type RootParam
- type RootResult
- type SaveExchangeKeyParam
- type SaveRootParam
- type VerifyParam
- type VerifyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveExchangeKey ¶
func SaveExchangeKey(ctx context.Context, param SaveExchangeKeyParam) (err errors.CodeError)
Types ¶
type GetExchangeKeyParam ¶
type GetExchangeKeyParam struct {
AppId string `json:"appId"`
}
type GetExchangeKeyResult ¶
func GetExchangeKey ¶
func GetExchangeKey(ctx context.Context, param GetExchangeKeyParam) (result GetExchangeKeyResult, err errors.CodeError)
type IssueParam ¶
type IssueResult ¶
type IssueResult struct { PublicPEM []byte `json:"publicPem"` PrivatePEM []byte `json:"privatePem"` }
func Issue ¶
func Issue(ctx context.Context, param IssueParam) (result IssueResult, err errors.CodeError)
type RevokeParam ¶
type RevokeParam struct {
AppId string `json:"appId"`
}
type RootResult ¶
type SaveExchangeKeyParam ¶
type SaveRootParam ¶
type VerifyParam ¶
type VerifyParam struct {
PublicPEM []byte `json:"publicPem"`
}
type VerifyResult ¶
type VerifyResult struct {
Ok bool `json:"ok"`
}
func Verify ¶
func Verify(ctx context.Context, param VerifyParam) (result VerifyResult, err errors.CodeError)
Click to show internal directories.
Click to hide internal directories.