Documentation ¶
Index ¶
- type Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithCMP(cmp dashboardPb.ClusterResourceServer) Option
- func WithDBClient(db *dao.DBClient) Option
- func WithNexusSvc(svc *nexussvc.NexusSvc) Option
- func WithPublisher(publisher *publisher.Publisher) Option
- func WithRedisClient(cli *redis.Client) Option
- func WithTrans(trans i18n.Translator) Option
- func WithUCClient(uc *ucauth.UCClient) Option
- type Org
- func (o *Org) EnsureNexusOrgGroupRepos(org *apistructs.OrgDTO) error
- func (o *Org) FetchOrgClusterResource(ctx context.Context, orgID uint64) (*apistructs.OrgClustersResourcesInfo, error)
- func (o *Org) GetNexusOrgDockerCredential(orgID uint64, image string) (*apistructs.NexusUser, error)
- func (o *Org) GetOrgLevelNexus(orgID uint64, req *apistructs.OrgNexusGetRequest) (*apistructs.OrgNexusGetResponseData, error)
- func (o *Org) GetPublisherID(orgID int64) int64
- func (o *Org) ShowOrgNexusPassword(req *apistructs.OrgNexusShowPasswordRequest) (map[uint64]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Org)
Option 定义 Org 对象的配置选项
func WithCMP ¶ added in v1.4.0
func WithCMP(cmp dashboardPb.ClusterResourceServer) Option
WithCMP sets the gRPC client to invoke CMP service Todo: the dependency on CMP will be moved to a service which is more suitable
func WithPublisher ¶
WithPublisher 配置 publisher
func WithRedisClient ¶
WithRedisClient 配置 redis client
func WithTrans ¶ added in v1.4.0
func WithTrans(trans i18n.Translator) Option
WithTrans sets the i18n.Translator
type Org ¶
type Org struct {
// contains filtered or unexported fields
}
func (*Org) EnsureNexusOrgGroupRepos ¶
func (o *Org) EnsureNexusOrgGroupRepos(org *apistructs.OrgDTO) error
func (*Org) FetchOrgClusterResource ¶ added in v1.4.0
func (o *Org) FetchOrgClusterResource(ctx context.Context, orgID uint64) (*apistructs.OrgClustersResourcesInfo, error)
func (*Org) GetNexusOrgDockerCredential ¶
func (o *Org) GetNexusOrgDockerCredential(orgID uint64, image string) (*apistructs.NexusUser, error)
GetNexusOrgDockerCredential 根据 image 返回 docker pull 认证信息
func (*Org) GetOrgLevelNexus ¶
func (o *Org) GetOrgLevelNexus(orgID uint64, req *apistructs.OrgNexusGetRequest) (*apistructs.OrgNexusGetResponseData, error)
func (*Org) GetPublisherID ¶
func (*Org) ShowOrgNexusPassword ¶
func (o *Org) ShowOrgNexusPassword(req *apistructs.OrgNexusShowPasswordRequest) (map[uint64]string, error)
Click to show internal directories.
Click to hide internal directories.