scanall

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateScanAllSchedule(ctx context.Context, schedule *model.Schedule) error
	GetScanAllSchedule(ctx context.Context) (*model.Schedule, error)
	UpdateScanAllSchedule(ctx context.Context, schedule *model.Schedule) error
}

type RESTClient

type RESTClient struct {
	// Options contains optional configuration when making API calls.
	Options *config.Options

	// The new client of the harbor v2 API
	V2Client *v2client.Harbor

	// AuthInfo contains the auth information that is provided on API calls.
	AuthInfo runtime.ClientAuthInfoWriter
}

RESTClient is a subclient for handling project related actions.

func NewClient

func NewClient(v2Client *v2client.Harbor, opts *config.Options, authInfo runtime.ClientAuthInfoWriter) *RESTClient

func (*RESTClient) CreateScanAllSchedule

func (c *RESTClient) CreateScanAllSchedule(ctx context.Context, schedule *model.Schedule) error

CreateScanAllSchedule creates a new scan all schedule.

func (*RESTClient) GetScanAllSchedule

func (c *RESTClient) GetScanAllSchedule(ctx context.Context) (*model.Schedule, error)

GetScanAllSchedule returns the scan all schedule.

func (*RESTClient) UpdateScanAllSchedule

func (c *RESTClient) UpdateScanAllSchedule(ctx context.Context, schedule *model.Schedule) error

CreateScanAllSchedule creates a new scan all schedule.

Jump to

Keyboard shortcuts

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