certificate

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package certificate 封装Certificate资源相关操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

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

Certificate 资源对象操作封装

func New

func New(options ...Option) *Certificate

New 新建 Certificate 实例,通过 Certificate 实例操作企业资源

func (*Certificate) Create

Create 创建Certificate

func (*Certificate) Delete

func (c *Certificate) Delete(certificateID, orgID int64) error

Delete 删除Certificate

func (*Certificate) Get

func (c *Certificate) Get(certificateID int64) (*apistructs.CertificateDTO, error)

Get 获取Certificate

func (*Certificate) ListAllCertificates

ListAllCertificates 企业管理员可查看当前企业下所有Certificate,包括未加入的Certificate

func (*Certificate) Update

func (c *Certificate) Update(certificateID int64, updateReq *apistructs.CertificateUpdateRequest) error

Update 更新Certificate

type Option

type Option func(*Certificate)

Option 定义 Certificate 对象的配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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