harbor

package
v0.0.0-...-f57b3c6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGlobalHelper

func NewGlobalHelper(opts ...Option) error

Types

type Helper

type Helper struct {
	ProjectCli
	*Options
}

func GetGlobalHelper

func GetGlobalHelper() *Helper

func NewHelper

func NewHelper(opts ...Option) (*Helper, error)

func (*Helper) CreateProject

func (h *Helper) CreateProject(name string) (*project.CreateProjectCreated, error)

type Option

type Option func(*Options)

func InsecureSkipVerify

func InsecureSkipVerify(enabled bool) Option

func Password

func Password(password string) Option

func Url

func Url(url string) Option

func Username

func Username(username string) Option

type Options

type Options struct {
	Url                string
	Username           string
	Password           string
	InsecureSkipVerify bool
}
var (
	Opts *Options
)

type ProjectCli

type ProjectCli interface {
	CreateProject(ctx context.Context, params *project.CreateProjectParams) (*project.CreateProjectCreated, error)
}

Jump to

Keyboard shortcuts

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