Documentation
¶
Index ¶
- func GetLink(linkHeader string) string
- func IsInvalidConfig(err error) bool
- func RetagImage(repo, tag, srcRegistry, dstRegistry string) error
- type Config
- type DecoratedRegistry
- func (r *DecoratedRegistry) ListRepositories(ctx context.Context) ([]string, error)
- func (r *DecoratedRegistry) ListTags(ctx context.Context, repository string) ([]string, error)
- func (r *DecoratedRegistry) Login(ctx context.Context, user, password string) error
- func (r *DecoratedRegistry) Logout(ctx context.Context) error
- func (r DecoratedRegistry) Name() string
- func (r *DecoratedRegistry) Pull(ctx context.Context, repo, tag string) error
- func (r *DecoratedRegistry) Push(ctx context.Context, repo, tag string) error
- func (r *DecoratedRegistry) RemoveImage(ctx context.Context, repo, tag string) error
- type DecoratedRegistryConfig
- type DecoratedRegistryConfigRateLimiter
- type Interface
- type Registry
- func (r *Registry) ListRepositories(ctx context.Context) ([]string, error)
- func (r *Registry) ListTags(ctx context.Context, repository string) ([]string, error)
- func (r *Registry) Login(ctx context.Context, user, password string) error
- func (r *Registry) Logout(ctx context.Context) error
- func (r Registry) Name() string
- func (r *Registry) Pull(ctx context.Context, repo, tag string) error
- func (r *Registry) Push(ctx context.Context, repo, tag string) error
- func (r *Registry) RemoveImage(ctx context.Context, repo, tag string) error
- type RegistryClient
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶ added in v0.4.0
IsInvalidConfig asserts invalidConfigError.
func RetagImage ¶
Types ¶
type Config ¶
type Config struct {
Name string
HttpClient http.Client
RegistryClient RegistryClient
}
type DecoratedRegistry ¶ added in v0.4.0
type DecoratedRegistry struct {
// contains filtered or unexported fields
}
func NewDecoratedRegistry ¶ added in v0.4.0
func NewDecoratedRegistry(config DecoratedRegistryConfig) (*DecoratedRegistry, error)
func (*DecoratedRegistry) ListRepositories ¶ added in v0.4.0
func (r *DecoratedRegistry) ListRepositories(ctx context.Context) ([]string, error)
func (*DecoratedRegistry) Login ¶ added in v0.4.0
func (r *DecoratedRegistry) Login(ctx context.Context, user, password string) error
func (*DecoratedRegistry) Logout ¶ added in v0.4.0
func (r *DecoratedRegistry) Logout(ctx context.Context) error
func (DecoratedRegistry) Name ¶ added in v0.5.0
func (r DecoratedRegistry) Name() string
func (*DecoratedRegistry) Pull ¶ added in v0.4.0
func (r *DecoratedRegistry) Pull(ctx context.Context, repo, tag string) error
func (*DecoratedRegistry) Push ¶ added in v0.4.0
func (r *DecoratedRegistry) Push(ctx context.Context, repo, tag string) error
func (*DecoratedRegistry) RemoveImage ¶ added in v0.4.0
func (r *DecoratedRegistry) RemoveImage(ctx context.Context, repo, tag string) error
type DecoratedRegistryConfig ¶ added in v0.4.0
type DecoratedRegistryConfig struct {
RateLimiter DecoratedRegistryConfigRateLimiter
Underlying Interface
}
type DecoratedRegistryConfigRateLimiter ¶ added in v0.4.0
type Interface ¶ added in v0.4.0
type Interface interface {
Login(ctx context.Context, user, password string) error
Logout(ctx context.Context) error
ListRepositories(ctx context.Context) ([]string, error)
ListTags(ctx context.Context, repository string) ([]string, error)
Name() string
Pull(ctx context.Context, repo, tag string) error
Push(ctx context.Context, repo, tag string) error
RemoveImage(ctx context.Context, repo, tag string) error
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) ListRepositories ¶ added in v0.3.0
type RegistryClient ¶ added in v0.3.0
type Repository ¶
Click to show internal directories.
Click to hide internal directories.