accesskey

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyID added in v1.1.1

type AccessKeyID string

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) 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