accesskey

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option 定义 Member 对象配置选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

type Service

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

func New

func New(options ...Option) (*Service, error)

New 新建 Audit 实例

func (*Service) CreateAccessKey

func (s *Service) CreateAccessKey(ctx context.Context, req apistructs.AccessKeyCreateRequest) (model.AccessKey, error)

func (*Service) DeleteByAccessKeyID

func (s *Service) DeleteByAccessKeyID(ctx context.Context, ak string) error

func (*Service) GetByAccessKeyID

func (s *Service) GetByAccessKeyID(ctx context.Context, ak string) (model.AccessKey, error)

func (*Service) ListAccessKey

func (*Service) UpdateAccessKey

func (s *Service) UpdateAccessKey(ctx context.Context, ak string, req apistructs.AccessKeyUpdateRequest) (model.AccessKey, error)

Jump to

Keyboard shortcuts

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