config

package
v5.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// PageSize used for the client operations, a maximum of 100 is enforced by the Goharbor API.
	PageSize int64
	// Page to be used for client operations.
	Page int64
	// The timeout for client operations.
	Timeout time.Duration
	// Sort string used on 'list' client operations.
	Sort string
	// Query string used for client operations.
	Query string
}

Options defines optional parameters for configuring an API client.

func Defaults added in v5.0.3

func Defaults() *Options

func (*Options) WithPage added in v5.2.0

func (o *Options) WithPage(page int64) *Options

func (*Options) WithPageSize added in v5.2.0

func (o *Options) WithPageSize(pageSize int64) *Options

func (*Options) WithQuery added in v5.2.0

func (o *Options) WithQuery(query string) *Options

func (*Options) WithSort added in v5.2.0

func (o *Options) WithSort(sort string) *Options

func (*Options) WithTimeout added in v5.2.0

func (o *Options) WithTimeout(timeout time.Duration) *Options

Jump to

Keyboard shortcuts

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