certificate

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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