Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoLoaderFound ¶
IsNoLoaderFound indicates if the error is of type NoLoaderFoundError.
Types ¶
type AuthLoader ¶
AuthLoader is function that must be implemented by every cloud-specific registry authorization provider.
type NoLoaderFoundError ¶
type NoLoaderFoundError struct {
URL string
}
NoLoaderFoundError indicates the url multiplexer was unable to match the url to given auth loader.
func (NoLoaderFoundError) Error ¶
func (e NoLoaderFoundError) Error() string
Error returns a descriptive error message.
type URLMux ¶
type URLMux struct {
// contains filtered or unexported fields
}
URLMux provides a means of multiplexing cloud registry authorization provides based on a URL.
func (*URLMux) FromString ¶
func (m *URLMux) FromString(url string) (AuthLoader, error)
FromString retrieves and authorization loader for a given url. An error is returned if no matching loader is found.
func (*URLMux) RegisterLoader ¶
func (m *URLMux) RegisterLoader(re *regexp.Regexp, loader AuthLoader)
RegisterLoader will create a new url regex -> authorization loader scheme.
Click to show internal directories.
Click to hide internal directories.