Documentation ¶
Index ¶
- func CheckIfIncludeTag(repository string) bool
- type RepoURL
- func (r *RepoURL) GetNamespace() string
- func (r *RepoURL) GetRegistry() string
- func (r *RepoURL) GetRepo() string
- func (r *RepoURL) GetRepoWithNamespace() string
- func (r *RepoURL) GetRepoWithTag() string
- func (r *RepoURL) GetTag() string
- func (r *RepoURL) GetURL() string
- func (r *RepoURL) GetURLWithoutTag() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfIncludeTag ¶
CheckIfIncludeTag checks if a repository string includes tag
Types ¶
type RepoURL ¶ added in v1.0.3
type RepoURL struct {
// contains filtered or unexported fields
}
The RepoURL will divide a images url to <registry>/<namespace>/<repo>:<tag>
func NewRepoURL ¶ added in v1.0.3
NewRepoURL creates a RepoURL
func (*RepoURL) GetNamespace ¶ added in v1.0.3
GetNamespace returns the namespace in a url
func (*RepoURL) GetRegistry ¶ added in v1.0.3
GetRegistry returns the registry in a url
func (*RepoURL) GetRepoWithNamespace ¶ added in v1.0.3
GetRepoWithNamespace returns namespace/repository in a url
func (*RepoURL) GetRepoWithTag ¶ added in v1.0.3
GetRepoWithTag returns repository:tag in a url
func (*RepoURL) GetURLWithoutTag ¶ added in v1.0.3
GetURLWithoutTag returns registry/namespace/repository in a url
Click to show internal directories.
Click to hide internal directories.