Documentation
¶
Index ¶
- Constants
- func CheckIfIncludeTag(repository string) bool
- func GCPTokenFromCreds(creds string) (string, time.Time, error)
- func IsGCRPermanentServiceAccountToken(registry string, username string) bool
- type CTXKey
- type RepoURL
- func (r *RepoURL) GetNamespace() string
- func (r *RepoURL) GetOriginURL() 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 ¶
View Source
const Oauth2User = "_oauth2_"
Variables ¶
This section is empty.
Functions ¶
func CheckIfIncludeTag ¶
CheckIfIncludeTag checks if a repository string includes tag
func GCPTokenFromCreds ¶
GCPTokenFromCreds creates oauth2 token from permanent service account token
func IsGCRPermanentServiceAccountToken ¶
IsGCRPermanentServiceAccountToken returns true if user is a Google permanent service account token
Types ¶
type RepoURL ¶
type RepoURL struct {
// contains filtered or unexported fields
}
The RepoURL will divide a images url to <registry>/<namespace>/<repo>:<tag>
func (*RepoURL) GetNamespace ¶
GetNamespace returns the namespace in a url
func (*RepoURL) GetOriginURL ¶
GetOriginURL returns the whole url
func (*RepoURL) GetRegistry ¶
GetRegistry returns the registry in a url
func (*RepoURL) GetRepoWithNamespace ¶
GetRepoWithNamespace returns namespace/repository in a url
func (*RepoURL) GetRepoWithTag ¶
GetRepoWithTag returns repository:tag in a url
func (*RepoURL) GetURLWithoutTag ¶
GetURLWithoutTag returns registry/namespace/repository in a url
Click to show internal directories.
Click to hide internal directories.