harbor_inst

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 12 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 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 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 ImportOfflineArtifact

func ImportOfflineArtifact() error

func Init

func Init()

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

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