workload

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertDetailParams

type CertDetailParams struct {
	SN  string
	AKI string
}

type CertListParams

type CertListParams struct {
	// query criteria
	CertSN         string
	Role, UniqueID string
	// Paging condition
	Page, PageSize                 int
	Status                         string
	Order                          string
	ExpiryStartTime, ExpiryEndTime string
}

type CertListResult

type CertListResult struct {
	CertList []*schema.FullCert
	Total    int64
}

type ForbidNewCertsParams

type ForbidNewCertsParams struct {
	UniqueIds []string `json:"unique_ids"`
}

type Logic

type Logic struct {
	// contains filtered or unexported fields
}

func NewLogic

func NewLogic() *Logic

func (*Logic) CertDetail

func (l *Logic) CertDetail(params *CertDetailParams) (*schema.FullCert, error)

func (*Logic) CertList

func (l *Logic) CertList(params *CertListParams) (*CertListResult, error)

CertList Get certificate list

func (*Logic) ForbidNewCerts

func (l *Logic) ForbidNewCerts(params *ForbidNewCertsParams) error

ForbidNewCerts Prohibit a uniqueID from requesting a certificate

	1.UniqueID is not allowed to apply for a new certificate
 2. Logging

func (*Logic) RecoverCerts

func (l *Logic) RecoverCerts(params *RecoverCertsParams) error

RecoverCerts Restore certificate

  1. Recover certificate through snaki
  2. Unified certificate recovery through uniqueID

func (*Logic) RecoverForbidNewCerts

func (l *Logic) RecoverForbidNewCerts(params *ForbidNewCertsParams) error

RecoverForbidNewCerts Recovery allows a uniqueID to request a certificate

  1. Allow uniqueID to request a new certificate

func (*Logic) RevokeCerts

func (l *Logic) RevokeCerts(params *RevokeCertsParams) error

RevokeCerts Revocation of certificate

  1. Revoke certificate through snaki
  2. Unified revocation of certificates through uniqueID

func (*Logic) UnitsForbidQuery

func (l *Logic) UnitsForbidQuery(params *UnitsForbidQueryParams) (*UnitsForbidQueryResult, error)

UnitsForbidQuery Query unique_id Is it forbidden to apply for certificate

type RecoverCertsParams

type RecoverCertsParams struct {
	SN       string `json:"sn"`
	AKI      string `json:"aki"`
	UniqueId string `json:"unique_id"`
}

type RevokeCertsParams

type RevokeCertsParams struct {
	SN       string `json:"sn"`
	AKI      string `json:"aki"`
	UniqueId string `json:"unique_id"`
}

type UnitForbidQueryItem

type UnitForbidQueryItem struct {
	UniqueId string `json:"unique_id"`
	Forbid   bool   `json:"forbid"`
}

type UnitsForbidQueryParams

type UnitsForbidQueryParams struct {
	UniqueIds []string `json:"unique_ids"`
}

type UnitsForbidQueryResult

type UnitsForbidQueryResult struct {
	Status map[string]UnitForbidQueryItem `json:"status"`
}

Jump to

Keyboard shortcuts

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