ocitar

package
v0.0.0-...-ccb11bd Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRoundTripperFunc

func WithRoundTripperFunc(fn func(req *http.Request, next http.RoundTripper) (*http.Response, error)) func(next http.RoundTripper) http.RoundTripper

Types

type PackExecutable

type PackExecutable struct {
	task.Task

	Dest string `json:"dest"`

	// [Platform]: _
	Files map[string]file.File `json:"files"`

	// Annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// OutFile of OciTar
	OutFile file.File `json:"outFile"`

	// File of tar created
	File file.File `json:"-" output:"file"`
}

func (*PackExecutable) Do

func (t *PackExecutable) Do(ctx context.Context) error

type Pull

type Pull struct {
	task.Task

	// image from
	Source string `json:"source"`

	// Platforms of oci tar, if empty it will based on KubePkg
	Platforms []string `json:"platforms,omitempty"`

	// Annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// Rename for image repo name
	// go template rule
	// `{{ .registry }}/{{ .namespace }}/{{ .name }}`
	Rename Rename `json:"rename,omitempty"`

	// OutFile of OciTar
	OutFile file.File `json:"outFile"`

	// File of tar created
	File file.File `json:"-" output:"file"`
}

func (*Pull) Do

func (t *Pull) Do(ctx context.Context) error

type Push

type Push struct {
	task.Task

	// SrcFile of oci tar
	SrcFile file.File `json:"srcFile"`

	// RemoteURL of container registry
	RemoteURL string `json:"remoteURL"`

	// Rename for image repo name
	// go template rule
	// `{{ .registry }}/{{ .namespace }}/{{ .name }}`
	Rename Rename `json:"rename,omitempty"`
}

func (*Push) Do

func (t *Push) Do(ctx context.Context) error

type Rename

type Rename struct {
	kubepkg.Renamer
}

func (*Rename) CueType

func (r *Rename) CueType() []byte

func (*Rename) UnmarshalText

func (r *Rename) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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