objectpatch

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnapshotIter

func SnapshotIter[T any](snaps []pkg.Snapshot) iter.Seq2[T, error]

func UnmarshalToStruct

func UnmarshalToStruct[T any](s pkg.Snapshots, key string) ([]T, error)

Types

type Option

type Option func(optionsApplier pkg.RegistryOptionApplier)

func WithAuth

func WithAuth(dockerCfg string) Option

WithAuth use docker config base64 as authConfig if dockerCfg is empty - will use client without auth

func WithCA

func WithCA(ca string) Option

WithCA use custom CA certificate

func WithInsecureSchema

func WithInsecureSchema(insecure bool) Option

WithInsecureSchema use http schema instead of https

func WithTimeout

func WithTimeout(t time.Duration) Option

WithTimeout limit and request to a registry with a timeout default timeout is 30 seconds

func WithUserAgent

func WithUserAgent(ua string) Option

WithUserAgent adds ua string to the User-Agent header

func (Option) Apply

func (opt Option) Apply(o pkg.RegistryOptionApplier)

type PatchOption

type PatchOption func(o pkg.PatchCollectorOptionApplier)

func WithIgnoreHookError

func WithIgnoreHookError(ignore bool) PatchOption

func WithIgnoreMissingObject

func WithIgnoreMissingObject(ignore bool) PatchOption

func WithSubresource

func WithSubresource(subresource string) PatchOption

func (PatchOption) Apply

Jump to

Keyboard shortcuts

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