harbor

package
v0.0.0-...-46fbbb1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Copyright 2022 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter for handling data from Harbor.

func (*Adapter) ApplyConfig

func (a *Adapter) ApplyConfig(ctx context.Context, ds v1alpha1.DataSource) error

ApplyPolicy implements data.Configurator.

func (*Adapter) GetVulnerabilitiesList

func (a *Adapter) GetVulnerabilitiesList(ctx context.Context, id core.ArtifactID) (*vuln.Report, error)

func (*Adapter) Ping

func (a *Adapter) Ping(ctx context.Context) error

Ping implements data.HealthChecker.

func (*Adapter) Read

func (a *Adapter) Read(ctx context.Context, id core.ArtifactID, options ...data.ReadOption) ([]types.Store, error)

Read implements data.Provider.

func (*Adapter) RegisterKnownRegistries

func (a *Adapter) RegisterKnownRegistries(ctx context.Context, registries []v1alpha1.KnownRegistry) error

RegisterKnownRegistries implements data.Register.

func (*Adapter) Request

func (a *Adapter) Request(ctx context.Context, id core.ArtifactID) error

Request implements data.Provider.

func (*Adapter) WithCache

func (a *Adapter) WithCache(cache cache.Client) *Adapter

WithCache sets cache client.

func (*Adapter) WithClient

func (a *Adapter) WithClient(cli *harbor.ClientSet) *Adapter

WithClient sets Harbor client.

func (*Adapter) WithClientConfig

func (a *Adapter) WithClientConfig(clientConfig harborclient.ClientSetConfig) *Adapter

WithClientConfig sets the client config of this harbor instance

func (*Adapter) WithK8sClient

func (a *Adapter) WithK8sClient(client k8client.Client) *Adapter

Jump to

Keyboard shortcuts

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