pusher

package
v0.0.0-...-55e9da2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextDialer

type ContextDialer interface {
	DialContext(ctx context.Context, network string, addr string) (net.Conn, error)
	Close() error
}

type Credentials

type Credentials struct {
	Username string
	Password string
}

func EmptyCredentialsProvider

func EmptyCredentialsProvider(ctx context.Context, registry string) (Credentials, error)

type CredentialsProvider

type CredentialsProvider func(ctx context.Context, image string) (Credentials, error)

type Opt

type Opt func(*Pusher)

func WithCredentialsProvider

func WithCredentialsProvider(cp CredentialsProvider) Opt

func WithTransport

func WithTransport(transport http.RoundTripper) Opt

type Option

type Option func(*options)

func WithInsecureSkipVerify

func WithInsecureSkipVerify(insecureSkipVerify bool) Option

type Pusher

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

func NewPusher

func NewPusher(opts ...Opt) *Pusher

func (*Pusher) Push

func (p *Pusher) Push(ctx context.Context, dc *dubbo.DubboConfig) (digest string, err error)

type PusherDockerClient

type PusherDockerClient interface {
	daemon.Client
	ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)
	Close() error
}

type PusherDockerClientFactory

type PusherDockerClientFactory func() (PusherDockerClient, error)

type RoundTripCloser

type RoundTripCloser interface {
	http.RoundTripper
	io.Closer
}

func NewRoundTripper

func NewRoundTripper(opts ...Option) RoundTripCloser

Jump to

Keyboard shortcuts

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