gitlab

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	ID            string `json:"id"`
	Path          string `json:"path"`
	Name          string `json:"name"`
	Extension     string `json:"extension"`
	Size          int    `json:"size"`
	MimeType      string `json:"mime_type"`
	Binary        bool   `json:"binary"`
	RawPath       string `json:"raw_path"`
	BlamePath     string `json:"blame_path"`
	CommitsPath   string `json:"commits_path"`
	TreePath      string `json:"tree_path"`
	Permalink     string `json:"permalink"`
	LastCommitSHA string `json:"last_commit_sha"`
	HTML          string `json:"html"`
	Raw           []byte `json:"-"`
}

type Client

type Client struct {
	Client *httputil.Client
}

func (*Client) AuthorizeOCIRequest

func (c *Client) AuthorizeOCIRequest(ctx context.Context, image oci.Reference, req *http.Request) error

func (*Client) GetBlob

func (c *Client) GetBlob(ctx context.Context, href string, includeRaw bool) (*Blob, error)

func (*Client) GetProjectContainerRepositories

func (c *Client) GetProjectContainerRepositories(ctx context.Context, fullPath string) ([]ContainerRepository, error)

func (*Client) GetProjectContainerRepositoryTags

func (c *Client) GetProjectContainerRepositoryTags(ctx context.Context, id string) ([]ContainerRepositoryTag, error)

func (*Client) GetRegistryToken

func (c *Client) GetRegistryToken(ctx context.Context, image oci.Reference) (string, error)

func (*Client) GetRepositoryDescription

func (c *Client) GetRepositoryDescription(ctx context.Context, fullPath string) (string, error)

func (*Client) GetRepositoryREADMEBlob

func (c *Client) GetRepositoryREADMEBlob(ctx context.Context, fullPath string) (*Blob, error)

type ContainerRepository

type ContainerRepository struct {
	ID       string `json:"id"`
	Location string `json:"location"`
}

type ContainerRepositoryTag

type ContainerRepositoryTag struct {
	Digest      string    `json:"digest"`
	Location    string    `json:"location"`
	Name        string    `json:"name"`
	CreatedAt   time.Time `json:"createdAt"`
	PublishedAt time.Time `json:"publishedAt"`
}

Jump to

Keyboard shortcuts

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