Documentation ¶
Overview ¶
Package harbor_inst\client.go was generated by codegen, please fix its package dependency, but do not modify its functionality
global config
global var
Index ¶
- func AdminCreateUser(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
- func AdminDeleteUser(_int64 int64) (*user.DeleteUserOK, error)
- func CopyArtifact(artifactURI harbor_api.ArtifactURI, artifactURI2 harbor_api.ArtifactURI) (*artifact.CopyArtifactCreated, error)
- func CreateAdmin(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
- func CreateArtifactTag(artifactURI harbor_api.ArtifactURI, artifactURI2 harbor_api.ArtifactURI) (*artifact.CreateTagCreated, error)
- func CreateProject(projectReqConfig harbor_api.ProjectReqConfig) (*project.CreateProjectCreated, error)
- func DeleteAdmin(_int64 int64) (*user.DeleteUserOK, error)
- func DeleteArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.DeleteArtifactOK, error)
- func DeleteArtifactTag(artifactURI harbor_api.ArtifactURI) (*artifact.DeleteTagOK, error)
- func DeleteProject(_string string) (*project.DeleteProjectOK, error)
- func DeleteRepository(_string string, _string2 string) (*repository.DeleteRepositoryOK, error)
- func ErrorDetail(_error error) string
- func ExportArtifact() (string, error)
- func GC(varLenfunc ...util.Func)
- func GenerateArtifact() error
- func GetArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.GetArtifactOK, error)
- func GetAuth() (string, error)
- func GetProject(_string string) (*project.GetProjectOK, error)
- func GetRepository(_string string, _string2 string) (*repository.GetRepositoryOK, error)
- func ImportOfflineArtifact() error
- func Init()
- func ListArtifactTags(artifactURI harbor_api.ArtifactURI, _string string) (*artifact.ListTagsOK, error)
- func ListArtifacts(artifactURI harbor_api.ArtifactURI) (*artifact.ListArtifactsOK, error)
- func ListProjects(_bool bool) (*project.ListProjectsOK, error)
- func ListRepositories(_string string) (*repository.ListRepositoriesOK, error)
- func UpdateProjectStorageLimit(projectReqConfig *harbor_api.ProjectReqConfig) (*project.UpdateProjectOK, error)
- func WithCallBack(callBack *harbor_api.CallBack) *harbor_api.Client
- func WithContext(context context.Context) *harbor_api.Client
- func WithHttpClient(client *http.Client) *harbor_api.Client
- func WithPageConfig(page *util.Page) *harbor_api.Client
- func WithTimeout(duration time.Duration) *harbor_api.Client
- type ConfigOption
- func (o *ConfigOption) Load()
- func (o *ConfigOption) WithInsecure() *ConfigOption
- func (o *ConfigOption) WithPassword(password string) *ConfigOption
- func (o *ConfigOption) WithRegistry(harborRegistry string) *ConfigOption
- func (o *ConfigOption) WithSecure() *ConfigOption
- func (o *ConfigOption) WithUsername(username string) *ConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminCreateUser ¶ added in v1.2.20
func AdminCreateUser(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
func AdminDeleteUser ¶ added in v1.2.20
func AdminDeleteUser(_int64 int64) (*user.DeleteUserOK, error)
func CopyArtifact ¶
func CopyArtifact(artifactURI harbor_api.ArtifactURI, artifactURI2 harbor_api.ArtifactURI) (*artifact.CopyArtifactCreated, error)
func CreateAdmin ¶
func CreateAdmin(userCreationReq *models.UserCreationReq) (*user.CreateUserCreated, error)
func CreateArtifactTag ¶
func CreateArtifactTag(artifactURI harbor_api.ArtifactURI, artifactURI2 harbor_api.ArtifactURI) (*artifact.CreateTagCreated, error)
func CreateProject ¶
func CreateProject(projectReqConfig harbor_api.ProjectReqConfig) (*project.CreateProjectCreated, error)
func DeleteAdmin ¶
func DeleteAdmin(_int64 int64) (*user.DeleteUserOK, error)
func DeleteArtifact ¶
func DeleteArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.DeleteArtifactOK, error)
func DeleteArtifactTag ¶ added in v1.2.20
func DeleteArtifactTag(artifactURI harbor_api.ArtifactURI) (*artifact.DeleteTagOK, error)
func DeleteProject ¶
func DeleteProject(_string string) (*project.DeleteProjectOK, error)
func DeleteRepository ¶ added in v1.2.20
func DeleteRepository(_string string, _string2 string) (*repository.DeleteRepositoryOK, error)
func ErrorDetail ¶ added in v1.2.20
func ExportArtifact ¶
func GenerateArtifact ¶
func GenerateArtifact() error
func GetArtifact ¶
func GetArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.GetArtifactOK, error)
func GetProject ¶ added in v1.2.20
func GetProject(_string string) (*project.GetProjectOK, error)
func GetRepository ¶ added in v1.2.20
func GetRepository(_string string, _string2 string) (*repository.GetRepositoryOK, error)
func ImportOfflineArtifact ¶
func ImportOfflineArtifact() error
func ListArtifactTags ¶ added in v1.2.20
func ListArtifactTags(artifactURI harbor_api.ArtifactURI, _string string) (*artifact.ListTagsOK, error)
func ListArtifacts ¶
func ListArtifacts(artifactURI harbor_api.ArtifactURI) (*artifact.ListArtifactsOK, error)
func ListProjects ¶
func ListProjects(_bool bool) (*project.ListProjectsOK, error)
func ListRepositories ¶
func ListRepositories(_string string) (*repository.ListRepositoriesOK, error)
func UpdateProjectStorageLimit ¶ added in v1.2.20
func UpdateProjectStorageLimit(projectReqConfig *harbor_api.ProjectReqConfig) (*project.UpdateProjectOK, error)
func WithCallBack ¶
func WithCallBack(callBack *harbor_api.CallBack) *harbor_api.Client
func WithContext ¶
func WithContext(context context.Context) *harbor_api.Client
func WithHttpClient ¶
func WithHttpClient(client *http.Client) *harbor_api.Client
func WithPageConfig ¶
func WithPageConfig(page *util.Page) *harbor_api.Client
func WithTimeout ¶ added in v1.2.20
func WithTimeout(duration time.Duration) *harbor_api.Client
Types ¶
type ConfigOption ¶
func New ¶ added in v1.1.5
func New() *ConfigOption
func (*ConfigOption) Load ¶
func (o *ConfigOption) Load()
func (*ConfigOption) WithInsecure ¶
func (o *ConfigOption) WithInsecure() *ConfigOption
func (*ConfigOption) WithPassword ¶
func (o *ConfigOption) WithPassword(password string) *ConfigOption
func (*ConfigOption) WithRegistry ¶
func (o *ConfigOption) WithRegistry(harborRegistry string) *ConfigOption
func (*ConfigOption) WithSecure ¶
func (o *ConfigOption) WithSecure() *ConfigOption
func (*ConfigOption) WithUsername ¶
func (o *ConfigOption) WithUsername(username string) *ConfigOption
Click to show internal directories.
Click to hide internal directories.