registryutils

package
v1.103.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayRepositories

func DisplayRepositories(io *iostreams.IOStreams, repositories []*gitlab.RegistryRepository, showTagsCount bool) string

func DisplayRepository

func DisplayRepository(io *iostreams.IOStreams, repository *gitlab.RegistryRepository) string

func DisplayTags

func DisplayTags(tags []*gitlab.RegistryRepositoryTag) string

func DisplayTagsWithDetails

func DisplayTagsWithDetails(io *iostreams.IOStreams, tags []*gitlab.RegistryRepositoryTag) string

func ParseID

func ParseID(value string, name string) (int64, error)

func ProjectScopedRepositoryError

func ProjectScopedRepositoryError(action string, repositoryID int64, repoName string) string

func ProjectScopedTagError

func ProjectScopedTagError(action string, tagName string, repositoryID int64, repoName string) string

Types

type RepositoryJSON

type RepositoryJSON struct {
	ID                     int64      `json:"id"`
	Name                   string     `json:"name"`
	Path                   string     `json:"path"`
	ProjectID              int64      `json:"project_id"`
	Location               string     `json:"location"`
	CreatedAt              *time.Time `json:"created_at"`
	CleanupPolicyStartedAt *time.Time `json:"cleanup_policy_started_at"`
	Status                 *string    `json:"status"`
	TagsCount              *int64     `json:"tags_count,omitempty"`
	Tags                   []TagJSON  `json:"tags,omitempty"`
}

func NewRepositoryJSON

func NewRepositoryJSON(repository *gitlab.RegistryRepository, includeTagDetails bool, showTagsCount bool) RepositoryJSON

func NewRepositoryJSONList

func NewRepositoryJSONList(repositories []*gitlab.RegistryRepository, includeTagDetails bool, showTagsCount bool) []RepositoryJSON

type TagJSON

type TagJSON struct {
	Name          string     `json:"name"`
	Path          string     `json:"path"`
	Location      string     `json:"location"`
	Revision      string     `json:"revision,omitempty"`
	ShortRevision string     `json:"short_revision,omitempty"`
	Digest        string     `json:"digest,omitempty"`
	CreatedAt     *time.Time `json:"created_at,omitempty"`
	TotalSize     *int64     `json:"total_size,omitempty"`
}

func NewTagJSON

func NewTagJSON(tag *gitlab.RegistryRepositoryTag, includeDetails bool) TagJSON

func NewTagJSONList

func NewTagJSONList(tags []*gitlab.RegistryRepositoryTag, includeDetails bool) []TagJSON

Jump to

Keyboard shortcuts

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