Documentation ¶
Overview ¶
Package appcertificate 封装AppCertificate资源相关操作
Index ¶
- type AppCertificate
- func (c *AppCertificate) Create(userID string, orgID uint64, createReq *apistructs.CertificateQuoteRequest) error
- func (c *AppCertificate) Delete(appID, certificateID int64) error
- func (c *AppCertificate) ListAllAppCertificates(params *apistructs.AppCertificateListRequest) (*apistructs.PagingAppCertificateDTO, error)
- func (c *AppCertificate) ModifyApprovalStatus(approvalID int64, status apistructs.ApprovalStatus) error
- func (c *AppCertificate) PushConfigs(certificatePushReq *apistructs.PushCertificateConfigsRequest) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCertificate ¶
type AppCertificate struct {
// contains filtered or unexported fields
}
AppCertificate 资源对象操作封装
func New ¶
func New(options ...Option) *AppCertificate
New 新建 AppCertificate 实例,通过 AppCertificate 实例操作企业资源
func (*AppCertificate) Create ¶
func (c *AppCertificate) Create(userID string, orgID uint64, createReq *apistructs.CertificateQuoteRequest) error
Create 引用AppCertificate
func (*AppCertificate) Delete ¶
func (c *AppCertificate) Delete(appID, certificateID int64) error
Delete 取消引用Certificate
func (*AppCertificate) ListAllAppCertificates ¶
func (c *AppCertificate) ListAllAppCertificates(params *apistructs.AppCertificateListRequest) ( *apistructs.PagingAppCertificateDTO, error)
ListAllAppCertificates 列出所有应用下的引用证书
func (*AppCertificate) ModifyApprovalStatus ¶
func (c *AppCertificate) ModifyApprovalStatus(approvalID int64, status apistructs.ApprovalStatus) error
ModifyApprovalStatus 修改AppCertificate审批转态
func (*AppCertificate) PushConfigs ¶
func (c *AppCertificate) PushConfigs(certificatePushReq *apistructs.PushCertificateConfigsRequest) error
PushConfigs 推送Certificate配置到配置管理
type Option ¶
type Option func(*AppCertificate)
Option 定义 AppCertificate 对象的配置选项
func WithCertificate ¶
func WithCertificate(cer *certificate.Certificate) Option
WithCertificate 配置 证书
func WithPipelineCms ¶
func WithPipelineCms(cms cmspb.CmsServiceServer) Option
Click to show internal directories.
Click to hide internal directories.