nexussvc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NexusSvc

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

NexusSvc nexus 操作封装

func New

func New(options ...Option) *NexusSvc

func (*NexusSvc) ConvertRepo

func (svc *NexusSvc) ConvertRepo(dbRepo *dao.NexusRepository) *apistructs.NexusRepository

func (*NexusSvc) ConvertRepos

func (svc *NexusSvc) ConvertRepos(dbRepos []*dao.NexusRepository) []*apistructs.NexusRepository

func (*NexusSvc) EnsureRepository

EnsureRepository 幂等保证 repository 存在

func (*NexusSvc) EnsureUser

func (*NexusSvc) GetRepositoryByName

func (svc *NexusSvc) GetRepositoryByName(name string) (*apistructs.NexusRepository, error)

func (*NexusSvc) GetUserByName

func (svc *NexusSvc) GetUserByName(name string, decodePassword bool) (*apistructs.NexusUser, error)

func (*NexusSvc) ListRepositories

ListRepositories 查询 repositories 列表

func (*NexusSvc) ListUsers

ListUsers 查询 user 列表

func (*NexusSvc) SyncRepoConfigToPipelineCM

func (svc *NexusSvc) SyncRepoConfigToPipelineCM(syncConfig apistructs.NexusSyncConfigToPipelineCM, repo *apistructs.NexusRepository) error

func (*NexusSvc) SyncUserConfigToPipelineCM

func (svc *NexusSvc) SyncUserConfigToPipelineCM(syncConfig apistructs.NexusSyncConfigToPipelineCM, user *apistructs.NexusUser, repoFormat nexus.RepositoryFormat) error

type Option

type Option func(*NexusSvc)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

func WithRsaCrypt

func WithRsaCrypt(rsaCrypt *encryption.RsaCrypt) Option

Jump to

Keyboard shortcuts

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