nexus

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package nexus 는 Nexus 레지스트리에서 이미지를 지운다.

Harbor 와 달리 "이미지 저장소를 통째로 지운다" 는 단일 API 가 없다. 이름으로 컴포넌트를 찾아 하나씩 지운다 — 태그마다 컴포넌트가 하나씩 생기므로 여럿이다.

harbor.Client 와 같은 자리다 — port.ImageRepositoryDeleter 의 Nexus 구현체이고, 어느 레지스트리를 쓰는지는 번들을 조립하는 쪽이 정한다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client 는 Nexus API 클라이언트다.

func NewClient

func NewClient(baseURL, user, password string) *Client

NewClient 는 Nexus 클라이언트를 만든다.

baseURL 은 Nexus 의 API 주소다 (예: https://nexus.nullus.io). docker 커넥터 주소(registry.<도메인>)와 다르다 — 그쪽은 이미지 push/pull 전용 포트다.

func (*Client) DeleteImageRepository

func (c *Client) DeleteImageRepository(ctx context.Context, target *port.ImageTarget) error

DeleteImageRepository 는 이 이미지의 컴포넌트를 전부 지운다.

하나가 실패해도 나머지를 시도한 뒤 실패 사실을 올린다. 첫 실패에서 멈추면 절반만 지워진 채 성공도 실패도 아닌 상태가 된다.

func (*Client) WithHTTPClient

func (c *Client) WithHTTPClient(h *http.Client) *Client

WithHTTPClient 는 타임아웃·전송 계층을 교체한다.

Jump to

Keyboard shortcuts

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