config

package
v5.0.0-...-5bc921f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 1 Imported by: 0

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

func Defaults() *Options

func (*Options) WithPage

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

func (*Options) WithPageSize

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

func (*Options) WithQuery

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

func (*Options) WithSort

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

func (*Options) WithTimeout

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