client

package
v1.0.25 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient added in v1.0.6

func NewHttpClient(addresses map[string]string, cache *config.CacheOptions) (*http.Client, error)

Types

type Client

type Client struct {
	Hosts Hosts
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

func (*Client) WithCache

func (c *Client) WithCache() gitlab.RequestOptionFunc

func (*Client) WithNoCache

func (c *Client) WithNoCache() gitlab.RequestOptionFunc

type FakeLimiter

type FakeLimiter struct{}

Used to avoid unnecessary noncached requests

func (*FakeLimiter) Wait

type Host

type Host struct {
	Team, Project, Name, URL string
	Client                   *gitlab.Client
}

func (*Host) CompareTo

func (h *Host) CompareTo(c linq.Comparable) int

func (Host) FullName

func (h Host) FullName() string

func (Host) ProjectName added in v1.0.8

func (h Host) ProjectName() string

type Hosts

type Hosts []*Host

func (Hosts) Len

func (h Hosts) Len() int

func (Hosts) Less

func (h Hosts) Less(i, j int) bool

func (Hosts) Projects

func (a Hosts) Projects(all bool) []string

func (Hosts) Swap

func (h Hosts) Swap(i, j int)

Jump to

Keyboard shortcuts

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