配置上传到nacos
Former-commit-id: f58ef1f91fb197ba9dd88cdd6ba2bd0a8b67d653
This commit is contained in:
parent
8b68433d14
commit
d60545db01
|
@ -32,4 +32,5 @@ type Config struct {
|
|||
ModelArtsRpcConf zrpc.RpcClientConf
|
||||
CephRpcConf zrpc.RpcClientConf
|
||||
OctopusRpcConf zrpc.RpcClientConf
|
||||
NexusUrl string
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ func NewImageListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ImageLi
|
|||
func (l *ImageListLogic) ImageList() (resp *types.ImageListResp, err error) {
|
||||
|
||||
client := &http.Client{}
|
||||
url := fmt.Sprintf("%s/repository/%s/v2/_catalog", "http://10.101.15.175:8081", "pcm")
|
||||
url := fmt.Sprintf("%s/repository/%s/v2/_catalog", l.svcCtx.Config.NexusUrl, "pcm")
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -28,7 +28,7 @@ func NewImageTagsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ImageTa
|
|||
|
||||
func (l *ImageTagsLogic) ImageTags(req *types.ImageTagsReq) (resp *types.ImageTagsResp, err error) {
|
||||
client := &http.Client{}
|
||||
url := fmt.Sprintf("%s/repository/%s/v2/%s/tags/list", "http://10.101.15.175:8081", "pcm", req.Name)
|
||||
url := fmt.Sprintf("%s/repository/%s/v2/%s/tags/list", l.svcCtx.Config.NexusUrl, "pcm", req.Name)
|
||||
httpReq, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue