Documentation ¶
Overview ¶
Copyright 2022 VMware, Inc. SPDX-License-Identifier: Apache-2.0
Index ¶
- type Adapter
- func (a *Adapter) ApplyConfig(ctx context.Context, ds v1alpha1.DataSource) error
- func (a *Adapter) GetVulnerabilitiesList(ctx context.Context, id core.ArtifactID) (*vuln.Report, error)
- func (a *Adapter) Ping(ctx context.Context) error
- func (a *Adapter) Read(ctx context.Context, id core.ArtifactID, options ...data.ReadOption) ([]types.Store, error)
- func (a *Adapter) RegisterKnownRegistries(ctx context.Context, registries []v1alpha1.KnownRegistry) error
- func (a *Adapter) Request(ctx context.Context, id core.ArtifactID) error
- func (a *Adapter) WithCache(cache cache.Client) *Adapter
- func (a *Adapter) WithClient(cli *harbor.ClientSet) *Adapter
- func (a *Adapter) WithClientConfig(clientConfig harborclient.ClientSetConfig) *Adapter
- func (a *Adapter) WithK8sClient(client k8client.Client) *Adapter
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 ¶
ApplyPolicy implements data.Configurator.
func (*Adapter) GetVulnerabilitiesList ¶
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) WithClient ¶
WithClient sets Harbor client.
func (*Adapter) WithClientConfig ¶
func (a *Adapter) WithClientConfig(clientConfig harborclient.ClientSetConfig) *Adapter
WithClientConfig sets the client config of this harbor instance
Click to show internal directories.
Click to hide internal directories.