model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredential

func GetCredential(secret *corev1.Secret) (string, string, error)

GetCredential put secret into AccessCred.

Types

type HarborAssistClient

type HarborAssistClient struct {
	Client *assistclient.HarborAPI
}

HarborAssistClient keeps Harbor client.

type HarborClientV2

type HarborClientV2 struct {
	Client *v2client.HarborAPI
	Auth   gruntime.ClientAuthInfoWriter
}

HarborClientV2 keeps Harbor client v2.

type HarborLegacyClient

type HarborLegacyClient struct {
	Client *legacyclient.HarborAPI
}

HarborLegacyClient keeps Harbor client.

type HarborServer

type HarborServer struct {
	ServerURL string
	Username  string
	Password  string
	Insecure  bool
}

HarborServer contains connection data.

func NewHarborServer

func NewHarborServer(url, username, password string, insecure bool) *HarborServer

NewHarborServer returns harbor server with inputs.

func (*HarborServer) ClientV2

func (h *HarborServer) ClientV2() (*HarborClientV2, error)

ClientV2 created based on the server data. Harbor V2 API.

Jump to

Keyboard shortcuts

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