ls

package
v0.0.0-...-0bc8de7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Tags []string `json:"tags"`
}

type Docker

type Docker struct {
	Tags []string `json:"tags"`
}

type Metadata

type Metadata struct {
	PackageType string     `json:"package_type"`
	Container   *Container `json:"container,omitempty"`
	Docker      *Docker    `json:"docker,omitempty"`
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithTaggedOnly

func WithTaggedOnly(taggedOnly bool) Option

func WithbaseURL

func WithbaseURL(url string) Option

type Repository

type Repository struct {
	Type     string `json:"type"`
	Registry string `json:"registry"`
	Owner    string `json:"owner"`
	Package  string `json:"name"`
}

type Response

type Response struct {
	ID        int     `json:"id"`
	Name      string  `json:"name"`
	Digest    string  `json:"digest"`
	CreatedAt string  `json:"created_at"`
	URL       string  `json:"url,omitempty"`
	HTMLURL   *string `json:"html_url,omitempty"`
}

func List

func List(repositories []Repository, token string, opts ...Option) ([]Response, error)

type Version

type Version struct {
	ID             int       `json:"id"`
	Name           string    `json:"name"`
	URL            string    `json:"url"`
	PackageHTMLURL string    `json:"package_html_url"`
	HTMLURL        *string   `json:"html_url,omitempty"`
	License        *string   `json:"license,omitempty"`
	Description    *string   `json:"description,omitempty"`
	CreatedAt      string    `json:"created_at"`
	UpdatedAt      string    `json:"updated_at"`
	DeletedAt      *string   `json:"deleted_at,omitempty"`
	Metadata       *Metadata `json:"metadata,omitempty"`
}