harbor_inst

package
v1.2.33 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

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 ErrorDetail(_error error) string

func ExportArtifact

func ExportArtifact() (string, error)

func GC added in v1.1.4

func GC(varLenfunc ...util.Func)

func GenerateArtifact

func GenerateArtifact() error

func GetArtifact

func GetArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.GetArtifactOK, error)

func GetAuth added in v1.1.3

func GetAuth() (string, 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 Init

func Init()

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

type ConfigOption struct {
	sync.Once
	// contains filtered or unexported fields
}

func New added in v1.1.5

func New() *ConfigOption

func NewConfig

func NewConfig() *ConfigOption

NewConfig Deprecated, use New instead

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

Jump to

Keyboard shortcuts

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