utils

package
v0.0.0-...-7f2378c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package utils implements common OCI utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConnectionForRegistry

func CheckConnectionForRegistry(ctx context.Context, client remote.Client, plainHTTP bool, reg string) error

CheckConnectionForRegistry validates the connection to an oci registry.

func Client

func Client(enableClientTokenCache bool) (remote.Client, error)

Client returns a new auth.Client. It authenticates the client if credentials are found in the system.

func Puller

func Puller(plainHTTP bool, printer *output.Printer) (*ocipuller.Puller, error)

Puller returns a new ocipuller.Puller ready to be used for pulling from oci registries.

func Pusher

func Pusher(plainHTTP bool, printer *output.Printer) (*ocipusher.Pusher, error)

Pusher returns an ocipusher.Pusher ready to be used for pushing to oci registries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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