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 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 DeleteProject(_string string) (*project.DeleteProjectOK, error)
- 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 ImportOfflineArtifact() error
- func Init()
- func ListArtifacts(artifactURI harbor_api.ArtifactURI) (*artifact.ListArtifactsOK, error)
- func ListProjects() (*project.ListProjectsOK, error)
- func ListRepositories(_string string) (*repository.ListRepositoriesOK, 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
- 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 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 DeleteProject ¶
func DeleteProject(_string string) (*project.DeleteProjectOK, error)
func ExportArtifact ¶
func GenerateArtifact ¶
func GenerateArtifact() error
func GetArtifact ¶
func GetArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.GetArtifactOK, error)
func ImportOfflineArtifact ¶
func ImportOfflineArtifact() error
func ListArtifacts ¶
func ListArtifacts(artifactURI harbor_api.ArtifactURI) (*artifact.ListArtifactsOK, error)
func ListProjects ¶
func ListProjects() (*project.ListProjectsOK, error)
func ListRepositories ¶
func ListRepositories(_string string) (*repository.ListRepositoriesOK, 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
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.