giteautil

package
v0.0.0-...-d956a41 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ClientOptions) (*gitea.Client, error)

func NextPage

func NextPage(linkHdr string) int

Types

type ClientOptions

type ClientOptions struct {
	URL string `cfg:"url" validate:"required"`
	// Basic Auth
	Username string `cfg:"username"`
	Password string `cfg:"password" validate:"required_with=Username"`
	// Token Auth
	Token string `cfg:"token" validate:"required_without=Username"`
}

Jump to

Keyboard shortcuts

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