{"modulePath":"github.com/deckhouse/module-sdk","version":"v0.14.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package objectpatch\n\n## Functions\n\n```go\nfunc SnapshotIter[T any](snaps []pkg.Snapshot) iter.Seq2[T, error]\n```\n\n```go\nfunc UnmarshalToStruct[T any](s pkg.Snapshots, key string) ([]T, error)\n```\n\n## Types\n\n```go\ntype Option func(optionsApplier pkg.RegistryOptionApplier)\n```\n\n```go\nfunc WithAuth(dockerCfg string) Option\n```\nWithAuth use docker config base64 as authConfig if dockerCfg is empty - will use client without auth\n\n```go\nfunc WithCA(ca string) Option\n```\nWithCA use custom CA certificate\n\n```go\nfunc WithInsecureSchema(insecure bool) Option\n```\nWithInsecureSchema use http schema instead of https\n\n```go\nfunc WithTimeout(t time.Duration) Option\n```\nWithTimeout limit and request to a registry with a timeout default timeout is 30 seconds\n\n```go\nfunc WithUserAgent(ua string) Option\n```\nWithUserAgent adds ua string to the User-Agent header\n\n```go\nfunc (opt Option) Apply(o pkg.RegistryOptionApplier)\n```\n\n```go\ntype PatchOption func(o pkg.PatchCollectorOptionApplier)\n```\nPatchOption is a functional option for configuring patch operations.\n\n```go\nfunc WithIgnoreHookError(ignore bool) PatchOption\n```\nWithIgnoreHookError allows hook execution to continue even if this patch fails.\n\n```go\nfunc WithIgnoreMissingObject(ignore bool) PatchOption\n```\nWithIgnoreMissingObject prevents errors when the target object doesn't exist.\n\n```go\nfunc WithSubresource(subresource string) PatchOption\n```\nWithSubresource targets a specific subresource (e.g., \"status\", \"scale\").\n\n```go\nfunc (opt PatchOption) Apply(o pkg.PatchCollectorOptionApplier)\n```\nApply implements pkg.PatchCollectorOption interface.\n\n","path":"github.com/deckhouse/module-sdk/pkg/object-patch","name":"objectpatch","synopsis":"","isRedistributable":true}
