Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) DeleteManifest(image string, manifest *image.ImageManifest) error
- func (c *Client) ExistBlob(repository, digest string) (bool, error)
- func (c *Client) GetManifest(image string) (*image.ImageManifest, error)
- func (c *Client) ListRepositories() *image.APIRepositories
- func (c *Client) ListTags(repository string) *image.APIRepository
- func (c *Client) PullBlob(repository, digest string) (string, int64, error)
- func (c *Client) PushBlob(repository, digest, blobPath string, size int64) error
- func (c *Client) PutManifest(image string, manifest *image.ImageManifest) error
- func (c *Client) Synchronize() error
- type Commander
- type Exec
Constants ¶
View Source
const (
RegistryContainerName = "registry"
)
Variables ¶
View Source
var Logger = log.Log.WithName("inter-registry")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Name, Namespace string
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c client.Client, registry types.NamespacedName, scheme *runtime.Scheme, httpClient *cmhttp.HttpClient) *Client
NewClient is api client of internal registry
func (*Client) DeleteManifest ¶
func (c *Client) DeleteManifest(image string, manifest *image.ImageManifest) error
DeleteManifest deletes manifest in the registry
func (*Client) GetManifest ¶
func (c *Client) GetManifest(image string) (*image.ImageManifest, error)
GetManifest gets manifests of image in the registry
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories() *image.APIRepositories
ListRepositories get repository list from registry server
func (*Client) ListTags ¶
func (c *Client) ListTags(repository string) *image.APIRepository
ListTags get tag list of repository from registry server
func (*Client) PutManifest ¶
func (c *Client) PutManifest(image string, manifest *image.ImageManifest) error
PutManifest updates manifest in the registry
func (*Client) Synchronize ¶
Synchronize synchronizes repository list between tmax.io.Repository resource and Registry server
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
func NewCommander ¶
func (*Commander) GarbageCollect ¶
Click to show internal directories.
Click to hide internal directories.