Documentation
¶
Index ¶
- func DisplayRepositories(io *iostreams.IOStreams, repositories []*gitlab.RegistryRepository, ...) string
- func DisplayRepository(io *iostreams.IOStreams, repository *gitlab.RegistryRepository) string
- func DisplayTag(io *iostreams.IOStreams, tag *gitlab.RegistryRepositoryTag) string
- func DisplayTags(tags []*gitlab.RegistryRepositoryTag) string
- func DisplayTagsWithDetails(io *iostreams.IOStreams, tags []*gitlab.RegistryRepositoryTag) string
- func ParseID(value string, name string) (int64, error)
- func ProjectScopedRepositoryError(action string, repositoryID int64, repoName string) string
- func ProjectScopedTagError(action string, tagName string, repositoryID int64, repoName string) string
- type RepositoryJSON
- type TagJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayRepositories ¶
func DisplayRepository ¶
func DisplayRepository(io *iostreams.IOStreams, repository *gitlab.RegistryRepository) string
func DisplayTag ¶
func DisplayTag(io *iostreams.IOStreams, tag *gitlab.RegistryRepositoryTag) string
func DisplayTags ¶
func DisplayTags(tags []*gitlab.RegistryRepositoryTag) string
func DisplayTagsWithDetails ¶
func DisplayTagsWithDetails(io *iostreams.IOStreams, tags []*gitlab.RegistryRepositoryTag) 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
Click to show internal directories.
Click to hide internal directories.