gitlab

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a client to interact with GitLab

func NewClient

func NewClient(registry *model.Registry) (*Client, error)

NewClient creates a new GitLab client.

func (*Client) GetAndIteratePagination

func (c *Client) GetAndIteratePagination(endpoint string, v interface{}) error

GetAndIteratePagination iterates the pagination header and returns all resources The parameter "v" must be a pointer to a slice

type Project

type Project struct {
	ID              int64  `json:"id"`
	Name            string `json:"name"`
	FullPath        string `json:"path_with_namespace"`
	Visibility      string `json:"visibility"`
	RegistryEnabled bool   `json:"container_registry_enabled"`
}

Project describes a project in Gitlab

type Repository

type Repository struct {
	ID       int64  `json:"id"`
	Name     string `json:"name"`
	Path     string `json:"path"`
	Location string `json:"location"`
}

Repository describes a repository in Gitlab

type Tag

type Tag struct {
	Name     string `json:"name"`
	Path     string `json:"path"`
	Location string `json:"location"`
}

Tag describes a tag in Gitlab

type TokenResp

type TokenResp struct {
	Token string `json:"token"`
}

TokenResp is response of login.

Jump to

Keyboard shortcuts

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