imagetools

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	GetAuthConfig(registryHostname string) (AuthConfig, error)
}

type AuthConfig

type AuthConfig struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Auth     string `json:"auth,omitempty"`

	// Email is an optional value associated with the username.
	// This field is deprecated and will be removed in a later
	// version of docker.
	Email string `json:"email,omitempty"`

	ServerAddress string `json:"serveraddress,omitempty"`

	// IdentityToken is used to authenticate the user and get
	// an access token for the registry.
	IdentityToken string `json:"identitytoken,omitempty"`

	// RegistryToken is a bearer token to be sent to a registry
	RegistryToken string `json:"registrytoken,omitempty"`
}

TODO - temporary hack to try to get things to compile... this should be converted to something applicable for kube private image handling...

type Opt

type Opt struct {
	Auth Auth
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(opt Opt) *Resolver

func (*Resolver) Combine

func (r *Resolver) Combine(ctx context.Context, in string, descs []ocispec.Descriptor) ([]byte, ocispec.Descriptor, error)

func (*Resolver) Get

func (r *Resolver) Get(ctx context.Context, in string) ([]byte, ocispec.Descriptor, error)

func (*Resolver) GetDescriptor

func (r *Resolver) GetDescriptor(ctx context.Context, in string, desc ocispec.Descriptor) ([]byte, error)

func (*Resolver) Push

func (r *Resolver) Push(ctx context.Context, ref reference.Named, desc ocispec.Descriptor, dt []byte) error

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, in string) (string, ocispec.Descriptor, error)

Jump to

Keyboard shortcuts

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