Documentation ¶
Index ¶
- Constants
- func NewProjectReq(reqCfg ProjectReqConfig) *models.ProjectReq
- type ArtifactURI
- type CallBack
- type CallBackAttr
- type CallBackAttribute
- type CallBackAttrs
- type CallBackOpt
- type CallBackType
- type Client
- func (c *Client) CopyArtifact(toArtifactURI, fromArtifactURI ArtifactURI) (*artifact.CopyArtifactCreated, error)
- func (c *Client) CreateAdmin(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
- func (c *Client) CreateArtifactTag(toArtifactURI, fromArtifactURI ArtifactURI) (*artifact.CreateTagCreated, error)
- func (c *Client) CreateProject(projectReqConfig ProjectReqConfig) (*project.CreateProjectCreated, error)
- func (c *Client) DeleteAdmin(userID int64) (*user.DeleteUserOK, error)
- func (c *Client) DeleteArtifact(artifactURI ArtifactURI) (*artifact.DeleteArtifactOK, error)
- func (c *Client) DeleteProject(projectName string) (*project.DeleteProjectOK, error)
- func (c *Client) ExportArtifact() (string, error)
- func (c *Client) GC(gcFn ...util.Func)
- func (c *Client) GenerateArtifact() error
- func (c *Client) GetArtifact(artifactURI ArtifactURI) (*artifact.GetArtifactOK, error)
- func (c *Client) GetAuth() (string, error)
- func (c *Client) ImportOfflineArtifact() error
- func (c *Client) ListArtifacts(artifactURI ArtifactURI) (*artifact.ListArtifactsOK, error)
- func (c *Client) ListProjects() (*project.ListProjectsOK, error)
- func (c *Client) ListRepositories(projectName string) (*repository.ListRepositoriesOK, error)
- func (c *Client) WithCallBack(callback *CallBack) *Client
- func (c *Client) WithContext(ctx context.Context) *Client
- func (c *Client) WithHttpClient(httpCli *http.Client) *Client
- func (c *Client) WithPageConfig(pCfg *util.Page) *Client
- type ProjectReqConfig
Constants ¶
View Source
const (
ProjectNoStorageLimit int64 = -1
)
Variables ¶
This section is empty.
Functions ¶
func NewProjectReq ¶
func NewProjectReq(reqCfg ProjectReqConfig) *models.ProjectReq
Types ¶
type ArtifactURI ¶
type CallBack ¶
type CallBack struct {
CallBackAttrs
}
type CallBackAttr ¶
type CallBackAttr map[CallBackOpt]CallBackAttribute
type CallBackAttribute ¶
type CallBackAttribute struct {
// contains filtered or unexported fields
}
type CallBackAttrs ¶
type CallBackAttrs map[CallBackType]CallBackAttr
type CallBackOpt ¶
type CallBackOpt string
type CallBackType ¶
type CallBackType string
const ( ProjectCallBack CallBackType = "Project" RepoCallBack CallBackType = "Repository" )
type Client ¶
type Client struct { // callback variant CallBack *CallBack // contains filtered or unexported fields }
func (*Client) CopyArtifact ¶
func (c *Client) CopyArtifact(toArtifactURI, fromArtifactURI ArtifactURI) (*artifact.CopyArtifactCreated, error)
func (*Client) CreateAdmin ¶
func (c *Client) CreateAdmin(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
func (*Client) CreateArtifactTag ¶
func (c *Client) CreateArtifactTag(toArtifactURI, fromArtifactURI ArtifactURI) (*artifact.CreateTagCreated, error)
func (*Client) CreateProject ¶
func (c *Client) CreateProject(projectReqConfig ProjectReqConfig) (*project.CreateProjectCreated, error)
CreateProject preserve a project named: public create new project for each user by a specified name restrict the quota of each user
func (*Client) DeleteAdmin ¶
func (c *Client) DeleteAdmin(userID int64) (*user.DeleteUserOK, error)
func (*Client) DeleteArtifact ¶
func (c *Client) DeleteArtifact(artifactURI ArtifactURI) (*artifact.DeleteArtifactOK, error)
func (*Client) DeleteProject ¶
func (c *Client) DeleteProject(projectName string) (*project.DeleteProjectOK, error)
func (*Client) ExportArtifact ¶
ExportArtifact Download the image.tar.gz file to local
func (*Client) GenerateArtifact ¶
GenerateArtifact generate image from Dockerfile and push it to project
func (*Client) GetArtifact ¶
func (c *Client) GetArtifact(artifactURI ArtifactURI) (*artifact.GetArtifactOK, error)
func (*Client) ImportOfflineArtifact ¶
ImportOfflineArtifact Upload the image.tar.gz file to project
func (*Client) ListArtifacts ¶
func (c *Client) ListArtifacts(artifactURI ArtifactURI) (*artifact.ListArtifactsOK, error)
func (*Client) ListProjects ¶
func (c *Client) ListProjects() (*project.ListProjectsOK, error)
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories(projectName string) (*repository.ListRepositoriesOK, error)
func (*Client) WithCallBack ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package harbor_inst/client.go was generated by codegen, please fix its package dependency, but do not modify its functionality
|
Package harbor_inst/client.go was generated by codegen, please fix its package dependency, but do not modify its functionality |
Click to show internal directories.
Click to hide internal directories.