tools

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfIncludeTag

func CheckIfIncludeTag(repository string) bool

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

func NewRepoURL(url string) (*RepoURL, error)

NewRepoURL creates a RepoURL

func (*RepoURL) GetNamespace added in v1.0.3

func (r *RepoURL) GetNamespace() string

GetNamespace returns the namespace in a url

func (*RepoURL) GetRegistry added in v1.0.3

func (r *RepoURL) GetRegistry() string

GetRegistry returns the registry in a url

func (*RepoURL) GetRepo added in v1.0.3

func (r *RepoURL) GetRepo() string

GetRepo returns the repository in a url

func (*RepoURL) GetRepoWithNamespace added in v1.0.3

func (r *RepoURL) GetRepoWithNamespace() string

GetRepoWithNamespace returns namespace/repository in a url

func (*RepoURL) GetRepoWithTag added in v1.0.3

func (r *RepoURL) GetRepoWithTag() string

GetRepoWithTag returns repository:tag in a url

func (*RepoURL) GetTag added in v1.0.3

func (r *RepoURL) GetTag() string

GetTag returns the tag in a url

func (*RepoURL) GetURL added in v1.0.3

func (r *RepoURL) GetURL() string

GetURL returns the whole url

func (*RepoURL) GetURLWithoutTag added in v1.0.3

func (r *RepoURL) GetURLWithoutTag() string

GetURLWithoutTag returns registry/namespace/repository in a url

Jump to

Keyboard shortcuts

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