Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessCred ¶
AccessCred contains credential data for accessing the harbor server
type HarborClient ¶
type HarborClient struct { Client *hc.Harbor Auth gruntime.ClientAuthInfoWriter }
HarborClient keeps Harbor client
type HarborClientV2 ¶
type HarborClientV2 struct { Client *hc2.Harbor Auth gruntime.ClientAuthInfoWriter }
HarborClientV2 keeps Harbor client v2
type HarborServer ¶
type HarborServer struct { ServerURL string AccessCred *AccessCred InSecure bool }
HarborServer contains connection data
func NewHarborServer ¶
func NewHarborServer(serverURL string, accessCred *AccessCred, insecure bool) *HarborServer
NewHarborServer returns harbor server with inputs
func (*HarborServer) Client ¶
func (h *HarborServer) Client() *HarborClient
Client created based on the server data
func (*HarborServer) ClientV2 ¶
func (h *HarborServer) ClientV2() *HarborClientV2
ClientV2 created based on the server data. Harbor V2 API
Click to show internal directories.
Click to hide internal directories.