options

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClientOptions

func SetClientOptions(client *scm.Client, opts ...ClientOption)

SetClientOptions sets the client options.

Types

type ClientOption

type ClientOption func(*http.Client)

func WithInsecureSkipVerify

func WithInsecureSkipVerify() ClientOption

WithInsecureSkipVerify disables SSL certificate verification.

func WithTimeout

func WithTimeout(timeout time.Duration) ClientOption

WithTimeout sets the request timeout.

func WithToken

func WithToken(token string) ClientOption

WithToken sets the OAuth token.

func WithUserAgent

func WithUserAgent(userAgent string) ClientOption

WithUserAgent sets the user agent string to use for requests.

Jump to

Keyboard shortcuts

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