harbor_inst

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package harbor_inst/client.go was generated by codegen, do not modify it

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 GenerateArtifact

func GenerateArtifact() error

func GetArtifact

func GetArtifact(artifactURI harbor_api.ArtifactURI) (*artifact.GetArtifactOK, 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 NewConfig

func NewConfig() *ConfigOption

func (*ConfigOption) Load

func (o *ConfigOption) Load() *ConfigOption

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