mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-03 20:13:03 +00:00
7540 lines
390 KiB
Markdown
7540 lines
390 KiB
Markdown
https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime#NewEquivalentResourceRegistryWithIdentity
|
|
|
|
<main class="go-Main" id="main-content">
|
|
<div class="go-Main-banner" role="alert"></div>
|
|
<header class="go-Main-header js-mainHeader">
|
|
|
|
|
|
<nav class="go-Main-headerBreadcrumb go-Breadcrumb" aria-label="Breadcrumb" data-test-id="UnitHeader-breadcrumb">
|
|
<ol>
|
|
|
|
|
|
<li data-test-id="UnitHeader-breadcrumbItem">
|
|
<a href="/" data-gtmc="breadcrumb link">Discover Packages</a>
|
|
</li>
|
|
|
|
<li data-test-id="UnitHeader-breadcrumbItem">
|
|
<a href="/k8s.io/apimachinery" data-gtmc="breadcrumb link">k8s.io/apimachinery</a>
|
|
</li>
|
|
|
|
<li data-test-id="UnitHeader-breadcrumbItem">
|
|
<a href="/k8s.io/apimachinery/pkg" data-gtmc="breadcrumb link">pkg</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime" data-gtmc="breadcrumb link" aria-current="location" data-test-id="UnitHeader-breadcrumbCurrent">
|
|
runtime
|
|
</a>
|
|
|
|
<button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.
|
|
|
|
k8s.io/apimachinery/pkg/runtime" aria-label="Copy Path to Clipboard" data-to-copy="k8s.io/apimachinery/pkg/runtime" data-gtmc="breadcrumbs button">
|
|
<img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="">
|
|
</button>
|
|
|
|
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="go-Main-headerContent">
|
|
|
|
<div class="go-Main-headerTitle js-stickyHeader">
|
|
<a class="go-Main-headerLogo" href="https://go.dev/" aria-hidden="true" tabindex="-1" data-gtmc="header link" aria-label="Link to Go Homepage">
|
|
<img height="78" width="207" src="/static/shared/logo/go-blue.svg" alt="Go">
|
|
</a>
|
|
<h1 class="UnitHeader-titleHeading" data-test-id="UnitHeader-title">runtime</h1>
|
|
|
|
<span class="go-Chip go-Chip--inverted">package</span>
|
|
|
|
|
|
|
|
<button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.
|
|
|
|
k8s.io/apimachinery/pkg/runtime" aria-label="Copy Path to Clipboard" data-to-copy="k8s.io/apimachinery/pkg/runtime" data-gtmc="title button" tabindex="-1">
|
|
<img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="">
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="go-Main-headerDetails">
|
|
|
|
|
|
<span class="go-Main-headerDetailItem" data-test-id="UnitHeader-version">
|
|
<a href="?tab=versions" aria-label="Version: v0.35.1" data-gtmc="header link" aria-describedby="version-description">
|
|
<span class="go-textSubtle" aria-hidden="true">Version: </span>
|
|
v0.35.1
|
|
</a>
|
|
<div class="screen-reader-only" id="version-description" hidden="">
|
|
Opens a new window with list of versions in this module.
|
|
</div>
|
|
|
|
<span class="DetailsHeader-badge--latest" data-test-id="UnitHeader-minorVersionBanner">
|
|
<span class="go-Chip DetailsHeader-span--latest">Latest</span>
|
|
<span class="go-Chip DetailsHeader-span--notAtLatest">
|
|
Latest
|
|
|
|
<details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
|
|
<summary>
|
|
<img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/alert_gm_grey_24dp.svg" alt="Warning">
|
|
</summary>
|
|
<p>This package is not in the latest version of its module.</p>
|
|
</details>
|
|
|
|
</span>
|
|
<a href="/k8s.io/apimachinery/pkg/runtime" aria-label="Go to Latest Version" data-gtmc="header link">
|
|
<span class="go-Chip go-Chip--alert DetailsHeader-span--goToLatest">Go to latest</span>
|
|
</a>
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<span class="go-Main-headerDetailItem" data-test-id="UnitHeader-commitTime">
|
|
Published: Dec 4, 2025
|
|
</span>
|
|
|
|
|
|
<span class="go-Main-headerDetailItem" data-test-id="UnitHeader-licenses">
|
|
License: <a href="/k8s.io/apimachinery/pkg/runtime?tab=licenses" data-test-id="UnitHeader-license" data-gtmc="header link" aria-describedby="license-description">Apache-2.0</a>
|
|
|
|
|
|
</span>
|
|
<div class="screen-reader-only" id="license-description" hidden="">
|
|
Opens a new window with license information.
|
|
</div>
|
|
|
|
|
|
|
|
<span class="go-Main-headerDetailItem" data-test-id="UnitHeader-imports">
|
|
<a href="/k8s.io/apimachinery/pkg/runtime?tab=imports" aria-label="Imports: 36" data-gtmc="header link" aria-describedby="imports-description">
|
|
<span class="go-textSubtle">Imports: </span>36
|
|
</a>
|
|
</span>
|
|
<div class="screen-reader-only" id="imports-description" hidden="">
|
|
Opens a new window with list of imports.
|
|
</div>
|
|
|
|
|
|
<span class="go-Main-headerDetailItem" data-test-id="UnitHeader-importedby">
|
|
<a href="/k8s.io/apimachinery/pkg/runtime?tab=importedby" aria-label="Imported By: 144,729" data-gtmc="header link" aria-describedby="importedby-description">
|
|
<span class="go-textSubtle">Imported by: </span>144,729
|
|
</a>
|
|
</span>
|
|
<div class="screen-reader-only" id="importedby-description" hidden="">
|
|
Opens a new window with list of known importers.
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="UnitHeader-overflowContainer">
|
|
<svg class="UnitHeader-overflowImage" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
|
|
<path d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path>
|
|
</svg>
|
|
<select class="UnitHeader-overflowSelect js-selectNav" tabindex="-1">
|
|
<option value="/">Main</option>
|
|
<option value="/k8s.io/apimachinery/pkg/runtime?tab=versions">
|
|
Versions
|
|
</option>
|
|
<option value="/k8s.io/apimachinery/pkg/runtime?tab=licenses">
|
|
Licenses
|
|
</option>
|
|
|
|
<option value="/k8s.io/apimachinery/pkg/runtime?tab=imports">
|
|
Imports
|
|
</option>
|
|
<option value="/k8s.io/apimachinery/pkg/runtime?tab=importedby">
|
|
Imported By
|
|
</option>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<aside class="go-Main-aside js-mainAside"><div></div>
|
|
|
|
<div class="UnitMeta">
|
|
<h2 class="go-textLabel">Details</h2>
|
|
|
|
<ul class="UnitMeta-details">
|
|
<li>
|
|
<details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
|
|
<summary class="go-textSubtle">
|
|
|
|
<img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">
|
|
|
|
Valid <a href="https://github.com/kubernetes/apimachinery/tree/v0.35.1/go.mod" target="_blank" rel="noopener">go.mod</a> file
|
|
<img class="go-Icon" role="button" tabindex="0" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" aria-label="Toggle go.mod validity tooltip" height="24" width="24">
|
|
</summary>
|
|
<p aria-live="polite" role="tooltip">
|
|
The Go module system was introduced in Go 1.11 and is the official dependency management
|
|
solution for Go.
|
|
</p>
|
|
</details>
|
|
</li>
|
|
<li>
|
|
<details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
|
|
<summary class="go-textSubtle">
|
|
|
|
<img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">
|
|
|
|
Redistributable license
|
|
<img class="go-Icon" role="button" tabindex="0" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" aria-label="Toggle redistributable help tooltip" height="24" width="24">
|
|
</summary>
|
|
<p aria-live="polite" role="tooltip">
|
|
Redistributable licenses place minimal restrictions on how software can be used,
|
|
modified, and redistributed.
|
|
</p>
|
|
</details>
|
|
</li>
|
|
<li>
|
|
<details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
|
|
<summary class="go-textSubtle">
|
|
|
|
<img class="go-Icon go-Icon--accented" tabindex="0" role="button" src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked" aria-label="Valid file, toggle tooltip" height="24" width="24">
|
|
|
|
Tagged version
|
|
<img class="go-Icon" role="button" tabindex="0" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" aria-label="Toggle tagged version tooltip" height="24" width="24">
|
|
</summary>
|
|
<p aria-live="polite" role="tooltip">Modules with tagged versions give importers more predictable builds.</p>
|
|
</details>
|
|
</li>
|
|
<li>
|
|
<details class="go-Tooltip js-tooltip" data-gtmc="tooltip">
|
|
<summary class="go-textSubtle">
|
|
|
|
<img class="go-Icon" tabindex="0" role="button" src="/static/shared/icon/cancel_gm_grey_24dp.svg" alt="unchecked" aria-label="Missing or invalid file, toggle tooltip" height="24" width="24">
|
|
|
|
Stable version
|
|
<img class="go-Icon" role="button" tabindex="0" aria-label="Toggle stable version tooltip" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24">
|
|
</summary>
|
|
<p aria-live="polite" role="tooltip">When a project reaches major version v1 it is considered stable.</p>
|
|
</details>
|
|
</li>
|
|
<li class="UnitMeta-detailsLearn">
|
|
<a href="/about#best-practices" data-gtmc="meta link">Learn more about best practices</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<h2 class="go-textLabel">Repository</h2>
|
|
<div class="UnitMeta-repo">
|
|
|
|
<a href="https://github.com/kubernetes/apimachinery" title="https://github.com/kubernetes/apimachinery" target="_blank" rel="noopener">
|
|
github.com/kubernetes/apimachinery
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<h2 class="go-textLabel" data-test-id="links-heading">Links</h2>
|
|
<ul class="UnitMeta-links">
|
|
|
|
|
|
<li>
|
|
<a href="https://deps.dev/go/k8s.io%2Fapimachinery/v0.35.1" title="View this module on Open Source Insights" target="_blank" rel="noopener" data-test-id="meta-link-depsdev">
|
|
<img class="link-Icon" src="/static/shared/icon/depsdev-logo.svg" alt="Open Source Insights Logo">
|
|
Open Source Insights
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<nav class="go-Main-nav go-Main-nav--sticky js-mainNav" aria-label="Outline"><div></div>
|
|
<div class="go-Main-navDesktop">
|
|
|
|
<div class="UnitOutline-jumpTo">
|
|
<button class="UnitOutline-jumpToInput go-ShortcutKey js-jumpToInput" aria-controls="jump-to-modal" aria-label="Open Jump to Identifier" data-shortcut="f" data-shortcut-alt="find" data-test-id="jump-to-button" data-gtmc="outline button">
|
|
Jump to ...
|
|
</button>
|
|
</div>
|
|
<ul class="go-Tree js-tree" role="tree" aria-label="Outline" style="--js-tree-height: 0px;">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#section-documentation" data-gtmc="outline link" tabindex="0" aria-level="1" aria-owns="_nav_group_Documentation" aria-expanded="true" role="treeitem" aria-selected="true">
|
|
Documentation
|
|
</a>
|
|
|
|
<ul role="group" id="_nav_group_Documentation">
|
|
|
|
<li role="none">
|
|
<a href="#pkg-overview" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">Overview</a>
|
|
</li>
|
|
<li class="DocNav-overview" role="none">
|
|
<a href="#pkg-index" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
|
|
Index
|
|
</a>
|
|
</li>
|
|
<li class="DocNav-constants" role="none">
|
|
<a href="#pkg-constants" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
|
|
Constants
|
|
</a>
|
|
</li>
|
|
<li class="DocNav-variables" role="none">
|
|
<a href="#pkg-variables" data-gtmc="doc outline link" tabindex="-1" aria-level="2" role="treeitem">
|
|
Variables
|
|
</a>
|
|
</li>
|
|
<li class="DocNav-functions" role="none">
|
|
<a href="#pkg-functions" data-gtmc="doc outline link" tabindex="-1" aria-level="2" aria-owns="Documentation_nav_group_Functions" aria-expanded="false" role="treeitem">
|
|
Functions
|
|
</a>
|
|
|
|
<ul role="group" id="Documentation_nav_group_Functions">
|
|
|
|
<li role="none">
|
|
<a href="#AsStrictDecodingError" title="AsStrictDecodingError(err)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
AsStrictDecodingError(err)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#CheckCodec" title="CheckCodec(c, internalType, externalTypes)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
CheckCodec(c, internalType, externalTypes)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_Pointer_bool" title="Convert_Slice_string_To_Pointer_bool(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_Pointer_bool(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_Pointer_int64" title="Convert_Slice_string_To_Pointer_int64(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_Pointer_int64(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_bool" title="Convert_Slice_string_To_bool(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_bool(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_int" title="Convert_Slice_string_To_int(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_int(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_int64" title="Convert_Slice_string_To_int64(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_int64(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_Slice_string_To_string" title="Convert_Slice_string_To_string(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_Slice_string_To_string(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_runtime_Object_To_runtime_RawExtension" title="Convert_runtime_Object_To_runtime_RawExtension(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_runtime_Object_To_runtime_RawExtension(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_runtime_RawExtension_To_runtime_Object" title="Convert_runtime_RawExtension_To_runtime_Object(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_runtime_RawExtension_To_runtime_Object(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_string_To_Pointer_int64" title="Convert_string_To_Pointer_int64(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_string_To_Pointer_int64(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Convert_string_To_int64" title="Convert_string_To_int64(in, out, s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Convert_string_To_int64(in, out, s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#DecodeInto" title="DecodeInto(d, data, into)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
DecodeInto(d, data, into)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#DecodeList" title="DecodeList(objects, decoders)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
DecodeList(objects, decoders)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#DeepCopyJSON" title="DeepCopyJSON(x)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
DeepCopyJSON(x)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#DeepCopyJSONValue" title="DeepCopyJSONValue(x)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
DeepCopyJSONValue(x)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#DefaultMetaV1FieldSelectorConversion" title="DefaultMetaV1FieldSelectorConversion(label, value)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
DefaultMetaV1FieldSelectorConversion(label, value)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Encode" title="Encode(e, obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Encode(e, obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#EncodeList" title="EncodeList(e, objects)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
EncodeList(e, objects)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#EncodeOrDie" title="EncodeOrDie(e, obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
EncodeOrDie(e, obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Field" title="Field(v, fieldName, dest)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
Field(v, fieldName, dest)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#FieldPtr" title="FieldPtr(v, fieldName, dest)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
FieldPtr(v, fieldName, dest)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#IsMissingKind" title="IsMissingKind(err)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
IsMissingKind(err)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#IsMissingVersion" title="IsMissingVersion(err)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
IsMissingVersion(err)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#IsNotRegisteredError" title="IsNotRegisteredError(err)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
IsNotRegisteredError(err)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#IsStrictDecodingError" title="IsStrictDecodingError(err)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
IsStrictDecodingError(err)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#JSONKeyMapper" title="JSONKeyMapper(key, sourceTag, destTag)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
JSONKeyMapper(key, sourceTag, destTag)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewMissingKindErr" title="NewMissingKindErr(data)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewMissingKindErr(data)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewMissingVersionErr" title="NewMissingVersionErr(data)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewMissingVersionErr(data)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewNotRegisteredErrForKind" title="NewNotRegisteredErrForKind(schemeName, gvk)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewNotRegisteredErrForKind(schemeName, gvk)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewNotRegisteredErrForTarget" title="NewNotRegisteredErrForTarget(schemeName, t, target)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewNotRegisteredErrForTarget(schemeName, t, target)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewNotRegisteredErrForType" title="NewNotRegisteredErrForType(schemeName, t)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewNotRegisteredErrForType(schemeName, t)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewNotRegisteredGVKErrForTarget" title="NewNotRegisteredGVKErrForTarget(schemeName, gvk, target)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewNotRegisteredGVKErrForTarget(schemeName, gvk, target)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewStrictDecodingError" title="NewStrictDecodingError(errors)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewStrictDecodingError(errors)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewTestUnstructuredConverterWithValidation" title="NewTestUnstructuredConverterWithValidation(comparison)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
NewTestUnstructuredConverterWithValidation(comparison)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RegisterEmbeddedConversions" title="RegisterEmbeddedConversions(s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
RegisterEmbeddedConversions(s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RegisterStringConversions" title="RegisterStringConversions(s)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
RegisterStringConversions(s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#SetField" title="SetField(src, v, fieldName)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
SetField(src, v, fieldName)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#SetZeroValue" title="SetZeroValue(objPtr)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
SetZeroValue(objPtr)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#VerifySwaggerDocsExist" title="VerifySwaggerDocsExist(kubeTypes, w)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
VerifySwaggerDocsExist(kubeTypes, w)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#WriteSwaggerDocFunc" title="WriteSwaggerDocFunc(kubeTypes, w)" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
WriteSwaggerDocFunc(kubeTypes, w)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
<li class="DocNav-types" role="none">
|
|
<a href="#pkg-types" data-gtmc="doc outline link" tabindex="-1" aria-level="2" aria-owns="Documentation_nav_group_Types" aria-expanded="false" role="treeitem">
|
|
Types
|
|
</a>
|
|
<ul role="group" id="Documentation_nav_group_Types">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Allocator" title="type Allocator" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Allocator" aria-expanded="false" role="treeitem">
|
|
type Allocator
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Allocator">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Allocator.Allocate" title="(a) Allocate(n)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(a) Allocate(n)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Allocator.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ApplyConfiguration" title="type ApplyConfiguration" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ApplyConfiguration
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#CacheableObject" title="type CacheableObject" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type CacheableObject
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ClientNegotiator" title="type ClientNegotiator" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ClientNegotiator" aria-expanded="false" role="treeitem">
|
|
type ClientNegotiator
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_ClientNegotiator">
|
|
|
|
<li role="none">
|
|
<a href="#NewClientNegotiator" title="NewClientNegotiator(serializer, gv)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewClientNegotiator(serializer, gv)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Codec" title="type Codec" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Codec" aria-expanded="false" role="treeitem">
|
|
type Codec
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Codec">
|
|
|
|
<li role="none">
|
|
<a href="#NewCodec" title="NewCodec(e, d)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewCodec(e, d)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Decoder" title="type Decoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type Decoder
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Encoder" title="type Encoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Encoder" aria-expanded="false" role="treeitem">
|
|
type Encoder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Encoder">
|
|
|
|
<li role="none">
|
|
<a href="#NewEncoderWithAllocator" title="NewEncoderWithAllocator(e, a)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewEncoderWithAllocator(e, a)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#UseNondeterministicEncoding" title="UseNondeterministicEncoding(encoder)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
UseNondeterministicEncoding(encoder)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#EncoderWithAllocator" title="type EncoderWithAllocator" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type EncoderWithAllocator
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#EquivalentResourceMapper" title="type EquivalentResourceMapper" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type EquivalentResourceMapper
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#EquivalentResourceRegistry" title="type EquivalentResourceRegistry" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_EquivalentResourceRegistry" aria-expanded="false" role="treeitem">
|
|
type EquivalentResourceRegistry
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_EquivalentResourceRegistry">
|
|
|
|
<li role="none">
|
|
<a href="#NewEquivalentResourceRegistry" title="NewEquivalentResourceRegistry()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewEquivalentResourceRegistry()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewEquivalentResourceRegistryWithIdentity" title="NewEquivalentResourceRegistryWithIdentity(keyFunc)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewEquivalentResourceRegistryWithIdentity(keyFunc)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#FieldLabelConversionFunc" title="type FieldLabelConversionFunc" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type FieldLabelConversionFunc
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Framer" title="type Framer" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type Framer
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#GroupVersioner" title="type GroupVersioner" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_GroupVersioner" aria-expanded="false" role="treeitem">
|
|
type GroupVersioner
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_GroupVersioner">
|
|
|
|
<li role="none">
|
|
<a href="#NewCoercingMultiGroupVersioner" title="NewCoercingMultiGroupVersioner(gv, groupKinds)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewCoercingMultiGroupVersioner(gv, groupKinds)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewMultiGroupVersioner" title="NewMultiGroupVersioner(gv, groupKinds)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewMultiGroupVersioner(gv, groupKinds)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Identifier" title="type Identifier" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type Identifier
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#KubeTypes" title="type KubeTypes" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_KubeTypes" aria-expanded="false" role="treeitem">
|
|
type KubeTypes
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_KubeTypes">
|
|
|
|
<li role="none">
|
|
<a href="#ParseDocumentationFrom" title="ParseDocumentationFrom(src)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
ParseDocumentationFrom(src)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#MemoryAllocator" title="type MemoryAllocator" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type MemoryAllocator
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#MultiObjectTyper" title="type MultiObjectTyper" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_MultiObjectTyper" aria-expanded="false" role="treeitem">
|
|
type MultiObjectTyper
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_MultiObjectTyper">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#MultiObjectTyper.ObjectKinds" title="(m) ObjectKinds(obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) ObjectKinds(obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#MultiObjectTyper.Recognizes" title="(m) Recognizes(gvk)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Recognizes(gvk)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Namer" title="type Namer" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type Namer
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NegotiateError" title="type NegotiateError" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_NegotiateError" aria-expanded="false" role="treeitem">
|
|
type NegotiateError
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_NegotiateError">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NegotiateError.Error" title="(e) Error()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(e) Error()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NegotiateError.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NegotiatedSerializer" title="type NegotiatedSerializer" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_NegotiatedSerializer" aria-expanded="false" role="treeitem">
|
|
type NegotiatedSerializer
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_NegotiatedSerializer">
|
|
|
|
<li role="none">
|
|
<a href="#NewSimpleNegotiatedSerializer" title="NewSimpleNegotiatedSerializer(info)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewSimpleNegotiatedSerializer(info)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NestedObjectDecoder" title="type NestedObjectDecoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type NestedObjectDecoder
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NestedObjectEncoder" title="type NestedObjectEncoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type NestedObjectEncoder
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NondeterministicEncoder" title="type NondeterministicEncoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type NondeterministicEncoder
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NoopDecoder" title="type NoopDecoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_NoopDecoder" aria-expanded="false" role="treeitem">
|
|
type NoopDecoder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_NoopDecoder">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NoopDecoder.Decode" title="(n) Decode(data, gvk, into)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(n) Decode(data, gvk, into)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NoopDecoder.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NoopEncoder" title="type NoopEncoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_NoopEncoder" aria-expanded="false" role="treeitem">
|
|
type NoopEncoder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_NoopEncoder">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#NoopEncoder.Encode" title="(n) Encode(obj, w)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(n) Encode(obj, w)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NoopEncoder.Identifier" title="(n) Identifier()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(n) Identifier()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NoopEncoder.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Object" title="type Object" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Object" aria-expanded="false" role="treeitem">
|
|
type Object
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Object">
|
|
|
|
<li role="none">
|
|
<a href="#Decode" title="Decode(d, data)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
Decode(d, data)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewEncodable" title="NewEncodable(e, obj, versions)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewEncodable(e, obj, versions)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#NewEncodableList" title="NewEncodableList(e, objects, versions)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewEncodableList(e, objects, versions)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#UseOrCreateObject" title="UseOrCreateObject(t, c, gvk, obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
UseOrCreateObject(t, c, gvk, obj)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ObjectConvertor" title="type ObjectConvertor" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ObjectConvertor" aria-expanded="false" role="treeitem">
|
|
type ObjectConvertor
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_ObjectConvertor">
|
|
|
|
<li role="none">
|
|
<a href="#UnsafeObjectConvertor" title="UnsafeObjectConvertor(scheme)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
UnsafeObjectConvertor(scheme)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ObjectCreater" title="type ObjectCreater" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ObjectCreater
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ObjectDefaulter" title="type ObjectDefaulter" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ObjectDefaulter
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ObjectTyper" title="type ObjectTyper" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ObjectTyper
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ObjectVersioner" title="type ObjectVersioner" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ObjectVersioner
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Pair" title="type Pair" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Pair" aria-expanded="false" role="treeitem">
|
|
type Pair
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Pair">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Pair.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ParameterCodec" title="type ParameterCodec" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_ParameterCodec" aria-expanded="false" role="treeitem">
|
|
type ParameterCodec
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_ParameterCodec">
|
|
|
|
<li role="none">
|
|
<a href="#NewParameterCodec" title="NewParameterCodec(scheme)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewParameterCodec(scheme)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ProtobufMarshaller" title="type ProtobufMarshaller" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ProtobufMarshaller
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ProtobufReverseMarshaller" title="type ProtobufReverseMarshaller" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ProtobufReverseMarshaller
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension" title="type RawExtension" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_RawExtension" aria-expanded="false" role="treeitem">
|
|
type RawExtension
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_RawExtension">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.DeepCopy" title="(in) DeepCopy()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) DeepCopy()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.DeepCopyInto" title="(in) DeepCopyInto(out)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) DeepCopyInto(out)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.Marshal" title="(m) Marshal()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Marshal()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.MarshalCBOR" title="(re) MarshalCBOR()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(re) MarshalCBOR()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.MarshalJSON" title="(re) MarshalJSON()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(re) MarshalJSON()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.MarshalTo" title="(m) MarshalTo(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalTo(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.MarshalToSizedBuffer" title="(m) MarshalToSizedBuffer(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalToSizedBuffer(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.Reset" title="(m) Reset()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Reset()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.Size" title="(m) Size()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Size()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.String" title="(this) String()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(this) String()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.Unmarshal" title="(m) Unmarshal(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Unmarshal(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.UnmarshalCBOR" title="(re) UnmarshalCBOR(in)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(re) UnmarshalCBOR(in)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#RawExtension.UnmarshalJSON" title="(re) UnmarshalJSON(in)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(re) UnmarshalJSON(in)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#ResourceVersioner" title="type ResourceVersioner" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type ResourceVersioner
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Scheme" title="type Scheme" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Scheme" aria-expanded="false" role="treeitem">
|
|
type Scheme
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Scheme">
|
|
|
|
<li role="none">
|
|
<a href="#NewScheme" title="NewScheme()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewScheme()
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddConversionFunc" title="(s) AddConversionFunc(a, b, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddConversionFunc(a, b, fn)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddFieldLabelConversionFunc" title="(s) AddFieldLabelConversionFunc(gvk, conversionFunc)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddFieldLabelConversionFunc(gvk, conversionFunc)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddGeneratedConversionFunc" title="(s) AddGeneratedConversionFunc(a, b, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddGeneratedConversionFunc(a, b, fn)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddIgnoredConversionType" title="(s) AddIgnoredConversionType(from, to)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddIgnoredConversionType(from, to)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddKnownTypeWithName" title="(s) AddKnownTypeWithName(gvk, obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddKnownTypeWithName(gvk, obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddKnownTypes" title="(s) AddKnownTypes(gv, types)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddKnownTypes(gv, types)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddTypeDefaultingFunc" title="(s) AddTypeDefaultingFunc(srcType, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddTypeDefaultingFunc(srcType, fn)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddUnversionedTypes" title="(s) AddUnversionedTypes(version, types)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddUnversionedTypes(version, types)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AddValidationFunc" title="(s) AddValidationFunc(srcType, fn)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AddValidationFunc(srcType, fn)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.AllKnownTypes" title="(s) AllKnownTypes()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) AllKnownTypes()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Convert" title="(s) Convert(in, out, context)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Convert(in, out, context)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.ConvertFieldLabel" title="(s) ConvertFieldLabel(gvk, label, value)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) ConvertFieldLabel(gvk, label, value)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.ConvertToVersion" title="(s) ConvertToVersion(in, target)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) ConvertToVersion(in, target)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Converter" title="(s) Converter()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Converter()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Default" title="(s) Default(src)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Default(src)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.IsGroupRegistered" title="(s) IsGroupRegistered(group)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) IsGroupRegistered(group)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.IsUnversioned" title="(s) IsUnversioned(obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) IsUnversioned(obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.IsVersionRegistered" title="(s) IsVersionRegistered(version)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) IsVersionRegistered(version)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.KnownTypes" title="(s) KnownTypes(gv)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) KnownTypes(gv)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Name" title="(s) Name()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Name()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.New" title="(s) New(kind)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) New(kind)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.ObjectKinds" title="(s) ObjectKinds(obj)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) ObjectKinds(obj)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.PreferredVersionAllGroups" title="(s) PreferredVersionAllGroups()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) PreferredVersionAllGroups()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.PrioritizedVersionsAllGroups" title="(s) PrioritizedVersionsAllGroups()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) PrioritizedVersionsAllGroups()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.PrioritizedVersionsForGroup" title="(s) PrioritizedVersionsForGroup(group)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) PrioritizedVersionsForGroup(group)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Recognizes" title="(s) Recognizes(gvk)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Recognizes(gvk)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.SetVersionPriority" title="(s) SetVersionPriority(versions)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) SetVersionPriority(versions)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.ToOpenAPIDefinitionName" title="(s) ToOpenAPIDefinitionName(groupVersionKind)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) ToOpenAPIDefinitionName(groupVersionKind)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.UnsafeConvertToVersion" title="(s) UnsafeConvertToVersion(in, target)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) UnsafeConvertToVersion(in, target)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.Validate" title="(s) Validate(ctx, options, object, subresources)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) Validate(ctx, options, object, subresources)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.ValidateUpdate" title="(s) ValidateUpdate(ctx, options, object, oldObject, subresources)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) ValidateUpdate(ctx, options, object, oldObject, subresources)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Scheme.VersionsForGroupKind" title="(s) VersionsForGroupKind(gk)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(s) VersionsForGroupKind(gk)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SchemeBuilder" title="type SchemeBuilder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_SchemeBuilder" aria-expanded="false" role="treeitem">
|
|
type SchemeBuilder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_SchemeBuilder">
|
|
|
|
<li role="none">
|
|
<a href="#NewSchemeBuilder" title="NewSchemeBuilder(funcs)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewSchemeBuilder(funcs)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SchemeBuilder.AddToScheme" title="(sb) AddToScheme(s)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(sb) AddToScheme(s)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#SchemeBuilder.Register" title="(sb) Register(funcs)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(sb) Register(funcs)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Serializer" title="type Serializer" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Serializer" aria-expanded="false" role="treeitem">
|
|
type Serializer
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Serializer">
|
|
|
|
<li role="none">
|
|
<a href="#NewBase64Serializer" title="NewBase64Serializer(e, d)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewBase64Serializer(e, d)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SerializerInfo" title="type SerializerInfo" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_SerializerInfo" aria-expanded="false" role="treeitem">
|
|
type SerializerInfo
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_SerializerInfo">
|
|
|
|
<li role="none">
|
|
<a href="#SerializerInfoForMediaType" title="SerializerInfoForMediaType(types, mediaType)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
SerializerInfoForMediaType(types, mediaType)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SerializerInfo.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SimpleAllocator" title="type SimpleAllocator" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_SimpleAllocator" aria-expanded="false" role="treeitem">
|
|
type SimpleAllocator
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_SimpleAllocator">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#SimpleAllocator.Allocate" title="(sa) Allocate(n)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(sa) Allocate(n)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#SimpleAllocator.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Splice" title="type Splice" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Splice" aria-expanded="false" role="treeitem">
|
|
type Splice
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Splice">
|
|
|
|
<li role="none">
|
|
<a href="#NewSpliceBuffer" title="NewSpliceBuffer()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewSpliceBuffer()
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#StorageSerializer" title="type StorageSerializer" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type StorageSerializer
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#StreamSerializerInfo" title="type StreamSerializerInfo" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_StreamSerializerInfo" aria-expanded="false" role="treeitem">
|
|
type StreamSerializerInfo
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_StreamSerializerInfo">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#StreamSerializerInfo.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta" title="type TypeMeta" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_TypeMeta" aria-expanded="false" role="treeitem">
|
|
type TypeMeta
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_TypeMeta">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.GetObjectKind" title="(obj) GetObjectKind()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(obj) GetObjectKind()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.GroupVersionKind" title="(obj) GroupVersionKind()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(obj) GroupVersionKind()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.Marshal" title="(m) Marshal()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Marshal()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.MarshalTo" title="(m) MarshalTo(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalTo(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.MarshalToSizedBuffer" title="(m) MarshalToSizedBuffer(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalToSizedBuffer(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.Reset" title="(m) Reset()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Reset()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.SetGroupVersionKind" title="(obj) SetGroupVersionKind(gvk)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(obj) SetGroupVersionKind(gvk)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.Size" title="(m) Size()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Size()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.String" title="(this) String()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(this) String()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#TypeMeta.Unmarshal" title="(m) Unmarshal(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Unmarshal(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Unknown" title="type Unknown" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_Unknown" aria-expanded="false" role="treeitem">
|
|
type Unknown
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_Unknown">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.DeepCopy" title="(in) DeepCopy()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) DeepCopy()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.DeepCopyInto" title="(in) DeepCopyInto(out)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) DeepCopyInto(out)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.DeepCopyObject" title="(in) DeepCopyObject()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) DeepCopyObject()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.Marshal" title="(m) Marshal()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Marshal()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.MarshalJSON" title="(e) MarshalJSON()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(e) MarshalJSON()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.MarshalTo" title="(m) MarshalTo(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalTo(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.MarshalToSizedBuffer" title="(m) MarshalToSizedBuffer(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalToSizedBuffer(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.MarshalToWriter" title="(m) MarshalToWriter(w, rawSize, writeRaw)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) MarshalToWriter(w, rawSize, writeRaw)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.NestedMarshalTo" title="(m) NestedMarshalTo(data, b, size)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) NestedMarshalTo(data, b, size)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.Reset" title="(m) Reset()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Reset()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.Size" title="(m) Size()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Size()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.String" title="(this) String()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(this) String()
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.Unmarshal" title="(m) Unmarshal(dAtA)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(m) Unmarshal(dAtA)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#Unknown.UnmarshalJSON" title="(e) UnmarshalJSON(in)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(e) UnmarshalJSON(in)
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#Unstructured" title="type Unstructured" data-gtmc="doc outline link" tabindex="-1" aria-level="3" role="treeitem">
|
|
type Unstructured
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#UnstructuredConverter" title="type UnstructuredConverter" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_UnstructuredConverter" aria-expanded="false" role="treeitem">
|
|
type UnstructuredConverter
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_UnstructuredConverter">
|
|
|
|
<li role="none">
|
|
<a href="#NewTestUnstructuredConverter" title="NewTestUnstructuredConverter(comparison)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
NewTestUnstructuredConverter(comparison)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#WithVersionEncoder" title="type WithVersionEncoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_WithVersionEncoder" aria-expanded="false" role="treeitem">
|
|
type WithVersionEncoder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_WithVersionEncoder">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#WithVersionEncoder.Encode" title="(e) Encode(obj, stream)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(e) Encode(obj, stream)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#WithVersionEncoder.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#WithoutVersionDecoder" title="type WithoutVersionDecoder" data-gtmc="doc outline link" tabindex="-1" aria-level="3" aria-owns="Types_nav_group_type_WithoutVersionDecoder" aria-expanded="false" role="treeitem">
|
|
type WithoutVersionDecoder
|
|
</a>
|
|
|
|
<ul role="group" id="Types_nav_group_type_WithoutVersionDecoder">
|
|
|
|
|
|
<li role="none">
|
|
<a href="#WithoutVersionDecoder.Decode" title="(d) Decode(data, defaults, into)" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(d) Decode(data, defaults, into)
|
|
</a>
|
|
</li>
|
|
|
|
<li role="none">
|
|
<a href="#WithoutVersionDecoder.OpenAPIModelName" title="(in) OpenAPIModelName()" data-gtmc="doc outline link" tabindex="-1" aria-level="4" role="treeitem">
|
|
(in) OpenAPIModelName()
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#section-sourcefiles" data-gtmc="outline link" tabindex="-1" aria-level="1" role="treeitem">
|
|
Source Files
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li role="none">
|
|
<a href="#section-directories" data-gtmc="outline link" tabindex="-1" aria-level="1" role="treeitem">
|
|
Directories
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
<div class="go-Main-navMobile js-mainNavMobile">
|
|
<label class="go-Label" aria-label="Menu"><select class="go-Select js-selectNav"><optgroup label="Outline"><option label="Documentation" value="k8s.io/apimachinery/pkg/runtime#section-documentation">Documentation</option><option label="Source Files" value="k8s.io/apimachinery/pkg/runtime#section-sourcefiles">Source Files</option><option label="Directories" value="k8s.io/apimachinery/pkg/runtime#section-directories">Directories</option></optgroup><optgroup label="Documentation"><option label="Overview" value="k8s.io/apimachinery/pkg/runtime#pkg-overview">Overview</option><option label="Index" value="k8s.io/apimachinery/pkg/runtime#pkg-index">Index</option><option label="Constants" value="k8s.io/apimachinery/pkg/runtime#pkg-constants">Constants</option><option label="Variables" value="k8s.io/apimachinery/pkg/runtime#pkg-variables">Variables</option><option label="Functions" value="k8s.io/apimachinery/pkg/runtime#pkg-functions">Functions</option><option label="Types" value="k8s.io/apimachinery/pkg/runtime#pkg-types">Types</option></optgroup><optgroup label="Functions"><option label="AsStrictDecodingError(err)" value="k8s.io/apimachinery/pkg/runtime#AsStrictDecodingError">AsStrictDecodingError(err)</option><option label="CheckCodec(c, internalType, externalTypes)" value="k8s.io/apimachinery/pkg/runtime#CheckCodec">CheckCodec(c, internalType, externalTypes)</option><option label="Convert_Slice_string_To_Pointer_bool(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_Pointer_bool">Convert_Slice_string_To_Pointer_bool(in, out, s)</option><option label="Convert_Slice_string_To_Pointer_int64(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_Pointer_int64">Convert_Slice_string_To_Pointer_int64(in, out, s)</option><option label="Convert_Slice_string_To_bool(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_bool">Convert_Slice_string_To_bool(in, out, s)</option><option label="Convert_Slice_string_To_int(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_int">Convert_Slice_string_To_int(in, out, s)</option><option label="Convert_Slice_string_To_int64(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_int64">Convert_Slice_string_To_int64(in, out, s)</option><option label="Convert_Slice_string_To_string(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_Slice_string_To_string">Convert_Slice_string_To_string(in, out, s)</option><option label="Convert_runtime_Object_To_runtime_RawExtension(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_runtime_Object_To_runtime_RawExtension">Convert_runtime_Object_To_runtime_RawExtension(in, out, s)</option><option label="Convert_runtime_RawExtension_To_runtime_Object(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_runtime_RawExtension_To_runtime_Object">Convert_runtime_RawExtension_To_runtime_Object(in, out, s)</option><option label="Convert_string_To_Pointer_int64(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_string_To_Pointer_int64">Convert_string_To_Pointer_int64(in, out, s)</option><option label="Convert_string_To_int64(in, out, s)" value="k8s.io/apimachinery/pkg/runtime#Convert_string_To_int64">Convert_string_To_int64(in, out, s)</option><option label="DecodeInto(d, data, into)" value="k8s.io/apimachinery/pkg/runtime#DecodeInto">DecodeInto(d, data, into)</option><option label="DecodeList(objects, decoders)" value="k8s.io/apimachinery/pkg/runtime#DecodeList">DecodeList(objects, decoders)</option><option label="DeepCopyJSON(x)" value="k8s.io/apimachinery/pkg/runtime#DeepCopyJSON">DeepCopyJSON(x)</option><option label="DeepCopyJSONValue(x)" value="k8s.io/apimachinery/pkg/runtime#DeepCopyJSONValue">DeepCopyJSONValue(x)</option><option label="DefaultMetaV1FieldSelectorConversion(label, value)" value="k8s.io/apimachinery/pkg/runtime#DefaultMetaV1FieldSelectorConversion">DefaultMetaV1FieldSelectorConversion(label, value)</option><option label="Encode(e, obj)" value="k8s.io/apimachinery/pkg/runtime#Encode">Encode(e, obj)</option><option label="EncodeList(e, objects)" value="k8s.io/apimachinery/pkg/runtime#EncodeList">EncodeList(e, objects)</option><option label="EncodeOrDie(e, obj)" value="k8s.io/apimachinery/pkg/runtime#EncodeOrDie">EncodeOrDie(e, obj)</option><option label="Field(v, fieldName, dest)" value="k8s.io/apimachinery/pkg/runtime#Field">Field(v, fieldName, dest)</option><option label="FieldPtr(v, fieldName, dest)" value="k8s.io/apimachinery/pkg/runtime#FieldPtr">FieldPtr(v, fieldName, dest)</option><option label="IsMissingKind(err)" value="k8s.io/apimachinery/pkg/runtime#IsMissingKind">IsMissingKind(err)</option><option label="IsMissingVersion(err)" value="k8s.io/apimachinery/pkg/runtime#IsMissingVersion">IsMissingVersion(err)</option><option label="IsNotRegisteredError(err)" value="k8s.io/apimachinery/pkg/runtime#IsNotRegisteredError">IsNotRegisteredError(err)</option><option label="IsStrictDecodingError(err)" value="k8s.io/apimachinery/pkg/runtime#IsStrictDecodingError">IsStrictDecodingError(err)</option><option label="JSONKeyMapper(key, sourceTag, destTag)" value="k8s.io/apimachinery/pkg/runtime#JSONKeyMapper">JSONKeyMapper(key, sourceTag, destTag)</option><option label="NewMissingKindErr(data)" value="k8s.io/apimachinery/pkg/runtime#NewMissingKindErr">NewMissingKindErr(data)</option><option label="NewMissingVersionErr(data)" value="k8s.io/apimachinery/pkg/runtime#NewMissingVersionErr">NewMissingVersionErr(data)</option><option label="NewNotRegisteredErrForKind(schemeName, gvk)" value="k8s.io/apimachinery/pkg/runtime#NewNotRegisteredErrForKind">NewNotRegisteredErrForKind(schemeName, gvk)</option><option label="NewNotRegisteredErrForTarget(schemeName, t, target)" value="k8s.io/apimachinery/pkg/runtime#NewNotRegisteredErrForTarget">NewNotRegisteredErrForTarget(schemeName, t, target)</option><option label="NewNotRegisteredErrForType(schemeName, t)" value="k8s.io/apimachinery/pkg/runtime#NewNotRegisteredErrForType">NewNotRegisteredErrForType(schemeName, t)</option><option label="NewNotRegisteredGVKErrForTarget(schemeName, gvk, target)" value="k8s.io/apimachinery/pkg/runtime#NewNotRegisteredGVKErrForTarget">NewNotRegisteredGVKErrForTarget(schemeName, gvk, target)</option><option label="NewStrictDecodingError(errors)" value="k8s.io/apimachinery/pkg/runtime#NewStrictDecodingError">NewStrictDecodingError(errors)</option><option label="NewTestUnstructuredConverterWithValidation(comparison)" value="k8s.io/apimachinery/pkg/runtime#NewTestUnstructuredConverterWithValidation">NewTestUnstructuredConverterWithValidation(comparison)</option><option label="RegisterEmbeddedConversions(s)" value="k8s.io/apimachinery/pkg/runtime#RegisterEmbeddedConversions">RegisterEmbeddedConversions(s)</option><option label="RegisterStringConversions(s)" value="k8s.io/apimachinery/pkg/runtime#RegisterStringConversions">RegisterStringConversions(s)</option><option label="SetField(src, v, fieldName)" value="k8s.io/apimachinery/pkg/runtime#SetField">SetField(src, v, fieldName)</option><option label="SetZeroValue(objPtr)" value="k8s.io/apimachinery/pkg/runtime#SetZeroValue">SetZeroValue(objPtr)</option><option label="VerifySwaggerDocsExist(kubeTypes, w)" value="k8s.io/apimachinery/pkg/runtime#VerifySwaggerDocsExist">VerifySwaggerDocsExist(kubeTypes, w)</option><option label="WriteSwaggerDocFunc(kubeTypes, w)" value="k8s.io/apimachinery/pkg/runtime#WriteSwaggerDocFunc">WriteSwaggerDocFunc(kubeTypes, w)</option></optgroup><optgroup label="Types"><option label="type Allocator" value="k8s.io/apimachinery/pkg/runtime#Allocator">type Allocator</option><option label="type ApplyConfiguration" value="k8s.io/apimachinery/pkg/runtime#ApplyConfiguration">type ApplyConfiguration</option><option label="type CacheableObject" value="k8s.io/apimachinery/pkg/runtime#CacheableObject">type CacheableObject</option><option label="type ClientNegotiator" value="k8s.io/apimachinery/pkg/runtime#ClientNegotiator">type ClientNegotiator</option><option label="type Codec" value="k8s.io/apimachinery/pkg/runtime#Codec">type Codec</option><option label="type Decoder" value="k8s.io/apimachinery/pkg/runtime#Decoder">type Decoder</option><option label="type Encoder" value="k8s.io/apimachinery/pkg/runtime#Encoder">type Encoder</option><option label="type EncoderWithAllocator" value="k8s.io/apimachinery/pkg/runtime#EncoderWithAllocator">type EncoderWithAllocator</option><option label="type EquivalentResourceMapper" value="k8s.io/apimachinery/pkg/runtime#EquivalentResourceMapper">type EquivalentResourceMapper</option><option label="type EquivalentResourceRegistry" value="k8s.io/apimachinery/pkg/runtime#EquivalentResourceRegistry">type EquivalentResourceRegistry</option><option label="type FieldLabelConversionFunc" value="k8s.io/apimachinery/pkg/runtime#FieldLabelConversionFunc">type FieldLabelConversionFunc</option><option label="type Framer" value="k8s.io/apimachinery/pkg/runtime#Framer">type Framer</option><option label="type GroupVersioner" value="k8s.io/apimachinery/pkg/runtime#GroupVersioner">type GroupVersioner</option><option label="type Identifier" value="k8s.io/apimachinery/pkg/runtime#Identifier">type Identifier</option><option label="type KubeTypes" value="k8s.io/apimachinery/pkg/runtime#KubeTypes">type KubeTypes</option><option label="type MemoryAllocator" value="k8s.io/apimachinery/pkg/runtime#MemoryAllocator">type MemoryAllocator</option><option label="type MultiObjectTyper" value="k8s.io/apimachinery/pkg/runtime#MultiObjectTyper">type MultiObjectTyper</option><option label="type Namer" value="k8s.io/apimachinery/pkg/runtime#Namer">type Namer</option><option label="type NegotiateError" value="k8s.io/apimachinery/pkg/runtime#NegotiateError">type NegotiateError</option><option label="type NegotiatedSerializer" value="k8s.io/apimachinery/pkg/runtime#NegotiatedSerializer">type NegotiatedSerializer</option><option label="type NestedObjectDecoder" value="k8s.io/apimachinery/pkg/runtime#NestedObjectDecoder">type NestedObjectDecoder</option><option label="type NestedObjectEncoder" value="k8s.io/apimachinery/pkg/runtime#NestedObjectEncoder">type NestedObjectEncoder</option><option label="type NondeterministicEncoder" value="k8s.io/apimachinery/pkg/runtime#NondeterministicEncoder">type NondeterministicEncoder</option><option label="type NoopDecoder" value="k8s.io/apimachinery/pkg/runtime#NoopDecoder">type NoopDecoder</option><option label="type NoopEncoder" value="k8s.io/apimachinery/pkg/runtime#NoopEncoder">type NoopEncoder</option><option label="type Object" value="k8s.io/apimachinery/pkg/runtime#Object">type Object</option><option label="type ObjectConvertor" value="k8s.io/apimachinery/pkg/runtime#ObjectConvertor">type ObjectConvertor</option><option label="type ObjectCreater" value="k8s.io/apimachinery/pkg/runtime#ObjectCreater">type ObjectCreater</option><option label="type ObjectDefaulter" value="k8s.io/apimachinery/pkg/runtime#ObjectDefaulter">type ObjectDefaulter</option><option label="type ObjectTyper" value="k8s.io/apimachinery/pkg/runtime#ObjectTyper">type ObjectTyper</option><option label="type ObjectVersioner" value="k8s.io/apimachinery/pkg/runtime#ObjectVersioner">type ObjectVersioner</option><option label="type Pair" value="k8s.io/apimachinery/pkg/runtime#Pair">type Pair</option><option label="type ParameterCodec" value="k8s.io/apimachinery/pkg/runtime#ParameterCodec">type ParameterCodec</option><option label="type ProtobufMarshaller" value="k8s.io/apimachinery/pkg/runtime#ProtobufMarshaller">type ProtobufMarshaller</option><option label="type ProtobufReverseMarshaller" value="k8s.io/apimachinery/pkg/runtime#ProtobufReverseMarshaller">type ProtobufReverseMarshaller</option><option label="type RawExtension" value="k8s.io/apimachinery/pkg/runtime#RawExtension">type RawExtension</option><option label="type ResourceVersioner" value="k8s.io/apimachinery/pkg/runtime#ResourceVersioner">type ResourceVersioner</option><option label="type Scheme" value="k8s.io/apimachinery/pkg/runtime#Scheme">type Scheme</option><option label="type SchemeBuilder" value="k8s.io/apimachinery/pkg/runtime#SchemeBuilder">type SchemeBuilder</option><option label="type Serializer" value="k8s.io/apimachinery/pkg/runtime#Serializer">type Serializer</option><option label="type SerializerInfo" value="k8s.io/apimachinery/pkg/runtime#SerializerInfo">type SerializerInfo</option><option label="type SimpleAllocator" value="k8s.io/apimachinery/pkg/runtime#SimpleAllocator">type SimpleAllocator</option><option label="type Splice" value="k8s.io/apimachinery/pkg/runtime#Splice">type Splice</option><option label="type StorageSerializer" value="k8s.io/apimachinery/pkg/runtime#StorageSerializer">type StorageSerializer</option><option label="type StreamSerializerInfo" value="k8s.io/apimachinery/pkg/runtime#StreamSerializerInfo">type StreamSerializerInfo</option><option label="type TypeMeta" value="k8s.io/apimachinery/pkg/runtime#TypeMeta">type TypeMeta</option><option label="type Unknown" value="k8s.io/apimachinery/pkg/runtime#Unknown">type Unknown</option><option label="type Unstructured" value="k8s.io/apimachinery/pkg/runtime#Unstructured">type Unstructured</option><option label="type UnstructuredConverter" value="k8s.io/apimachinery/pkg/runtime#UnstructuredConverter">type UnstructuredConverter</option><option label="type WithVersionEncoder" value="k8s.io/apimachinery/pkg/runtime#WithVersionEncoder">type WithVersionEncoder</option><option label="type WithoutVersionDecoder" value="k8s.io/apimachinery/pkg/runtime#WithoutVersionDecoder">type WithoutVersionDecoder</option></optgroup><optgroup label="type Allocator"><option label="(a) Allocate(n)" value="k8s.io/apimachinery/pkg/runtime#Allocator.Allocate">(a) Allocate(n)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#Allocator.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type ClientNegotiator"><option label="NewClientNegotiator(serializer, gv)" value="k8s.io/apimachinery/pkg/runtime#NewClientNegotiator">NewClientNegotiator(serializer, gv)</option></optgroup><optgroup label="type Codec"><option label="NewCodec(e, d)" value="k8s.io/apimachinery/pkg/runtime#NewCodec">NewCodec(e, d)</option></optgroup><optgroup label="type Encoder"><option label="NewEncoderWithAllocator(e, a)" value="k8s.io/apimachinery/pkg/runtime#NewEncoderWithAllocator">NewEncoderWithAllocator(e, a)</option><option label="UseNondeterministicEncoding(encoder)" value="k8s.io/apimachinery/pkg/runtime#UseNondeterministicEncoding">UseNondeterministicEncoding(encoder)</option></optgroup><optgroup label="type EquivalentResourceRegistry"><option label="NewEquivalentResourceRegistry()" value="k8s.io/apimachinery/pkg/runtime#NewEquivalentResourceRegistry">NewEquivalentResourceRegistry()</option><option label="NewEquivalentResourceRegistryWithIdentity(keyFunc)" value="k8s.io/apimachinery/pkg/runtime#NewEquivalentResourceRegistryWithIdentity">NewEquivalentResourceRegistryWithIdentity(keyFunc)</option></optgroup><optgroup label="type GroupVersioner"><option label="NewCoercingMultiGroupVersioner(gv, groupKinds)" value="k8s.io/apimachinery/pkg/runtime#NewCoercingMultiGroupVersioner">NewCoercingMultiGroupVersioner(gv, groupKinds)</option><option label="NewMultiGroupVersioner(gv, groupKinds)" value="k8s.io/apimachinery/pkg/runtime#NewMultiGroupVersioner">NewMultiGroupVersioner(gv, groupKinds)</option></optgroup><optgroup label="type KubeTypes"><option label="ParseDocumentationFrom(src)" value="k8s.io/apimachinery/pkg/runtime#ParseDocumentationFrom">ParseDocumentationFrom(src)</option></optgroup><optgroup label="type MultiObjectTyper"><option label="(m) ObjectKinds(obj)" value="k8s.io/apimachinery/pkg/runtime#MultiObjectTyper.ObjectKinds">(m) ObjectKinds(obj)</option><option label="(m) Recognizes(gvk)" value="k8s.io/apimachinery/pkg/runtime#MultiObjectTyper.Recognizes">(m) Recognizes(gvk)</option></optgroup><optgroup label="type NegotiateError"><option label="(e) Error()" value="k8s.io/apimachinery/pkg/runtime#NegotiateError.Error">(e) Error()</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#NegotiateError.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type NegotiatedSerializer"><option label="NewSimpleNegotiatedSerializer(info)" value="k8s.io/apimachinery/pkg/runtime#NewSimpleNegotiatedSerializer">NewSimpleNegotiatedSerializer(info)</option></optgroup><optgroup label="type NoopDecoder"><option label="(n) Decode(data, gvk, into)" value="k8s.io/apimachinery/pkg/runtime#NoopDecoder.Decode">(n) Decode(data, gvk, into)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#NoopDecoder.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type NoopEncoder"><option label="(n) Encode(obj, w)" value="k8s.io/apimachinery/pkg/runtime#NoopEncoder.Encode">(n) Encode(obj, w)</option><option label="(n) Identifier()" value="k8s.io/apimachinery/pkg/runtime#NoopEncoder.Identifier">(n) Identifier()</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#NoopEncoder.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type Object"><option label="Decode(d, data)" value="k8s.io/apimachinery/pkg/runtime#Decode">Decode(d, data)</option><option label="NewEncodable(e, obj, versions)" value="k8s.io/apimachinery/pkg/runtime#NewEncodable">NewEncodable(e, obj, versions)</option><option label="NewEncodableList(e, objects, versions)" value="k8s.io/apimachinery/pkg/runtime#NewEncodableList">NewEncodableList(e, objects, versions)</option><option label="UseOrCreateObject(t, c, gvk, obj)" value="k8s.io/apimachinery/pkg/runtime#UseOrCreateObject">UseOrCreateObject(t, c, gvk, obj)</option></optgroup><optgroup label="type ObjectConvertor"><option label="UnsafeObjectConvertor(scheme)" value="k8s.io/apimachinery/pkg/runtime#UnsafeObjectConvertor">UnsafeObjectConvertor(scheme)</option></optgroup><optgroup label="type Pair"><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#Pair.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type ParameterCodec"><option label="NewParameterCodec(scheme)" value="k8s.io/apimachinery/pkg/runtime#NewParameterCodec">NewParameterCodec(scheme)</option></optgroup><optgroup label="type RawExtension"><option label="(in) DeepCopy()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.DeepCopy">(in) DeepCopy()</option><option label="(in) DeepCopyInto(out)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.DeepCopyInto">(in) DeepCopyInto(out)</option><option label="(m) Marshal()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.Marshal">(m) Marshal()</option><option label="(re) MarshalCBOR()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.MarshalCBOR">(re) MarshalCBOR()</option><option label="(re) MarshalJSON()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.MarshalJSON">(re) MarshalJSON()</option><option label="(m) MarshalTo(dAtA)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.MarshalTo">(m) MarshalTo(dAtA)</option><option label="(m) MarshalToSizedBuffer(dAtA)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.MarshalToSizedBuffer">(m) MarshalToSizedBuffer(dAtA)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.OpenAPIModelName">(in) OpenAPIModelName()</option><option label="(m) Reset()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.Reset">(m) Reset()</option><option label="(m) Size()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.Size">(m) Size()</option><option label="(this) String()" value="k8s.io/apimachinery/pkg/runtime#RawExtension.String">(this) String()</option><option label="(m) Unmarshal(dAtA)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.Unmarshal">(m) Unmarshal(dAtA)</option><option label="(re) UnmarshalCBOR(in)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.UnmarshalCBOR">(re) UnmarshalCBOR(in)</option><option label="(re) UnmarshalJSON(in)" value="k8s.io/apimachinery/pkg/runtime#RawExtension.UnmarshalJSON">(re) UnmarshalJSON(in)</option></optgroup><optgroup label="type Scheme"><option label="NewScheme()" value="k8s.io/apimachinery/pkg/runtime#NewScheme">NewScheme()</option><option label="(s) AddConversionFunc(a, b, fn)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddConversionFunc">(s) AddConversionFunc(a, b, fn)</option><option label="(s) AddFieldLabelConversionFunc(gvk, conversionFunc)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddFieldLabelConversionFunc">(s) AddFieldLabelConversionFunc(gvk, conversionFunc)</option><option label="(s) AddGeneratedConversionFunc(a, b, fn)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddGeneratedConversionFunc">(s) AddGeneratedConversionFunc(a, b, fn)</option><option label="(s) AddIgnoredConversionType(from, to)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddIgnoredConversionType">(s) AddIgnoredConversionType(from, to)</option><option label="(s) AddKnownTypeWithName(gvk, obj)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddKnownTypeWithName">(s) AddKnownTypeWithName(gvk, obj)</option><option label="(s) AddKnownTypes(gv, types)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddKnownTypes">(s) AddKnownTypes(gv, types)</option><option label="(s) AddTypeDefaultingFunc(srcType, fn)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddTypeDefaultingFunc">(s) AddTypeDefaultingFunc(srcType, fn)</option><option label="(s) AddUnversionedTypes(version, types)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddUnversionedTypes">(s) AddUnversionedTypes(version, types)</option><option label="(s) AddValidationFunc(srcType, fn)" value="k8s.io/apimachinery/pkg/runtime#Scheme.AddValidationFunc">(s) AddValidationFunc(srcType, fn)</option><option label="(s) AllKnownTypes()" value="k8s.io/apimachinery/pkg/runtime#Scheme.AllKnownTypes">(s) AllKnownTypes()</option><option label="(s) Convert(in, out, context)" value="k8s.io/apimachinery/pkg/runtime#Scheme.Convert">(s) Convert(in, out, context)</option><option label="(s) ConvertFieldLabel(gvk, label, value)" value="k8s.io/apimachinery/pkg/runtime#Scheme.ConvertFieldLabel">(s) ConvertFieldLabel(gvk, label, value)</option><option label="(s) ConvertToVersion(in, target)" value="k8s.io/apimachinery/pkg/runtime#Scheme.ConvertToVersion">(s) ConvertToVersion(in, target)</option><option label="(s) Converter()" value="k8s.io/apimachinery/pkg/runtime#Scheme.Converter">(s) Converter()</option><option label="(s) Default(src)" value="k8s.io/apimachinery/pkg/runtime#Scheme.Default">(s) Default(src)</option><option label="(s) IsGroupRegistered(group)" value="k8s.io/apimachinery/pkg/runtime#Scheme.IsGroupRegistered">(s) IsGroupRegistered(group)</option><option label="(s) IsUnversioned(obj)" value="k8s.io/apimachinery/pkg/runtime#Scheme.IsUnversioned">(s) IsUnversioned(obj)</option><option label="(s) IsVersionRegistered(version)" value="k8s.io/apimachinery/pkg/runtime#Scheme.IsVersionRegistered">(s) IsVersionRegistered(version)</option><option label="(s) KnownTypes(gv)" value="k8s.io/apimachinery/pkg/runtime#Scheme.KnownTypes">(s) KnownTypes(gv)</option><option label="(s) Name()" value="k8s.io/apimachinery/pkg/runtime#Scheme.Name">(s) Name()</option><option label="(s) New(kind)" value="k8s.io/apimachinery/pkg/runtime#Scheme.New">(s) New(kind)</option><option label="(s) ObjectKinds(obj)" value="k8s.io/apimachinery/pkg/runtime#Scheme.ObjectKinds">(s) ObjectKinds(obj)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#Scheme.OpenAPIModelName">(in) OpenAPIModelName()</option><option label="(s) PreferredVersionAllGroups()" value="k8s.io/apimachinery/pkg/runtime#Scheme.PreferredVersionAllGroups">(s) PreferredVersionAllGroups()</option><option label="(s) PrioritizedVersionsAllGroups()" value="k8s.io/apimachinery/pkg/runtime#Scheme.PrioritizedVersionsAllGroups">(s) PrioritizedVersionsAllGroups()</option><option label="(s) PrioritizedVersionsForGroup(group)" value="k8s.io/apimachinery/pkg/runtime#Scheme.PrioritizedVersionsForGroup">(s) PrioritizedVersionsForGroup(group)</option><option label="(s) Recognizes(gvk)" value="k8s.io/apimachinery/pkg/runtime#Scheme.Recognizes">(s) Recognizes(gvk)</option><option label="(s) SetVersionPriority(versions)" value="k8s.io/apimachinery/pkg/runtime#Scheme.SetVersionPriority">(s) SetVersionPriority(versions)</option><option label="(s) ToOpenAPIDefinitionName(groupVersionKind)" value="k8s.io/apimachinery/pkg/runtime#Scheme.ToOpenAPIDefinitionName">(s) ToOpenAPIDefinitionName(groupVersionKind)</option><option label="(s) UnsafeConvertToVersion(in, target)" value="k8s.io/apimachinery/pkg/runtime#Scheme.UnsafeConvertToVersion">(s) UnsafeConvertToVersion(in, target)</option><option label="(s) Validate(ctx, options, object, subresources)" value="k8s.io/apimachinery/pkg/runtime#Scheme.Validate">(s) Validate(ctx, options, object, subresources)</option><option label="(s) ValidateUpdate(ctx, options, object, oldObject, subresources)" value="k8s.io/apimachinery/pkg/runtime#Scheme.ValidateUpdate">(s) ValidateUpdate(ctx, options, object, oldObject, subresources)</option><option label="(s) VersionsForGroupKind(gk)" value="k8s.io/apimachinery/pkg/runtime#Scheme.VersionsForGroupKind">(s) VersionsForGroupKind(gk)</option></optgroup><optgroup label="type SchemeBuilder"><option label="NewSchemeBuilder(funcs)" value="k8s.io/apimachinery/pkg/runtime#NewSchemeBuilder">NewSchemeBuilder(funcs)</option><option label="(sb) AddToScheme(s)" value="k8s.io/apimachinery/pkg/runtime#SchemeBuilder.AddToScheme">(sb) AddToScheme(s)</option><option label="(sb) Register(funcs)" value="k8s.io/apimachinery/pkg/runtime#SchemeBuilder.Register">(sb) Register(funcs)</option></optgroup><optgroup label="type Serializer"><option label="NewBase64Serializer(e, d)" value="k8s.io/apimachinery/pkg/runtime#NewBase64Serializer">NewBase64Serializer(e, d)</option></optgroup><optgroup label="type SerializerInfo"><option label="SerializerInfoForMediaType(types, mediaType)" value="k8s.io/apimachinery/pkg/runtime#SerializerInfoForMediaType">SerializerInfoForMediaType(types, mediaType)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#SerializerInfo.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type SimpleAllocator"><option label="(sa) Allocate(n)" value="k8s.io/apimachinery/pkg/runtime#SimpleAllocator.Allocate">(sa) Allocate(n)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#SimpleAllocator.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type Splice"><option label="NewSpliceBuffer()" value="k8s.io/apimachinery/pkg/runtime#NewSpliceBuffer">NewSpliceBuffer()</option></optgroup><optgroup label="type StreamSerializerInfo"><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#StreamSerializerInfo.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type TypeMeta"><option label="(obj) GetObjectKind()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.GetObjectKind">(obj) GetObjectKind()</option><option label="(obj) GroupVersionKind()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.GroupVersionKind">(obj) GroupVersionKind()</option><option label="(m) Marshal()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.Marshal">(m) Marshal()</option><option label="(m) MarshalTo(dAtA)" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.MarshalTo">(m) MarshalTo(dAtA)</option><option label="(m) MarshalToSizedBuffer(dAtA)" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.MarshalToSizedBuffer">(m) MarshalToSizedBuffer(dAtA)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.OpenAPIModelName">(in) OpenAPIModelName()</option><option label="(m) Reset()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.Reset">(m) Reset()</option><option label="(obj) SetGroupVersionKind(gvk)" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.SetGroupVersionKind">(obj) SetGroupVersionKind(gvk)</option><option label="(m) Size()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.Size">(m) Size()</option><option label="(this) String()" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.String">(this) String()</option><option label="(m) Unmarshal(dAtA)" value="k8s.io/apimachinery/pkg/runtime#TypeMeta.Unmarshal">(m) Unmarshal(dAtA)</option></optgroup><optgroup label="type Unknown"><option label="(in) DeepCopy()" value="k8s.io/apimachinery/pkg/runtime#Unknown.DeepCopy">(in) DeepCopy()</option><option label="(in) DeepCopyInto(out)" value="k8s.io/apimachinery/pkg/runtime#Unknown.DeepCopyInto">(in) DeepCopyInto(out)</option><option label="(in) DeepCopyObject()" value="k8s.io/apimachinery/pkg/runtime#Unknown.DeepCopyObject">(in) DeepCopyObject()</option><option label="(m) Marshal()" value="k8s.io/apimachinery/pkg/runtime#Unknown.Marshal">(m) Marshal()</option><option label="(e) MarshalJSON()" value="k8s.io/apimachinery/pkg/runtime#Unknown.MarshalJSON">(e) MarshalJSON()</option><option label="(m) MarshalTo(dAtA)" value="k8s.io/apimachinery/pkg/runtime#Unknown.MarshalTo">(m) MarshalTo(dAtA)</option><option label="(m) MarshalToSizedBuffer(dAtA)" value="k8s.io/apimachinery/pkg/runtime#Unknown.MarshalToSizedBuffer">(m) MarshalToSizedBuffer(dAtA)</option><option label="(m) MarshalToWriter(w, rawSize, writeRaw)" value="k8s.io/apimachinery/pkg/runtime#Unknown.MarshalToWriter">(m) MarshalToWriter(w, rawSize, writeRaw)</option><option label="(m) NestedMarshalTo(data, b, size)" value="k8s.io/apimachinery/pkg/runtime#Unknown.NestedMarshalTo">(m) NestedMarshalTo(data, b, size)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#Unknown.OpenAPIModelName">(in) OpenAPIModelName()</option><option label="(m) Reset()" value="k8s.io/apimachinery/pkg/runtime#Unknown.Reset">(m) Reset()</option><option label="(m) Size()" value="k8s.io/apimachinery/pkg/runtime#Unknown.Size">(m) Size()</option><option label="(this) String()" value="k8s.io/apimachinery/pkg/runtime#Unknown.String">(this) String()</option><option label="(m) Unmarshal(dAtA)" value="k8s.io/apimachinery/pkg/runtime#Unknown.Unmarshal">(m) Unmarshal(dAtA)</option><option label="(e) UnmarshalJSON(in)" value="k8s.io/apimachinery/pkg/runtime#Unknown.UnmarshalJSON">(e) UnmarshalJSON(in)</option></optgroup><optgroup label="type UnstructuredConverter"><option label="NewTestUnstructuredConverter(comparison)" value="k8s.io/apimachinery/pkg/runtime#NewTestUnstructuredConverter">NewTestUnstructuredConverter(comparison)</option></optgroup><optgroup label="type WithVersionEncoder"><option label="(e) Encode(obj, stream)" value="k8s.io/apimachinery/pkg/runtime#WithVersionEncoder.Encode">(e) Encode(obj, stream)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#WithVersionEncoder.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup><optgroup label="type WithoutVersionDecoder"><option label="(d) Decode(data, defaults, into)" value="k8s.io/apimachinery/pkg/runtime#WithoutVersionDecoder.Decode">(d) Decode(data, defaults, into)</option><option label="(in) OpenAPIModelName()" value="k8s.io/apimachinery/pkg/runtime#WithoutVersionDecoder.OpenAPIModelName">(in) OpenAPIModelName()</option></optgroup></select></label>
|
|
</div>
|
|
</nav>
|
|
<article class="go-Main-article js-mainContent">
|
|
<div class="UnitDetails" data-test-id="UnitDetails" style="display: block;">
|
|
<div class="UnitDetails-content js-unitDetailsContent" data-test-id="UnitDetails-content">
|
|
|
|
|
|
|
|
|
|
<div class="UnitDoc">
|
|
<h2 class="UnitDoc-title" id="section-documentation">
|
|
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/code_gm_grey_24dp.svg" alt="">
|
|
Documentation
|
|
<a class="UnitDoc-idLink" href="#section-documentation" title="Go to Documentation" aria-label="Go to Documentation">¶</a>
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="Documentation js-documentation">
|
|
|
|
|
|
|
|
<div class="Documentation-content js-docContent"> <section class="Documentation-overview">
|
|
<h3 tabindex="-1" id="pkg-overview" class="Documentation-overviewHeader">Overview <a href="#pkg-overview" title="Go to Overview" aria-label="Go to Overview">¶</a></h3>
|
|
|
|
<p>Package runtime defines conversions between generic types and structs to map query strings
|
|
to struct objects.
|
|
</p><p>Package runtime includes helper functions for working with API objects
|
|
that follow the kubernetes API object conventions, which are:
|
|
</p><p>0. Your API objects have a common metadata struct member, TypeMeta.
|
|
</p><p>1. Your code refers to an internal set of API objects.
|
|
</p><p>2. In a separate package, you have an external set of API objects.
|
|
</p><p>3. The external set is considered to be versioned, and no breaking
|
|
changes are ever made to it (fields may be added but not changed
|
|
or removed).
|
|
</p><p>4. As your api evolves, you'll make an additional versioned package
|
|
with every major change.
|
|
</p><p>5. Versioned packages have conversion functions which convert to
|
|
and from the internal version.
|
|
</p><p>6. You'll continue to support older versions according to your
|
|
deprecation policy, and you can easily provide a program/library
|
|
to update old versions into new versions because of 5.
|
|
</p><p>7. All of your serializations and deserializations are handled in a
|
|
centralized place.
|
|
</p><p>Package runtime provides a conversion helper to make 5 easy, and the
|
|
Encode/Decode/DecodeInto trio to accomplish 7. You can also register
|
|
additional "codecs" which use a version of your choice. It's
|
|
recommended that you register your types with runtime in your
|
|
package's init function.
|
|
</p><p>As a bonus, a few common types useful from all api objects and versions
|
|
are provided in types.go.
|
|
</p>
|
|
</section><section class="Documentation-index">
|
|
<h3 id="pkg-index" class="Documentation-indexHeader">Index <a href="#pkg-index" title="Go to Index" aria-label="Go to Index">¶</a></h3>
|
|
|
|
<ul class="Documentation-indexList">
|
|
<li class="Documentation-indexConstants"><a href="#pkg-constants">Constants</a></li>
|
|
<li class="Documentation-indexVariables"><a href="#pkg-variables">Variables</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#AsStrictDecodingError">func AsStrictDecodingError(err error) (*strictDecodingError, bool)</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#CheckCodec">func CheckCodec(c Codec, internalType Object, externalTypes ...schema.GroupVersionKind) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_Pointer_bool">func Convert_Slice_string_To_Pointer_bool(in *[]string, out **bool, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_Pointer_int64">func Convert_Slice_string_To_Pointer_int64(in *[]string, out **int64, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_bool">func Convert_Slice_string_To_bool(in *[]string, out *bool, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_int">func Convert_Slice_string_To_int(in *[]string, out *int, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_int64">func Convert_Slice_string_To_int64(in *[]string, out *int64, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_Slice_string_To_string">func Convert_Slice_string_To_string(in *[]string, out *string, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_runtime_Object_To_runtime_RawExtension">func Convert_runtime_Object_To_runtime_RawExtension(in *Object, out *RawExtension, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_runtime_RawExtension_To_runtime_Object">func Convert_runtime_RawExtension_To_runtime_Object(in *RawExtension, out *Object, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_string_To_Pointer_int64">func Convert_string_To_Pointer_int64(in *string, out **int64, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Convert_string_To_int64">func Convert_string_To_int64(in *string, out *int64, s conversion.Scope) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#DecodeInto">func DecodeInto(d Decoder, data []byte, into Object) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#DecodeList">func DecodeList(objects []Object, decoders ...Decoder) []error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#DeepCopyJSON">func DeepCopyJSON(x map[string]interface{}) map[string]interface{}</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#DeepCopyJSONValue">func DeepCopyJSONValue(x interface{}) interface{}</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#DefaultMetaV1FieldSelectorConversion">func DefaultMetaV1FieldSelectorConversion(label, value string) (string, string, error)</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Encode">func Encode(e Encoder, obj Object) ([]byte, error)</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#EncodeList">func EncodeList(e Encoder, objects []Object) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#EncodeOrDie">func EncodeOrDie(e Encoder, obj Object) string</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#Field">func Field(v reflect.Value, fieldName string, dest interface{}) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#FieldPtr">func FieldPtr(v reflect.Value, fieldName string, dest interface{}) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#IsMissingKind">func IsMissingKind(err error) bool</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#IsMissingVersion">func IsMissingVersion(err error) bool</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#IsNotRegisteredError">func IsNotRegisteredError(err error) bool</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#IsStrictDecodingError">func IsStrictDecodingError(err error) bool</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#JSONKeyMapper">func JSONKeyMapper(key string, sourceTag, destTag reflect.StructTag) (string, string)</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewMissingKindErr">func NewMissingKindErr(data string) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewMissingVersionErr">func NewMissingVersionErr(data string) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewNotRegisteredErrForKind">func NewNotRegisteredErrForKind(schemeName string, gvk schema.GroupVersionKind) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewNotRegisteredErrForTarget">func NewNotRegisteredErrForTarget(schemeName string, t reflect.Type, target GroupVersioner) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewNotRegisteredErrForType">func NewNotRegisteredErrForType(schemeName string, t reflect.Type) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewNotRegisteredGVKErrForTarget">func NewNotRegisteredGVKErrForTarget(schemeName string, gvk schema.GroupVersionKind, target GroupVersioner) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewStrictDecodingError">func NewStrictDecodingError(errors []error) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#NewTestUnstructuredConverterWithValidation">func NewTestUnstructuredConverterWithValidation(comparison conversion.Equalities) *unstructuredConverter</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#RegisterEmbeddedConversions">func RegisterEmbeddedConversions(s *Scheme) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#RegisterStringConversions">func RegisterStringConversions(s *Scheme) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#SetField">func SetField(src interface{}, v reflect.Value, fieldName string) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#SetZeroValue">func SetZeroValue(objPtr Object) error</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#VerifySwaggerDocsExist">func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error)</a></li>
|
|
<li class="Documentation-indexFunction">
|
|
<a href="#WriteSwaggerDocFunc">func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Allocator">type Allocator</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#Allocator.Allocate">func (a *Allocator) Allocate(n uint64) []byte</a></li>
|
|
<li>
|
|
<a href="#Allocator.OpenAPIModelName">func (in Allocator) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ApplyConfiguration">type ApplyConfiguration</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#CacheableObject">type CacheableObject</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ClientNegotiator">type ClientNegotiator</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewClientNegotiator">func NewClientNegotiator(serializer NegotiatedSerializer, gv schema.GroupVersion) ClientNegotiator</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Codec">type Codec</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewCodec">func NewCodec(e Encoder, d Decoder) Codec</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Decoder">type Decoder</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Encoder">type Encoder</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewEncoderWithAllocator">func NewEncoderWithAllocator(e EncoderWithAllocator, a MemoryAllocator) Encoder</a></li>
|
|
<li>
|
|
<a href="#UseNondeterministicEncoding">func UseNondeterministicEncoding(encoder Encoder) Encoder</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#EncoderWithAllocator">type EncoderWithAllocator</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#EquivalentResourceMapper">type EquivalentResourceMapper</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#EquivalentResourceRegistry">type EquivalentResourceRegistry</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewEquivalentResourceRegistry">func NewEquivalentResourceRegistry() EquivalentResourceRegistry</a></li>
|
|
<li>
|
|
<a href="#NewEquivalentResourceRegistryWithIdentity">func NewEquivalentResourceRegistryWithIdentity(keyFunc func(schema.GroupResource) string) EquivalentResourceRegistry</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#FieldLabelConversionFunc">type FieldLabelConversionFunc</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Framer">type Framer</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#GroupVersioner">type GroupVersioner</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewCoercingMultiGroupVersioner">func NewCoercingMultiGroupVersioner(gv schema.GroupVersion, groupKinds ...schema.GroupKind) GroupVersioner</a></li>
|
|
<li>
|
|
<a href="#NewMultiGroupVersioner">func NewMultiGroupVersioner(gv schema.GroupVersion, groupKinds ...schema.GroupKind) GroupVersioner</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Identifier">type Identifier</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#KubeTypes">type KubeTypes</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#ParseDocumentationFrom">func ParseDocumentationFrom(src string) []KubeTypes</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#MemoryAllocator">type MemoryAllocator</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#MultiObjectTyper">type MultiObjectTyper</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#MultiObjectTyper.ObjectKinds">func (m MultiObjectTyper) ObjectKinds(obj Object) (gvks []schema.GroupVersionKind, unversionedType bool, err error)</a></li>
|
|
<li>
|
|
<a href="#MultiObjectTyper.Recognizes">func (m MultiObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Namer">type Namer</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NegotiateError">type NegotiateError</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#NegotiateError.Error">func (e NegotiateError) Error() string</a></li>
|
|
<li>
|
|
<a href="#NegotiateError.OpenAPIModelName">func (in NegotiateError) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NegotiatedSerializer">type NegotiatedSerializer</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewSimpleNegotiatedSerializer">func NewSimpleNegotiatedSerializer(info SerializerInfo) NegotiatedSerializer</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NestedObjectDecoder">type NestedObjectDecoder</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NestedObjectEncoder">type NestedObjectEncoder</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NondeterministicEncoder">type NondeterministicEncoder</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NoopDecoder">type NoopDecoder</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#NoopDecoder.Decode">func (n NoopDecoder) Decode(data []byte, gvk *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error)</a></li>
|
|
<li>
|
|
<a href="#NoopDecoder.OpenAPIModelName">func (in NoopDecoder) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#NoopEncoder">type NoopEncoder</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#NoopEncoder.Encode">func (n NoopEncoder) Encode(obj Object, w io.Writer) error</a></li>
|
|
<li>
|
|
<a href="#NoopEncoder.Identifier">func (n NoopEncoder) Identifier() Identifier</a></li>
|
|
<li>
|
|
<a href="#NoopEncoder.OpenAPIModelName">func (in NoopEncoder) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Object">type Object</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#Decode">func Decode(d Decoder, data []byte) (Object, error)</a></li>
|
|
<li>
|
|
<a href="#NewEncodable">func NewEncodable(e Encoder, obj Object, versions ...schema.GroupVersion) Object</a></li>
|
|
<li>
|
|
<a href="#NewEncodableList">func NewEncodableList(e Encoder, objects []Object, versions ...schema.GroupVersion) []Object</a></li>
|
|
<li>
|
|
<a href="#UseOrCreateObject">func UseOrCreateObject(t ObjectTyper, c ObjectCreater, gvk schema.GroupVersionKind, obj Object) (Object, error)</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ObjectConvertor">type ObjectConvertor</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#UnsafeObjectConvertor">func UnsafeObjectConvertor(scheme *Scheme) ObjectConvertor</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ObjectCreater">type ObjectCreater</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ObjectDefaulter">type ObjectDefaulter</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ObjectTyper">type ObjectTyper</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ObjectVersioner">type ObjectVersioner</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Pair">type Pair</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#Pair.OpenAPIModelName">func (in Pair) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ParameterCodec">type ParameterCodec</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewParameterCodec">func NewParameterCodec(scheme *Scheme) ParameterCodec</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ProtobufMarshaller">type ProtobufMarshaller</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ProtobufReverseMarshaller">type ProtobufReverseMarshaller</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#RawExtension">type RawExtension</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#RawExtension.DeepCopy">func (in *RawExtension) DeepCopy() *RawExtension</a></li>
|
|
<li>
|
|
<a href="#RawExtension.DeepCopyInto">func (in *RawExtension) DeepCopyInto(out *RawExtension)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.Marshal">func (m *RawExtension) Marshal() (dAtA []byte, err error)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.MarshalCBOR">func (re RawExtension) MarshalCBOR() ([]byte, error)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.MarshalJSON">func (re RawExtension) MarshalJSON() ([]byte, error)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.MarshalTo">func (m *RawExtension) MarshalTo(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.MarshalToSizedBuffer">func (m *RawExtension) MarshalToSizedBuffer(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.OpenAPIModelName">func (in RawExtension) OpenAPIModelName() string</a></li>
|
|
<li>
|
|
<a href="#RawExtension.Reset">func (m *RawExtension) Reset()</a></li>
|
|
<li>
|
|
<a href="#RawExtension.Size">func (m *RawExtension) Size() (n int)</a></li>
|
|
<li>
|
|
<a href="#RawExtension.String">func (this *RawExtension) String() string</a></li>
|
|
<li>
|
|
<a href="#RawExtension.Unmarshal">func (m *RawExtension) Unmarshal(dAtA []byte) error</a></li>
|
|
<li>
|
|
<a href="#RawExtension.UnmarshalCBOR">func (re *RawExtension) UnmarshalCBOR(in []byte) error</a></li>
|
|
<li>
|
|
<a href="#RawExtension.UnmarshalJSON">func (re *RawExtension) UnmarshalJSON(in []byte) error</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#ResourceVersioner">type ResourceVersioner</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Scheme">type Scheme</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewScheme">func NewScheme() *Scheme</a></li>
|
|
</ul></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#Scheme.AddConversionFunc">func (s *Scheme) AddConversionFunc(a, b interface{}, fn conversion.ConversionFunc) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddFieldLabelConversionFunc">func (s *Scheme) AddFieldLabelConversionFunc(gvk schema.GroupVersionKind, conversionFunc FieldLabelConversionFunc) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddGeneratedConversionFunc">func (s *Scheme) AddGeneratedConversionFunc(a, b interface{}, fn conversion.ConversionFunc) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddIgnoredConversionType">func (s *Scheme) AddIgnoredConversionType(from, to interface{}) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddKnownTypeWithName">func (s *Scheme) AddKnownTypeWithName(gvk schema.GroupVersionKind, obj Object)</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddKnownTypes">func (s *Scheme) AddKnownTypes(gv schema.GroupVersion, types ...Object)</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddTypeDefaultingFunc">func (s *Scheme) AddTypeDefaultingFunc(srcType Object, fn func(interface{}))</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddUnversionedTypes">func (s *Scheme) AddUnversionedTypes(version schema.GroupVersion, types ...Object)</a></li>
|
|
<li>
|
|
<a href="#Scheme.AddValidationFunc">func (s *Scheme) AddValidationFunc(srcType Object, ...)</a></li>
|
|
<li>
|
|
<a href="#Scheme.AllKnownTypes">func (s *Scheme) AllKnownTypes() map[schema.GroupVersionKind]reflect.Type</a></li>
|
|
<li>
|
|
<a href="#Scheme.Convert">func (s *Scheme) Convert(in, out interface{}, context interface{}) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.ConvertFieldLabel">func (s *Scheme) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.ConvertToVersion">func (s *Scheme) ConvertToVersion(in Object, target GroupVersioner) (Object, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.Converter">func (s *Scheme) Converter() *conversion.Converter</a></li>
|
|
<li>
|
|
<a href="#Scheme.Default">func (s *Scheme) Default(src Object)</a></li>
|
|
<li>
|
|
<a href="#Scheme.IsGroupRegistered">func (s *Scheme) IsGroupRegistered(group string) bool</a></li>
|
|
<li>
|
|
<a href="#Scheme.IsUnversioned">func (s *Scheme) IsUnversioned(obj Object) (bool, bool)</a></li>
|
|
<li>
|
|
<a href="#Scheme.IsVersionRegistered">func (s *Scheme) IsVersionRegistered(version schema.GroupVersion) bool</a></li>
|
|
<li>
|
|
<a href="#Scheme.KnownTypes">func (s *Scheme) KnownTypes(gv schema.GroupVersion) map[string]reflect.Type</a></li>
|
|
<li>
|
|
<a href="#Scheme.Name">func (s *Scheme) Name() string</a></li>
|
|
<li>
|
|
<a href="#Scheme.New">func (s *Scheme) New(kind schema.GroupVersionKind) (Object, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.ObjectKinds">func (s *Scheme) ObjectKinds(obj Object) ([]schema.GroupVersionKind, bool, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.OpenAPIModelName">func (in Scheme) OpenAPIModelName() string</a></li>
|
|
<li>
|
|
<a href="#Scheme.PreferredVersionAllGroups">func (s *Scheme) PreferredVersionAllGroups() []schema.GroupVersion</a></li>
|
|
<li>
|
|
<a href="#Scheme.PrioritizedVersionsAllGroups">func (s *Scheme) PrioritizedVersionsAllGroups() []schema.GroupVersion</a></li>
|
|
<li>
|
|
<a href="#Scheme.PrioritizedVersionsForGroup">func (s *Scheme) PrioritizedVersionsForGroup(group string) []schema.GroupVersion</a></li>
|
|
<li>
|
|
<a href="#Scheme.Recognizes">func (s *Scheme) Recognizes(gvk schema.GroupVersionKind) bool</a></li>
|
|
<li>
|
|
<a href="#Scheme.SetVersionPriority">func (s *Scheme) SetVersionPriority(versions ...schema.GroupVersion) error</a></li>
|
|
<li>
|
|
<a href="#Scheme.ToOpenAPIDefinitionName">func (s *Scheme) ToOpenAPIDefinitionName(groupVersionKind schema.GroupVersionKind) (string, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.UnsafeConvertToVersion">func (s *Scheme) UnsafeConvertToVersion(in Object, target GroupVersioner) (Object, error)</a></li>
|
|
<li>
|
|
<a href="#Scheme.Validate">func (s *Scheme) Validate(ctx context.Context, options []string, object Object, subresources ...string) field.ErrorList</a></li>
|
|
<li>
|
|
<a href="#Scheme.ValidateUpdate">func (s *Scheme) ValidateUpdate(ctx context.Context, options []string, object, oldObject Object, ...) field.ErrorList</a></li>
|
|
<li>
|
|
<a href="#Scheme.VersionsForGroupKind">func (s *Scheme) VersionsForGroupKind(gk schema.GroupKind) []schema.GroupVersion</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#SchemeBuilder">type SchemeBuilder</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewSchemeBuilder">func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder</a></li>
|
|
</ul></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#SchemeBuilder.AddToScheme">func (sb *SchemeBuilder) AddToScheme(s *Scheme) error</a></li>
|
|
<li>
|
|
<a href="#SchemeBuilder.Register">func (sb *SchemeBuilder) Register(funcs ...func(*Scheme) error)</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Serializer">type Serializer</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewBase64Serializer">func NewBase64Serializer(e Encoder, d Decoder) Serializer</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#SerializerInfo">type SerializerInfo</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#SerializerInfoForMediaType">func SerializerInfoForMediaType(types []SerializerInfo, mediaType string) (SerializerInfo, bool)</a></li>
|
|
</ul></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#SerializerInfo.OpenAPIModelName">func (in SerializerInfo) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#SimpleAllocator">type SimpleAllocator</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#SimpleAllocator.Allocate">func (sa *SimpleAllocator) Allocate(n uint64) []byte</a></li>
|
|
<li>
|
|
<a href="#SimpleAllocator.OpenAPIModelName">func (in SimpleAllocator) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Splice">type Splice</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewSpliceBuffer">func NewSpliceBuffer() Splice</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#StorageSerializer">type StorageSerializer</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#StreamSerializerInfo">type StreamSerializerInfo</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#StreamSerializerInfo.OpenAPIModelName">func (in StreamSerializerInfo) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#TypeMeta">type TypeMeta</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#TypeMeta.GetObjectKind">func (obj *TypeMeta) GetObjectKind() schema.ObjectKind</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.GroupVersionKind">func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.Marshal">func (m *TypeMeta) Marshal() (dAtA []byte, err error)</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.MarshalTo">func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.MarshalToSizedBuffer">func (m *TypeMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.OpenAPIModelName">func (in TypeMeta) OpenAPIModelName() string</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.Reset">func (m *TypeMeta) Reset()</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.SetGroupVersionKind">func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.Size">func (m *TypeMeta) Size() (n int)</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.String">func (this *TypeMeta) String() string</a></li>
|
|
<li>
|
|
<a href="#TypeMeta.Unmarshal">func (m *TypeMeta) Unmarshal(dAtA []byte) error</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Unknown">type Unknown</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#Unknown.DeepCopy">func (in *Unknown) DeepCopy() *Unknown</a></li>
|
|
<li>
|
|
<a href="#Unknown.DeepCopyInto">func (in *Unknown) DeepCopyInto(out *Unknown)</a></li>
|
|
<li>
|
|
<a href="#Unknown.DeepCopyObject">func (in *Unknown) DeepCopyObject() Object</a></li>
|
|
<li>
|
|
<a href="#Unknown.Marshal">func (m *Unknown) Marshal() (dAtA []byte, err error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.MarshalJSON">func (e Unknown) MarshalJSON() ([]byte, error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.MarshalTo">func (m *Unknown) MarshalTo(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.MarshalToSizedBuffer">func (m *Unknown) MarshalToSizedBuffer(dAtA []byte) (int, error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.MarshalToWriter">func (m *Unknown) MarshalToWriter(w io.Writer, rawSize int, writeRaw func(io.Writer) (int, error)) (int, error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.NestedMarshalTo">func (m *Unknown) NestedMarshalTo(data []byte, b ProtobufMarshaller, size uint64) (int, error)</a></li>
|
|
<li>
|
|
<a href="#Unknown.OpenAPIModelName">func (in Unknown) OpenAPIModelName() string</a></li>
|
|
<li>
|
|
<a href="#Unknown.Reset">func (m *Unknown) Reset()</a></li>
|
|
<li>
|
|
<a href="#Unknown.Size">func (m *Unknown) Size() (n int)</a></li>
|
|
<li>
|
|
<a href="#Unknown.String">func (this *Unknown) String() string</a></li>
|
|
<li>
|
|
<a href="#Unknown.Unmarshal">func (m *Unknown) Unmarshal(dAtA []byte) error</a></li>
|
|
<li>
|
|
<a href="#Unknown.UnmarshalJSON">func (e *Unknown) UnmarshalJSON(in []byte) error</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#Unstructured">type Unstructured</a></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#UnstructuredConverter">type UnstructuredConverter</a></li>
|
|
<li><ul class="Documentation-indexTypeFunctions">
|
|
<li>
|
|
<a href="#NewTestUnstructuredConverter">func NewTestUnstructuredConverter(comparison conversion.Equalities) UnstructuredConverter</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#WithVersionEncoder">type WithVersionEncoder</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#WithVersionEncoder.Encode">func (e WithVersionEncoder) Encode(obj Object, stream io.Writer) error</a></li>
|
|
<li>
|
|
<a href="#WithVersionEncoder.OpenAPIModelName">func (in WithVersionEncoder) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
<li class="Documentation-indexType">
|
|
<a href="#WithoutVersionDecoder">type WithoutVersionDecoder</a></li>
|
|
<li><ul class="Documentation-indexTypeMethods">
|
|
<li>
|
|
<a href="#WithoutVersionDecoder.Decode">func (d WithoutVersionDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error)</a></li>
|
|
<li>
|
|
<a href="#WithoutVersionDecoder.OpenAPIModelName">func (in WithoutVersionDecoder) OpenAPIModelName() string</a></li>
|
|
</ul></li>
|
|
</ul>
|
|
</section><h3 tabindex="-1" id="pkg-constants" class="Documentation-constantsHeader">Constants <a href="#pkg-constants" title="Go to Constants" aria-label="Go to Constants">¶</a></h3>
|
|
|
|
<section class="Documentation-constants">
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types.go#L45">View Source</a></span>
|
|
<pre>const (
|
|
<span id="ContentTypeJSON" data-kind="constant"> ContentTypeJSON <a href="/builtin#string">string</a> = "application/json"
|
|
</span><span id="ContentTypeYAML" data-kind="constant"> ContentTypeYAML <a href="/builtin#string">string</a> = "application/yaml"
|
|
</span><span id="ContentTypeProtobuf" data-kind="constant"> ContentTypeProtobuf <a href="/builtin#string">string</a> = "application/vnd.kubernetes.protobuf"
|
|
</span><span id="ContentTypeCBOR" data-kind="constant"> ContentTypeCBOR <a href="/builtin#string">string</a> = "application/cbor" <span class="comment">// <a href="https://rfc-editor.org/rfc/rfc8949.html">RFC 8949</a></span>
|
|
</span><span id="ContentTypeCBORSequence" data-kind="constant"> ContentTypeCBORSequence <a href="/builtin#string">string</a> = "application/cbor-seq" <span class="comment">// <a href="https://rfc-editor.org/rfc/rfc8742.html">RFC 8742</a></span>
|
|
</span>)</pre>
|
|
</div>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L26">View Source</a></span>
|
|
<pre>const (
|
|
<span id="APIVersionInternal" data-kind="constant"> <span class="comment">// APIVersionInternal may be used if you are registering a type that should not</span>
|
|
</span> <span class="comment">// be considered stable or serialized - it is a convention only and has no</span>
|
|
<span class="comment">// special behavior in this package.</span>
|
|
APIVersionInternal = "__internal"
|
|
)</pre>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<h3 tabindex="-1" id="pkg-variables" class="Documentation-variablesHeader">Variables <a href="#pkg-variables" title="Go to Variables" aria-label="Go to Variables">¶</a></h3>
|
|
|
|
<section class="Documentation-variables">
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L712">View Source</a></span>
|
|
<pre>var (
|
|
<span id="ErrInvalidLengthGenerated" data-kind="variable"> ErrInvalidLengthGenerated = <a href="/fmt">fmt</a>.<a href="/fmt#Errorf">Errorf</a>("proto: negative length found during unmarshaling")
|
|
</span><span id="ErrIntOverflowGenerated" data-kind="variable"> ErrIntOverflowGenerated = <a href="/fmt">fmt</a>.<a href="/fmt#Errorf">Errorf</a>("proto: integer overflow")
|
|
</span><span id="ErrUnexpectedEndOfGroupGenerated" data-kind="variable"> ErrUnexpectedEndOfGroupGenerated = <a href="/fmt">fmt</a>.<a href="/fmt#Errorf">Errorf</a>("proto: unexpected end of group")
|
|
</span>)</pre>
|
|
</div>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go#L35">View Source</a></span>
|
|
<pre><span id="AllocatorPool" data-kind="variable">var AllocatorPool = <a href="/sync">sync</a>.<a href="/sync#Pool">Pool</a>{
|
|
</span> New: func() interface{} {
|
|
return &<a href="#Allocator">Allocator</a>{}
|
|
},
|
|
}</pre>
|
|
</div>
|
|
<p>AllocatorPool simply stores Allocator objects to avoid additional memory allocations
|
|
by caching created but unused items for later reuse, relieving pressure on the garbage collector.
|
|
</p><p>Usage:
|
|
</p><pre>memoryAllocator := runtime.AllocatorPool.Get().(*runtime.Allocator)
|
|
defer runtime.AllocatorPool.Put(memoryAllocator)
|
|
</pre><p>A note for future:
|
|
</p><pre>consider introducing multiple pools for storing buffers of different sizes
|
|
perhaps this could allow us to be more efficient.
|
|
</pre>
|
|
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L207">View Source</a></span>
|
|
<pre><span id="DefaultFramer" data-kind="variable">var DefaultFramer = defaultFramer{}</span></pre>
|
|
</div>
|
|
<p>DefaultFramer is valid for any stream that can read objects serially without
|
|
any separation in the stream.
|
|
</p>
|
|
|
|
<div class="Documentation-declaration">
|
|
<span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L73">View Source</a></span>
|
|
<pre>var (
|
|
|
|
<span id="DefaultUnstructuredConverter" data-kind="variable"> <span class="comment">// DefaultUnstructuredConverter performs unstructured to Go typed object conversions.</span>
|
|
</span> DefaultUnstructuredConverter = &unstructuredConverter{
|
|
mismatchDetection: parseBool(<a href="/os">os</a>.<a href="/os#Getenv">Getenv</a>("KUBE_PATCH_CONVERSION_DETECTOR")),
|
|
comparison: <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#EqualitiesOrDie">EqualitiesOrDie</a>(
|
|
func(a, b <a href="/time">time</a>.<a href="/time#Time">Time</a>) <a href="/builtin#bool">bool</a> {
|
|
return a.UTC() == b.UTC()
|
|
},
|
|
),
|
|
}
|
|
)</pre>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<h3 tabindex="-1" id="pkg-functions" class="Documentation-functionsHeader">Functions <a href="#pkg-functions" title="Go to Functions" aria-label="Go to Functions">¶</a></h3>
|
|
|
|
<section class="Documentation-functions"><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="AsStrictDecodingError" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L166">AsStrictDecodingError</a> <a class="Documentation-idLink" href="#AsStrictDecodingError" title="Go to AsStrictDecodingError" aria-label="Go to AsStrictDecodingError">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.23.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func AsStrictDecodingError(err <a href="/builtin#error">error</a>) (*strictDecodingError, <a href="/builtin#bool">bool</a>)</pre>
|
|
</div>
|
|
<p>AsStrictDecodingError returns a strict decoding error
|
|
containing all the strictness violations.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="CheckCodec" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec_check.go#L31">CheckCodec</a> <a class="Documentation-idLink" href="#CheckCodec" title="Go to CheckCodec" aria-label="Go to CheckCodec">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func CheckCodec(c <a href="#Codec">Codec</a>, internalType <a href="#Object">Object</a>, externalTypes ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>CheckCodec makes sure that the codec can encode objects like internalType,
|
|
decode all of the external types listed, and also decode them into the given
|
|
object. (Will modify internalObject.) (Assumes JSON serialization.)
|
|
TODO: verify that the correct external version is chosen on encode...
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_Pointer_bool" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L101">Convert_Slice_string_To_Pointer_bool</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_Pointer_bool" title="Go to Convert_Slice_string_To_Pointer_bool" aria-label="Go to Convert_Slice_string_To_Pointer_bool">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_Pointer_bool(in *[]<a href="/builtin#string">string</a>, out **<a href="/builtin#bool">bool</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>Convert_Slice_string_To_bool will convert a string parameter to boolean.
|
|
Only the absence of a value (i.e. zero-length slice), a value of "false", or a
|
|
value of "0" resolve to false.
|
|
Any other value (including empty string) resolves to true.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_Pointer_int64" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L161">Convert_Slice_string_To_Pointer_int64</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_Pointer_int64" title="Go to Convert_Slice_string_To_Pointer_int64" aria-label="Go to Convert_Slice_string_To_Pointer_int64">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_Pointer_int64(in *[]<a href="/builtin#string">string</a>, out **<a href="/builtin#int64">int64</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_bool" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L83">Convert_Slice_string_To_bool</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_bool" title="Go to Convert_Slice_string_To_bool" aria-label="Go to Convert_Slice_string_To_bool">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_bool(in *[]<a href="/builtin#string">string</a>, out *<a href="/builtin#bool">bool</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>Convert_Slice_string_To_bool will convert a string parameter to boolean.
|
|
Only the absence of a value (i.e. zero-length slice), a value of "false", or a
|
|
value of "0" resolve to false.
|
|
Any other value (including empty string) resolves to true.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_int" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L65">Convert_Slice_string_To_int</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_int" title="Go to Convert_Slice_string_To_int" aria-label="Go to Convert_Slice_string_To_int">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_int(in *[]<a href="/builtin#string">string</a>, out *<a href="/builtin#int">int</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_int64" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L135">Convert_Slice_string_To_int64</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_int64" title="Go to Convert_Slice_string_To_int64" aria-label="Go to Convert_Slice_string_To_int64">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_int64(in *[]<a href="/builtin#string">string</a>, out *<a href="/builtin#int64">int64</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_Slice_string_To_string" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L56">Convert_Slice_string_To_string</a> <a class="Documentation-idLink" href="#Convert_Slice_string_To_string" title="Go to Convert_Slice_string_To_string" aria-label="Go to Convert_Slice_string_To_string">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_Slice_string_To_string(in *[]<a href="/builtin#string">string</a>, out *<a href="/builtin#string">string</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_runtime_Object_To_runtime_RawExtension" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L97">Convert_runtime_Object_To_runtime_RawExtension</a> <a class="Documentation-idLink" href="#Convert_runtime_Object_To_runtime_RawExtension" title="Go to Convert_runtime_Object_To_runtime_RawExtension" aria-label="Go to Convert_runtime_Object_To_runtime_RawExtension">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_runtime_Object_To_runtime_RawExtension(in *<a href="#Object">Object</a>, out *<a href="#RawExtension">RawExtension</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_runtime_RawExtension_To_runtime_Object" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L118">Convert_runtime_RawExtension_To_runtime_Object</a> <a class="Documentation-idLink" href="#Convert_runtime_RawExtension_To_runtime_Object" title="Go to Convert_runtime_RawExtension_To_runtime_Object" aria-label="Go to Convert_runtime_RawExtension_To_runtime_Object">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_runtime_RawExtension_To_runtime_Object(in *<a href="#RawExtension">RawExtension</a>, out *<a href="#Object">Object</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_string_To_Pointer_int64" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L148">Convert_string_To_Pointer_int64</a> <a class="Documentation-idLink" href="#Convert_string_To_Pointer_int64" title="Go to Convert_string_To_Pointer_int64" aria-label="Go to Convert_string_To_Pointer_int64">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_string_To_Pointer_int64(in *<a href="/builtin#string">string</a>, out **<a href="/builtin#int64">int64</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Convert_string_To_int64" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L122">Convert_string_To_int64</a> <a class="Documentation-idLink" href="#Convert_string_To_int64" title="Go to Convert_string_To_int64" aria-label="Go to Convert_string_To_int64">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Convert_string_To_int64(in *<a href="/builtin#string">string</a>, out *<a href="/builtin#int64">int64</a>, s <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Scope">Scope</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="DecodeInto" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L62">DecodeInto</a> <a class="Documentation-idLink" href="#DecodeInto" title="Go to DecodeInto" aria-label="Go to DecodeInto">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func DecodeInto(d <a href="#Decoder">Decoder</a>, data []<a href="/builtin#byte">byte</a>, into <a href="#Object">Object</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>DecodeInto performs a Decode into the provided object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="DecodeList" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L155">DecodeList</a> <a class="Documentation-idLink" href="#DecodeList" title="Go to DecodeList" aria-label="Go to DecodeList">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func DecodeList(objects []<a href="#Object">Object</a>, decoders ...<a href="#Decoder">Decoder</a>) []<a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>DecodeList alters the list in place, attempting to decode any objects found in
|
|
the list that have the Unknown type. Any errors that occur are returned
|
|
after the entire list is processed. Decoders are tried in order.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="DeepCopyJSON" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L614">DeepCopyJSON</a> <a class="Documentation-idLink" href="#DeepCopyJSON" title="Go to DeepCopyJSON" aria-label="Go to DeepCopyJSON">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func DeepCopyJSON(x map[<a href="/builtin#string">string</a>]interface{}) map[<a href="/builtin#string">string</a>]interface{}</pre>
|
|
</div>
|
|
<p>DeepCopyJSON deep copies the passed value, assuming it is a valid JSON representation i.e. only contains
|
|
types produced by json.Unmarshal() and also int64.
|
|
bool, int64, float64, string, []interface{}, map[string]interface{}, json.Number and nil
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="DeepCopyJSONValue" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L621">DeepCopyJSONValue</a> <a class="Documentation-idLink" href="#DeepCopyJSONValue" title="Go to DeepCopyJSONValue" aria-label="Go to DeepCopyJSONValue">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func DeepCopyJSONValue(x interface{}) interface{}</pre>
|
|
</div>
|
|
<p>DeepCopyJSONValue deep copies the passed value, assuming it is a valid JSON representation i.e. only contains
|
|
types produced by json.Unmarshal() and also int64.
|
|
bool, int64, float64, string, []interface{}, map[string]interface{}, json.Number and nil
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="DefaultMetaV1FieldSelectorConversion" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L33">DefaultMetaV1FieldSelectorConversion</a> <a class="Documentation-idLink" href="#DefaultMetaV1FieldSelectorConversion" title="Go to DefaultMetaV1FieldSelectorConversion" aria-label="Go to DefaultMetaV1FieldSelectorConversion">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func DefaultMetaV1FieldSelectorConversion(label, value <a href="/builtin#string">string</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>DefaultMetaV1FieldSelectorConversion auto-accepts metav1 values for name and namespace.
|
|
A cluster scoped resource specifying namespace empty works fine and specifying a particular
|
|
namespace will return no results, as expected.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Encode" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L47">Encode</a> <a class="Documentation-idLink" href="#Encode" title="Go to Encode" aria-label="Go to Encode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Encode(e <a href="#Encoder">Encoder</a>, obj <a href="#Object">Object</a>) ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>Encode is a convenience wrapper for encoding to a []byte from an Encoder
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="EncodeList" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L116">EncodeList</a> <a class="Documentation-idLink" href="#EncodeList" title="Go to EncodeList" aria-label="Go to EncodeList">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func EncodeList(e <a href="#Encoder">Encoder</a>, objects []<a href="#Object">Object</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>EncodeList ensures that each object in an array is converted to a Unknown{} in serialized form.
|
|
TODO: accept a content type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="EncodeOrDie" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L74">EncodeOrDie</a> <a class="Documentation-idLink" href="#EncodeOrDie" title="Go to EncodeOrDie" aria-label="Go to EncodeOrDie">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func EncodeOrDie(e <a href="#Encoder">Encoder</a>, obj <a href="#Object">Object</a>) <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>EncodeOrDie is a version of Encode which will panic instead of returning an error. For tests.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Field" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L70">Field</a> <a class="Documentation-idLink" href="#Field" title="Go to Field" aria-label="Go to Field">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Field(v <a href="/reflect">reflect</a>.<a href="/reflect#Value">Value</a>, fieldName <a href="/builtin#string">string</a>, dest interface{}) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>Field puts the value of fieldName, which must be a member of v, into dest,
|
|
which must be a variable to which this field's value can be assigned.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="FieldPtr" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L93">FieldPtr</a> <a class="Documentation-idLink" href="#FieldPtr" title="Go to FieldPtr" aria-label="Go to FieldPtr">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func FieldPtr(v <a href="/reflect">reflect</a>.<a href="/reflect#Value">Value</a>, fieldName <a href="/builtin#string">string</a>, dest interface{}) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>FieldPtr puts the address of fieldName, which must be a member of v,
|
|
into dest, which must be an address of a variable to which this field's
|
|
address can be assigned.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="IsMissingKind" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L95">IsMissingKind</a> <a class="Documentation-idLink" href="#IsMissingKind" title="Go to IsMissingKind" aria-label="Go to IsMissingKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func IsMissingKind(err <a href="/builtin#error">error</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsMissingKind returns true if the error indicates that the provided object
|
|
is missing a 'Kind' field.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="IsMissingVersion" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L117">IsMissingVersion</a> <a class="Documentation-idLink" href="#IsMissingVersion" title="Go to IsMissingVersion" aria-label="Go to IsMissingVersion">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func IsMissingVersion(err <a href="/builtin#error">error</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsMissingVersion returns true if the error indicates that the provided object
|
|
is missing a 'Version' field.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="IsNotRegisteredError" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L73">IsNotRegisteredError</a> <a class="Documentation-idLink" href="#IsNotRegisteredError" title="Go to IsNotRegisteredError" aria-label="Go to IsNotRegisteredError">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func IsNotRegisteredError(err <a href="/builtin#error">error</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsNotRegisteredError returns true if the error indicates the provided
|
|
object or input data is not registered.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="IsStrictDecodingError" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L156">IsStrictDecodingError</a> <a class="Documentation-idLink" href="#IsStrictDecodingError" title="Go to IsStrictDecodingError" aria-label="Go to IsStrictDecodingError">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func IsStrictDecodingError(err <a href="/builtin#error">error</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsStrictDecodingError returns true if the error indicates that the provided object
|
|
strictness violations.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="JSONKeyMapper" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L46">JSONKeyMapper</a> <a class="Documentation-idLink" href="#JSONKeyMapper" title="Go to JSONKeyMapper" aria-label="Go to JSONKeyMapper">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func JSONKeyMapper(key <a href="/builtin#string">string</a>, sourceTag, destTag <a href="/reflect">reflect</a>.<a href="/reflect#StructTag">StructTag</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#string">string</a>)</pre>
|
|
</div>
|
|
<p>JSONKeyMapper uses the struct tags on a conversion to determine the key value for
|
|
the other side. Use when mapping from a map[string]* to a struct or vice versa.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewMissingKindErr" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L85">NewMissingKindErr</a> <a class="Documentation-idLink" href="#NewMissingKindErr" title="Go to NewMissingKindErr" aria-label="Go to NewMissingKindErr">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewMissingKindErr(data <a href="/builtin#string">string</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewMissingVersionErr" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L107">NewMissingVersionErr</a> <a class="Documentation-idLink" href="#NewMissingVersionErr" title="Go to NewMissingVersionErr" aria-label="Go to NewMissingVersionErr">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewMissingVersionErr(data <a href="/builtin#string">string</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewNotRegisteredErrForKind" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L34">NewNotRegisteredErrForKind</a> <a class="Documentation-idLink" href="#NewNotRegisteredErrForKind" title="Go to NewNotRegisteredErrForKind" aria-label="Go to NewNotRegisteredErrForKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewNotRegisteredErrForKind(schemeName <a href="/builtin#string">string</a>, gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewNotRegisteredErrForTarget" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L42">NewNotRegisteredErrForTarget</a> <a class="Documentation-idLink" href="#NewNotRegisteredErrForTarget" title="Go to NewNotRegisteredErrForTarget" aria-label="Go to NewNotRegisteredErrForTarget">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewNotRegisteredErrForTarget(schemeName <a href="/builtin#string">string</a>, t <a href="/reflect">reflect</a>.<a href="/reflect#Type">Type</a>, target <a href="#GroupVersioner">GroupVersioner</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewNotRegisteredErrForType" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L38">NewNotRegisteredErrForType</a> <a class="Documentation-idLink" href="#NewNotRegisteredErrForType" title="Go to NewNotRegisteredErrForType" aria-label="Go to NewNotRegisteredErrForType">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewNotRegisteredErrForType(schemeName <a href="/builtin#string">string</a>, t <a href="/reflect">reflect</a>.<a href="/reflect#Type">Type</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewNotRegisteredGVKErrForTarget" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L46">NewNotRegisteredGVKErrForTarget</a> <a class="Documentation-idLink" href="#NewNotRegisteredGVKErrForTarget" title="Go to NewNotRegisteredGVKErrForTarget" aria-label="Go to NewNotRegisteredGVKErrForTarget">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewNotRegisteredGVKErrForTarget(schemeName <a href="/builtin#string">string</a>, gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, target <a href="#GroupVersioner">GroupVersioner</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewStrictDecodingError" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go#L132">NewStrictDecodingError</a> <a class="Documentation-idLink" href="#NewStrictDecodingError" title="Go to NewStrictDecodingError" aria-label="Go to NewStrictDecodingError">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewStrictDecodingError(errors []<a href="/builtin#error">error</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>NewStrictDecodingError creates a new strictDecodingError object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewTestUnstructuredConverterWithValidation" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L120">NewTestUnstructuredConverterWithValidation</a> <a class="Documentation-idLink" href="#NewTestUnstructuredConverterWithValidation" title="Go to NewTestUnstructuredConverterWithValidation" aria-label="Go to NewTestUnstructuredConverterWithValidation">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.23.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewTestUnstructuredConverterWithValidation(comparison <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Equalities">Equalities</a>) *unstructuredConverter</pre>
|
|
</div>
|
|
<p>NewTestUnstrucutredConverterWithValidation allows for access to
|
|
FromUnstructuredWithValidation from within tests.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RegisterEmbeddedConversions" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L137">RegisterEmbeddedConversions</a> <a class="Documentation-idLink" href="#RegisterEmbeddedConversions" title="Go to RegisterEmbeddedConversions" aria-label="Go to RegisterEmbeddedConversions">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.18.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func RegisterEmbeddedConversions(s *<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RegisterStringConversions" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go#L174">RegisterStringConversions</a> <a class="Documentation-idLink" href="#RegisterStringConversions" title="Go to RegisterStringConversions" aria-label="Go to RegisterStringConversions">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.18.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func RegisterStringConversions(s *<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SetField" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L51">SetField</a> <a class="Documentation-idLink" href="#SetField" title="Go to SetField" aria-label="Go to SetField">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func SetField(src interface{}, v <a href="/reflect">reflect</a>.<a href="/reflect#Value">Value</a>, fieldName <a href="/builtin#string">string</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>SetField puts the value of src, into fieldName, which must be a member of v.
|
|
The value of src must be assignable to the field.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SetZeroValue" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L196">SetZeroValue</a> <a class="Documentation-idLink" href="#SetZeroValue" title="Go to SetZeroValue" aria-label="Go to SetZeroValue">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func SetZeroValue(objPtr <a href="#Object">Object</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>SetZeroValue would set the object of objPtr to zero value of its type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="VerifySwaggerDocsExist" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go#L234">VerifySwaggerDocsExist</a> <a class="Documentation-idLink" href="#VerifySwaggerDocsExist" title="Go to VerifySwaggerDocsExist" aria-label="Go to VerifySwaggerDocsExist">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func VerifySwaggerDocsExist(kubeTypes []<a href="#KubeTypes">KubeTypes</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that
|
|
are missing of documentation.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-function">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WriteSwaggerDocFunc" data-kind="function" class="Documentation-functionHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go#L199">WriteSwaggerDocFunc</a> <a class="Documentation-idLink" href="#WriteSwaggerDocFunc" title="Go to WriteSwaggerDocFunc" aria-label="Go to WriteSwaggerDocFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func WriteSwaggerDocFunc(kubeTypes []<a href="#KubeTypes">KubeTypes</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>WriteSwaggerDocFunc writes a declaration of a function as a string. This function is used in
|
|
Swagger as a documentation source for structs and theirs fields
|
|
</p>
|
|
|
|
|
|
|
|
</div></section>
|
|
|
|
<h3 tabindex="-1" id="pkg-types" class="Documentation-typesHeader">Types <a href="#pkg-types" title="Go to Types" aria-label="Go to Types">¶</a></h3>
|
|
|
|
<section class="Documentation-types"><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Allocator" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go#L45">Allocator</a> <a class="Documentation-idLink" href="#Allocator" title="Go to Allocator" aria-label="Go to Allocator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Allocator struct {
|
|
<span class="comment">// contains filtered or unexported fields</span>
|
|
}</pre>
|
|
</div>
|
|
<p>Allocator knows how to allocate memory
|
|
It exists to make the cost of object serialization cheaper.
|
|
In some cases, it allows for allocating memory only once and then reusing it.
|
|
This approach puts less load on GC and leads to less fragmented memory in general.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Allocator.Allocate" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Allocator) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go#L56">Allocate</a> <a class="Documentation-idLink" href="#Allocator.Allocate" title="Go to Allocator.Allocate" aria-label="Go to Allocator.Allocate">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (a *<a href="#Allocator">Allocator</a>) Allocate(n <a href="/builtin#uint64">uint64</a>) []<a href="/builtin#byte">byte</a></pre>
|
|
</div>
|
|
<p>Allocate reserves memory for n bytes only if the underlying array doesn't have enough capacity
|
|
otherwise it returns previously allocated block of memory.
|
|
</p><p>Note that the returned array is not zeroed, it is the caller's
|
|
responsibility to clean the memory if needed.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Allocator.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (Allocator) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L25">OpenAPIModelName</a> <a class="Documentation-idLink" href="#Allocator.OpenAPIModelName" title="Go to Allocator.OpenAPIModelName" aria-label="Go to Allocator.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#Allocator">Allocator</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ApplyConfiguration" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L390">ApplyConfiguration</a> <a class="Documentation-idLink" href="#ApplyConfiguration" title="Go to ApplyConfiguration" aria-label="Go to ApplyConfiguration">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.34.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ApplyConfiguration interface {
|
|
<span id="ApplyConfiguration.IsApplyConfiguration" data-kind="method"> <span class="comment">// IsApplyConfiguration is implemented if the object is the root of an apply configuration.</span>
|
|
</span> IsApplyConfiguration()
|
|
}</pre>
|
|
</div>
|
|
<p>ApplyConfiguration is an interface that root apply configuration types implement.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="CacheableObject" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L344">CacheableObject</a> <a class="Documentation-idLink" href="#CacheableObject" title="Go to CacheableObject" aria-label="Go to CacheableObject">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type CacheableObject interface {
|
|
<span id="CacheableObject.CacheEncode" data-kind="method"> <span class="comment">// CacheEncode writes an object to a stream. The <encode> function will</span>
|
|
</span> <span class="comment">// be used in case of cache miss. The <encode> function takes ownership</span>
|
|
<span class="comment">// of the object.</span>
|
|
<span class="comment">// If CacheableObject is a wrapper, then deep-copy of the wrapped object</span>
|
|
<span class="comment">// should be passed to <encode> function.</span>
|
|
<span class="comment">// CacheEncode assumes that for two different calls with the same <id>,</span>
|
|
<span class="comment">// <encode> function will also be the same.</span>
|
|
CacheEncode(id <a href="#Identifier">Identifier</a>, encode func(<a href="#Object">Object</a>, <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a>
|
|
<span id="CacheableObject.GetObject" data-kind="method"> <span class="comment">// GetObject returns a deep-copy of an object to be encoded - the caller of</span>
|
|
</span> <span class="comment">// GetObject() is the owner of returned object. The reason for making a copy</span>
|
|
<span class="comment">// is to avoid bugs, where caller modifies the object and forgets to copy it,</span>
|
|
<span class="comment">// thus modifying the object for everyone.</span>
|
|
<span class="comment">// The object returned by GetObject should be the same as the one that is supposed</span>
|
|
<span class="comment">// to be passed to <encode> function in CacheEncode method.</span>
|
|
<span class="comment">// If CacheableObject is a wrapper, the copy of wrapped object should be returned.</span>
|
|
GetObject() <a href="#Object">Object</a>
|
|
}</pre>
|
|
</div>
|
|
<p>CacheableObject allows an object to cache its different serializations
|
|
to avoid performing the same serialization multiple times.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ClientNegotiator" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L195">ClientNegotiator</a> <a class="Documentation-idLink" href="#ClientNegotiator" title="Go to ClientNegotiator" aria-label="Go to ClientNegotiator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ClientNegotiator interface {
|
|
<span id="ClientNegotiator.Encoder" data-kind="method"> <span class="comment">// Encoder returns the appropriate encoder for the provided contentType (e.g. application/json)</span>
|
|
</span> <span class="comment">// and any optional mediaType parameters (e.g. pretty=1), or an error. If no serializer is found</span>
|
|
<span class="comment">// a NegotiateError will be returned. The current client implementations consider params to be</span>
|
|
<span class="comment">// optional modifiers to the contentType and will ignore unrecognized parameters.</span>
|
|
Encoder(contentType <a href="/builtin#string">string</a>, params map[<a href="/builtin#string">string</a>]<a href="/builtin#string">string</a>) (<a href="#Encoder">Encoder</a>, <a href="/builtin#error">error</a>)
|
|
<span id="ClientNegotiator.Decoder" data-kind="method"> <span class="comment">// Decoder returns the appropriate decoder for the provided contentType (e.g. application/json)</span>
|
|
</span> <span class="comment">// and any optional mediaType parameters (e.g. pretty=1), or an error. If no serializer is found</span>
|
|
<span class="comment">// a NegotiateError will be returned. The current client implementations consider params to be</span>
|
|
<span class="comment">// optional modifiers to the contentType and will ignore unrecognized parameters.</span>
|
|
Decoder(contentType <a href="/builtin#string">string</a>, params map[<a href="/builtin#string">string</a>]<a href="/builtin#string">string</a>) (<a href="#Decoder">Decoder</a>, <a href="/builtin#error">error</a>)
|
|
<span id="ClientNegotiator.StreamDecoder" data-kind="method"> <span class="comment">// StreamDecoder returns the appropriate stream decoder for the provided contentType (e.g.</span>
|
|
</span> <span class="comment">// application/json) and any optional mediaType parameters (e.g. pretty=1), or an error. If no</span>
|
|
<span class="comment">// serializer is found a NegotiateError will be returned. The Serializer and Framer will always</span>
|
|
<span class="comment">// be returned if a Decoder is returned. The current client implementations consider params to be</span>
|
|
<span class="comment">// optional modifiers to the contentType and will ignore unrecognized parameters.</span>
|
|
StreamDecoder(contentType <a href="/builtin#string">string</a>, params map[<a href="/builtin#string">string</a>]<a href="/builtin#string">string</a>) (<a href="#Decoder">Decoder</a>, <a href="#Serializer">Serializer</a>, <a href="#Framer">Framer</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>ClientNegotiator handles turning an HTTP content type into the appropriate encoder.
|
|
Use NewClientNegotiator or NewVersionedClientNegotiator to create this interface from
|
|
a NegotiatedSerializer.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewClientNegotiator" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/negotiate.go#L88">NewClientNegotiator</a> <a class="Documentation-idLink" href="#NewClientNegotiator" title="Go to NewClientNegotiator" aria-label="Go to NewClientNegotiator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewClientNegotiator(serializer <a href="#NegotiatedSerializer">NegotiatedSerializer</a>, gv <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) <a href="#ClientNegotiator">ClientNegotiator</a></pre>
|
|
</div>
|
|
<p>NewClientNegotiator will attempt to retrieve the appropriate encoder, decoder, or
|
|
stream decoder for a given content type. Does not perform any conversion, but will
|
|
encode the object to the desired group, version, and kind. Use when creating a client.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Codec" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L125">Codec</a> <a class="Documentation-idLink" href="#Codec" title="Go to Codec" aria-label="Go to Codec">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Codec <a href="#Serializer">Serializer</a></pre>
|
|
</div>
|
|
<p>Codec is a Serializer that deals with the details of versioning objects. It offers the same
|
|
interface as Serializer, so this is a marker to consumers that care about the version of the objects
|
|
they receive.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewCodec" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L42">NewCodec</a> <a class="Documentation-idLink" href="#NewCodec" title="Go to NewCodec" aria-label="Go to NewCodec">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewCodec(e <a href="#Encoder">Encoder</a>, d <a href="#Decoder">Decoder</a>) <a href="#Codec">Codec</a></pre>
|
|
</div>
|
|
<p>NewCodec creates a Codec from an Encoder and Decoder.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Decoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L104">Decoder</a> <a class="Documentation-idLink" href="#Decoder" title="Go to Decoder" aria-label="Go to Decoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Decoder interface {
|
|
<span id="Decoder.Decode" data-kind="method"> <span class="comment">// Decode attempts to deserialize the provided data using either the innate typing of the scheme or the</span>
|
|
</span> <span class="comment">// default kind, group, and version provided. It returns a decoded object as well as the kind, group, and</span>
|
|
<span class="comment">// version from the serialized data, or an error. If into is non-nil, it will be used as the target type</span>
|
|
<span class="comment">// and implementations may choose to use it rather than reallocating an object. However, the object is not</span>
|
|
<span class="comment">// guaranteed to be populated. The returned object is not guaranteed to match into. If defaults are</span>
|
|
<span class="comment">// provided, they are applied to the data by default. If no defaults or partial defaults are provided, the</span>
|
|
<span class="comment">// type of the into may be used to guide conversion decisions.</span>
|
|
Decode(data []<a href="/builtin#byte">byte</a>, defaults *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, into <a href="#Object">Object</a>) (<a href="#Object">Object</a>, *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>Decoder attempts to load an object from data.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Encoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L52">Encoder</a> <a class="Documentation-idLink" href="#Encoder" title="Go to Encoder" aria-label="Go to Encoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Encoder interface {
|
|
<span id="Encoder.Encode" data-kind="method"> <span class="comment">// Encode writes an object to a stream. Implementations may return errors if the versions are</span>
|
|
</span> <span class="comment">// incompatible, or if no conversion is defined.</span>
|
|
Encode(obj <a href="#Object">Object</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a>
|
|
<span id="Encoder.Identifier" data-kind="method"> <span class="comment">// Identifier returns an identifier of the encoder.</span>
|
|
</span> <span class="comment">// Identifiers of two different encoders should be equal if and only if for every input</span>
|
|
<span class="comment">// object it will be encoded to the same representation by both of them.</span>
|
|
<span class="comment">//</span>
|
|
<span class="comment">// Identifier is intended for use with CacheableObject#CacheEncode method. In order to</span>
|
|
<span class="comment">// correctly handle CacheableObject, Encode() method should look similar to below, where</span>
|
|
<span class="comment">// doEncode() is the encoding logic of implemented encoder:</span>
|
|
<span class="comment">// func (e *MyEncoder) Encode(obj Object, w io.Writer) error {</span>
|
|
<span class="comment">// if co, ok := obj.(CacheableObject); ok {</span>
|
|
<span class="comment">// return co.CacheEncode(e.Identifier(), e.doEncode, w)</span>
|
|
<span class="comment">// }</span>
|
|
<span class="comment">// return e.doEncode(obj, w)</span>
|
|
<span class="comment">// }</span>
|
|
Identifier() <a href="#Identifier">Identifier</a>
|
|
}</pre>
|
|
</div>
|
|
<p>Encoder writes objects to a serialized form
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewEncoderWithAllocator" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L271">NewEncoderWithAllocator</a> <a class="Documentation-idLink" href="#NewEncoderWithAllocator" title="Go to NewEncoderWithAllocator" aria-label="Go to NewEncoderWithAllocator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.29.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewEncoderWithAllocator(e <a href="#EncoderWithAllocator">EncoderWithAllocator</a>, a <a href="#MemoryAllocator">MemoryAllocator</a>) <a href="#Encoder">Encoder</a></pre>
|
|
</div>
|
|
<p>NewEncoderWithAllocator returns a new encoder
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="UseNondeterministicEncoding" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L299">UseNondeterministicEncoding</a> <a class="Documentation-idLink" href="#UseNondeterministicEncoding" title="Go to UseNondeterministicEncoding" aria-label="Go to UseNondeterministicEncoding">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.32.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func UseNondeterministicEncoding(encoder <a href="#Encoder">Encoder</a>) <a href="#Encoder">Encoder</a></pre>
|
|
</div>
|
|
<p>UseNondeterministicEncoding returns an Encoder that encodes objects using the provided Encoder's
|
|
EncodeNondeterministic method if it implements NondeterministicEncoder, otherwise it returns the
|
|
provided Encoder as-is.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="EncoderWithAllocator" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L96">EncoderWithAllocator</a> <a class="Documentation-idLink" href="#EncoderWithAllocator" title="Go to EncoderWithAllocator" aria-label="Go to EncoderWithAllocator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type EncoderWithAllocator interface {
|
|
<a href="#Encoder">Encoder</a>
|
|
<span id="EncoderWithAllocator.EncodeWithAllocator" data-kind="method"> <span class="comment">// EncodeWithAllocator writes an object to a stream as Encode does.</span>
|
|
</span> <span class="comment">// In addition, it allows for providing a memory allocator for efficient memory usage during object serialization</span>
|
|
EncodeWithAllocator(obj <a href="#Object">Object</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>, memAlloc <a href="#MemoryAllocator">MemoryAllocator</a>) <a href="/builtin#error">error</a>
|
|
}</pre>
|
|
</div>
|
|
<p>EncoderWithAllocator serializes objects in a way that allows callers to manage any additional memory allocations.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="EquivalentResourceMapper" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L300">EquivalentResourceMapper</a> <a class="Documentation-idLink" href="#EquivalentResourceMapper" title="Go to EquivalentResourceMapper" aria-label="Go to EquivalentResourceMapper">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type EquivalentResourceMapper interface {
|
|
<span id="EquivalentResourceMapper.EquivalentResourcesFor" data-kind="method"> <span class="comment">// EquivalentResourcesFor returns a list of resources that address the same underlying data as resource.</span>
|
|
</span> <span class="comment">// If subresource is specified, only equivalent resources which also have the same subresource are included.</span>
|
|
<span class="comment">// The specified resource can be included in the returned list.</span>
|
|
EquivalentResourcesFor(resource <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionResource">GroupVersionResource</a>, subresource <a href="/builtin#string">string</a>) []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionResource">GroupVersionResource</a>
|
|
<span id="EquivalentResourceMapper.KindFor" data-kind="method"> <span class="comment">// KindFor returns the kind expected by the specified resource[/subresource].</span>
|
|
</span> <span class="comment">// A zero value is returned if the kind is unknown.</span>
|
|
KindFor(resource <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionResource">GroupVersionResource</a>, subresource <a href="/builtin#string">string</a>) <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>
|
|
}</pre>
|
|
</div>
|
|
<p>EquivalentResourceMapper provides information about resources that address the same underlying data as a specified resource
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="EquivalentResourceRegistry" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L312">EquivalentResourceRegistry</a> <a class="Documentation-idLink" href="#EquivalentResourceRegistry" title="Go to EquivalentResourceRegistry" aria-label="Go to EquivalentResourceRegistry">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type EquivalentResourceRegistry interface {
|
|
<a href="#EquivalentResourceMapper">EquivalentResourceMapper</a>
|
|
<span id="EquivalentResourceRegistry.RegisterKindFor" data-kind="method"> <span class="comment">// RegisterKindFor registers the existence of the specified resource[/subresource] along with its expected kind.</span>
|
|
</span> RegisterKindFor(resource <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionResource">GroupVersionResource</a>, subresource <a href="/builtin#string">string</a>, kind <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>EquivalentResourceRegistry provides an EquivalentResourceMapper interface,
|
|
and allows registering known resource[/subresource] -> kind
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewEquivalentResourceRegistry" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/mapper.go#L44">NewEquivalentResourceRegistry</a> <a class="Documentation-idLink" href="#NewEquivalentResourceRegistry" title="Go to NewEquivalentResourceRegistry" aria-label="Go to NewEquivalentResourceRegistry">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewEquivalentResourceRegistry() <a href="#EquivalentResourceRegistry">EquivalentResourceRegistry</a></pre>
|
|
</div>
|
|
<p>NewEquivalentResourceRegistry creates a resource registry that considers all versions of a GroupResource to be equivalent.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewEquivalentResourceRegistryWithIdentity" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/mapper.go#L51">NewEquivalentResourceRegistryWithIdentity</a> <a class="Documentation-idLink" href="#NewEquivalentResourceRegistryWithIdentity" title="Go to NewEquivalentResourceRegistryWithIdentity" aria-label="Go to NewEquivalentResourceRegistryWithIdentity">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewEquivalentResourceRegistryWithIdentity(keyFunc func(<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupResource">GroupResource</a>) <a href="/builtin#string">string</a>) <a href="#EquivalentResourceRegistry">EquivalentResourceRegistry</a></pre>
|
|
</div>
|
|
<p>NewEquivalentResourceRegistryWithIdentity creates a resource mapper with a custom identity function.
|
|
If "" is returned by the function, GroupResource#String is used as the identity.
|
|
GroupResources with the same identity string are considered equivalent.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="FieldLabelConversionFunc" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L98">FieldLabelConversionFunc</a> <a class="Documentation-idLink" href="#FieldLabelConversionFunc" title="Go to FieldLabelConversionFunc" aria-label="Go to FieldLabelConversionFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type FieldLabelConversionFunc func(label, value <a href="/builtin#string">string</a>) (internalLabel, internalValue <a href="/builtin#string">string</a>, err <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>FieldLabelConversionFunc converts a field selector to internal representation.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Framer" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L139">Framer</a> <a class="Documentation-idLink" href="#Framer" title="Go to Framer" aria-label="Go to Framer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Framer interface {
|
|
<span id="Framer.NewFrameReader" data-kind="method"> NewFrameReader(r <a href="/io">io</a>.<a href="/io#ReadCloser">ReadCloser</a>) <a href="/io">io</a>.<a href="/io#ReadCloser">ReadCloser</a>
|
|
</span><span id="Framer.NewFrameWriter" data-kind="method"> NewFrameWriter(w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/io">io</a>.<a href="/io#Writer">Writer</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>Framer is a factory for creating readers and writers that obey a particular framing pattern.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="GroupVersioner" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L34">GroupVersioner</a> <a class="Documentation-idLink" href="#GroupVersioner" title="Go to GroupVersioner" aria-label="Go to GroupVersioner">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type GroupVersioner interface {
|
|
<span id="GroupVersioner.KindForGroupVersionKinds" data-kind="method"> <span class="comment">// KindForGroupVersionKinds returns a desired target group version kind for the given input, or returns ok false if no</span>
|
|
</span> <span class="comment">// target is known. In general, if the return target is not in the input list, the caller is expected to invoke</span>
|
|
<span class="comment">// Scheme.New(target) and then perform a conversion between the current Go type and the destination Go type.</span>
|
|
<span class="comment">// Sophisticated implementations may use additional information about the input kinds to pick a destination kind.</span>
|
|
KindForGroupVersionKinds(kinds []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) (target <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, ok <a href="/builtin#bool">bool</a>)
|
|
<span id="GroupVersioner.Identifier" data-kind="method"> <span class="comment">// Identifier returns string representation of the object.</span>
|
|
</span> <span class="comment">// Identifiers of two different encoders should be equal only if for every input</span>
|
|
<span class="comment">// kinds they return the same result.</span>
|
|
Identifier() <a href="/builtin#string">string</a>
|
|
}</pre>
|
|
</div>
|
|
<p>GroupVersioner refines a set of possible conversion targets into a single option.
|
|
</p>
|
|
<div class="Documentation-typeVariable">
|
|
<div class="Documentation-declaration">
|
|
<pre>var (
|
|
<span id="InternalGroupVersioner" data-kind="variable"> <span class="comment">// InternalGroupVersioner will always prefer the internal version for a given group version kind.</span>
|
|
</span> InternalGroupVersioner <a href="#GroupVersioner">GroupVersioner</a> = internalGroupVersioner{}
|
|
<span id="DisabledGroupVersioner" data-kind="variable"> <span class="comment">// DisabledGroupVersioner will reject all kinds passed to it.</span>
|
|
</span> DisabledGroupVersioner <a href="#GroupVersioner">GroupVersioner</a> = disabledGroupVersioner{}
|
|
)</pre>
|
|
</div>
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewCoercingMultiGroupVersioner" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L355">NewCoercingMultiGroupVersioner</a> <a class="Documentation-idLink" href="#NewCoercingMultiGroupVersioner" title="Go to NewCoercingMultiGroupVersioner" aria-label="Go to NewCoercingMultiGroupVersioner">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewCoercingMultiGroupVersioner(gv <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>, groupKinds ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupKind">GroupKind</a>) <a href="#GroupVersioner">GroupVersioner</a></pre>
|
|
</div>
|
|
<p>NewCoercingMultiGroupVersioner returns the provided group version for any incoming kind.
|
|
Incoming kinds that match the provided groupKinds are preferred.
|
|
Kind may be empty in the provided group kind, in which case any kind will match.
|
|
Examples:
|
|
</p><pre>gv=mygroup/__internal, groupKinds=mygroup/Foo, anothergroup/Bar
|
|
KindForGroupVersionKinds(yetanother/v1/Baz, anothergroup/v1/Bar) -> mygroup/__internal/Bar (matched preferred group/kind)
|
|
|
|
gv=mygroup/__internal, groupKinds=mygroup, anothergroup
|
|
KindForGroupVersionKinds(yetanother/v1/Baz, anothergroup/v1/Bar) -> mygroup/__internal/Bar (matched preferred group)
|
|
|
|
gv=mygroup/__internal, groupKinds=mygroup, anothergroup
|
|
KindForGroupVersionKinds(yetanother/v1/Baz, yetanother/v1/Bar) -> mygroup/__internal/Baz (no preferred group/kind match, uses first kind in list)
|
|
</pre>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewMultiGroupVersioner" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L335">NewMultiGroupVersioner</a> <a class="Documentation-idLink" href="#NewMultiGroupVersioner" title="Go to NewMultiGroupVersioner" aria-label="Go to NewMultiGroupVersioner">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewMultiGroupVersioner(gv <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>, groupKinds ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupKind">GroupKind</a>) <a href="#GroupVersioner">GroupVersioner</a></pre>
|
|
</div>
|
|
<p>NewMultiGroupVersioner returns the provided group version for any kind that matches one of the provided group kinds.
|
|
Kind may be empty in the provided group kind, in which case any kind will match.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Identifier" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L49">Identifier</a> <a class="Documentation-idLink" href="#Identifier" title="Go to Identifier" aria-label="Go to Identifier">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Identifier <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>Identifier represents an identifier.
|
|
Identitier of two different objects should be equal if and only if for every
|
|
input the output they produce is exactly the same.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="KubeTypes" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go#L37">KubeTypes</a> <a class="Documentation-idLink" href="#KubeTypes" title="Go to KubeTypes" aria-label="Go to KubeTypes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type KubeTypes []<a href="#Pair">Pair</a></pre>
|
|
</div>
|
|
<p>KubeTypes is an array to represent all available types in a parsed file. [0] is for the type itself
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ParseDocumentationFrom" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go#L174">ParseDocumentationFrom</a> <a class="Documentation-idLink" href="#ParseDocumentationFrom" title="Go to ParseDocumentationFrom" aria-label="Go to ParseDocumentationFrom">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func ParseDocumentationFrom(src <a href="/builtin#string">string</a>) []<a href="#KubeTypes">KubeTypes</a></pre>
|
|
</div>
|
|
<p>ParseDocumentationFrom gets all types' documentation and returns them as an
|
|
array. Each type is again represented as an array (we have to use arrays as we
|
|
need to be sure for the order of the fields). This function returns fields and
|
|
struct definitions that have no documentation as {name, ""}.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="MemoryAllocator" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L88">MemoryAllocator</a> <a class="Documentation-idLink" href="#MemoryAllocator" title="Go to MemoryAllocator" aria-label="Go to MemoryAllocator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type MemoryAllocator interface {
|
|
<span id="MemoryAllocator.Allocate" data-kind="method"> <span class="comment">// Allocate reserves memory for n bytes.</span>
|
|
</span> <span class="comment">// Note that implementations of this method are not required to zero the returned array.</span>
|
|
<span class="comment">// It is the caller's responsibility to clean the memory if needed.</span>
|
|
Allocate(n <a href="/builtin#uint64">uint64</a>) []<a href="/builtin#byte">byte</a>
|
|
}</pre>
|
|
</div>
|
|
<p>MemoryAllocator is responsible for allocating memory.
|
|
By encapsulating memory allocation into its own interface, we can reuse the memory
|
|
across many operations in places we know it can significantly improve the performance.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="MultiObjectTyper" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L172">MultiObjectTyper</a> <a class="Documentation-idLink" href="#MultiObjectTyper" title="Go to MultiObjectTyper" aria-label="Go to MultiObjectTyper">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type MultiObjectTyper []<a href="#ObjectTyper">ObjectTyper</a></pre>
|
|
</div>
|
|
<p>MultiObjectTyper returns the types of objects across multiple schemes in order.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="MultiObjectTyper.ObjectKinds" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (MultiObjectTyper) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L176">ObjectKinds</a> <a class="Documentation-idLink" href="#MultiObjectTyper.ObjectKinds" title="Go to MultiObjectTyper.ObjectKinds" aria-label="Go to MultiObjectTyper.ObjectKinds">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m <a href="#MultiObjectTyper">MultiObjectTyper</a>) ObjectKinds(obj <a href="#Object">Object</a>) (gvks []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, unversionedType <a href="/builtin#bool">bool</a>, err <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="MultiObjectTyper.Recognizes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (MultiObjectTyper) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L186">Recognizes</a> <a class="Documentation-idLink" href="#MultiObjectTyper.Recognizes" title="Go to MultiObjectTyper.Recognizes" aria-label="Go to MultiObjectTyper.Recognizes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m <a href="#MultiObjectTyper">MultiObjectTyper</a>) Recognizes(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Namer" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L326">Namer</a> <a class="Documentation-idLink" href="#Namer" title="Go to Namer" aria-label="Go to Namer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Namer interface {
|
|
<span id="Namer.Name" data-kind="method"> <span class="comment">// Name returns the name of a given object.</span>
|
|
</span> Name(obj <a href="#Object">Object</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)
|
|
<span id="Namer.Namespace" data-kind="method"> <span class="comment">// Namespace returns the name of a given object.</span>
|
|
</span> Namespace(obj <a href="#Object">Object</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>Namer provides methods for retrieving name and namespace of an API object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NegotiateError" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/negotiate.go#L27">NegotiateError</a> <a class="Documentation-idLink" href="#NegotiateError" title="Go to NegotiateError" aria-label="Go to NegotiateError">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NegotiateError struct {
|
|
<span id="NegotiateError.ContentType" data-kind="field"> ContentType <a href="/builtin#string">string</a>
|
|
</span><span id="NegotiateError.Stream" data-kind="field"> Stream <a href="/builtin#bool">bool</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>NegotiateError is returned when a ClientNegotiator is unable to locate
|
|
a serializer for the requested operation.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NegotiateError.Error" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NegotiateError) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/negotiate.go#L32">Error</a> <a class="Documentation-idLink" href="#NegotiateError.Error" title="Go to NegotiateError.Error" aria-label="Go to NegotiateError.Error">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (e <a href="#NegotiateError">NegotiateError</a>) Error() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NegotiateError.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NegotiateError) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L30">OpenAPIModelName</a> <a class="Documentation-idLink" href="#NegotiateError.OpenAPIModelName" title="Go to NegotiateError.OpenAPIModelName" aria-label="Go to NegotiateError.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#NegotiateError">NegotiateError</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NegotiatedSerializer" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L180">NegotiatedSerializer</a> <a class="Documentation-idLink" href="#NegotiatedSerializer" title="Go to NegotiatedSerializer" aria-label="Go to NegotiatedSerializer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NegotiatedSerializer interface {
|
|
<span id="NegotiatedSerializer.SupportedMediaTypes" data-kind="method"> <span class="comment">// SupportedMediaTypes is the media types supported for reading and writing single objects.</span>
|
|
</span> SupportedMediaTypes() []<a href="#SerializerInfo">SerializerInfo</a>
|
|
|
|
<span id="NegotiatedSerializer.EncoderForVersion" data-kind="method"> <span class="comment">// EncoderForVersion returns an encoder that ensures objects being written to the provided</span>
|
|
</span> <span class="comment">// serializer are in the provided group version.</span>
|
|
EncoderForVersion(serializer <a href="#Encoder">Encoder</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) <a href="#Encoder">Encoder</a>
|
|
<span id="NegotiatedSerializer.DecoderToVersion" data-kind="method"> <span class="comment">// DecoderToVersion returns a decoder that ensures objects being read by the provided</span>
|
|
</span> <span class="comment">// serializer are in the provided group version by default.</span>
|
|
DecoderToVersion(serializer <a href="#Decoder">Decoder</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) <a href="#Decoder">Decoder</a>
|
|
}</pre>
|
|
</div>
|
|
<p>NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers
|
|
for multiple supported media types. This would commonly be accepted by a server component
|
|
that performs HTTP content negotiation to accept multiple formats.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewSimpleNegotiatedSerializer" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/negotiate.go#L99">NewSimpleNegotiatedSerializer</a> <a class="Documentation-idLink" href="#NewSimpleNegotiatedSerializer" title="Go to NewSimpleNegotiatedSerializer" aria-label="Go to NewSimpleNegotiatedSerializer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewSimpleNegotiatedSerializer(info <a href="#SerializerInfo">SerializerInfo</a>) <a href="#NegotiatedSerializer">NegotiatedSerializer</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NestedObjectDecoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L247">NestedObjectDecoder</a> <a class="Documentation-idLink" href="#NestedObjectDecoder" title="Go to NestedObjectDecoder" aria-label="Go to NestedObjectDecoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NestedObjectDecoder interface {
|
|
<span id="NestedObjectDecoder.DecodeNestedObjects" data-kind="method"> DecodeNestedObjects(d <a href="#Decoder">Decoder</a>) <a href="/builtin#error">error</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>NestedObjectDecoder is an optional interface that objects may implement to be given
|
|
an opportunity to decode any nested Objects / RawExtensions during serialization.
|
|
It is possible for DecodeNestedObjects to return a non-nil error but for the decoding
|
|
to have succeeded in the case of strict decoding errors (e.g. unknown/duplicate fields).
|
|
As such it is important for callers of DecodeNestedObjects to check to confirm whether
|
|
an error is a runtime.StrictDecodingError before short circuiting.
|
|
Similarly, implementations of DecodeNestedObjects should ensure that a runtime.StrictDecodingError
|
|
is only returned when the rest of decoding has succeeded.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NestedObjectEncoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L235">NestedObjectEncoder</a> <a class="Documentation-idLink" href="#NestedObjectEncoder" title="Go to NestedObjectEncoder" aria-label="Go to NestedObjectEncoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NestedObjectEncoder interface {
|
|
<span id="NestedObjectEncoder.EncodeNestedObjects" data-kind="method"> EncodeNestedObjects(e <a href="#Encoder">Encoder</a>) <a href="/builtin#error">error</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>NestedObjectEncoder is an optional interface that objects may implement to be given
|
|
an opportunity to encode any nested Objects / RawExtensions during serialization.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NondeterministicEncoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L74">NondeterministicEncoder</a> <a class="Documentation-idLink" href="#NondeterministicEncoder" title="Go to NondeterministicEncoder" aria-label="Go to NondeterministicEncoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.32.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NondeterministicEncoder interface {
|
|
<a href="#Encoder">Encoder</a>
|
|
|
|
<span id="NondeterministicEncoder.EncodeNondeterministic" data-kind="method"> <span class="comment">// EncodeNondeterministic writes an object to the stream. Unlike the Encode method of</span>
|
|
</span> <span class="comment">// Encoder, EncodeNondeterministic does not guarantee that any two invocations will write</span>
|
|
<span class="comment">// the same sequence of bytes to the io.Writer. Any differences will not be significant to a</span>
|
|
<span class="comment">// generic decoder. For example, map entries and struct fields might be encoded in any</span>
|
|
<span class="comment">// order.</span>
|
|
EncodeNondeterministic(<a href="#Object">Object</a>, <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a>
|
|
}</pre>
|
|
</div>
|
|
<p>NondeterministicEncoder is implemented by Encoders that can serialize objects more efficiently in
|
|
cases where the output does not need to be deterministic.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopDecoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L120">NoopDecoder</a> <a class="Documentation-idLink" href="#NoopDecoder" title="Go to NoopDecoder" aria-label="Go to NoopDecoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NoopDecoder struct {
|
|
<span id="NoopDecoder.Encoder" data-kind="field"> <a href="#Encoder">Encoder</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>NoopDecoder converts an Encoder to a Serializer or Codec for code that expects them but only uses encoding.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopDecoder.Decode" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NoopDecoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L126">Decode</a> <a class="Documentation-idLink" href="#NoopDecoder.Decode" title="Go to NoopDecoder.Decode" aria-label="Go to NoopDecoder.Decode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (n <a href="#NoopDecoder">NoopDecoder</a>) Decode(data []<a href="/builtin#byte">byte</a>, gvk *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, into <a href="#Object">Object</a>) (<a href="#Object">Object</a>, *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopDecoder.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NoopDecoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L35">OpenAPIModelName</a> <a class="Documentation-idLink" href="#NoopDecoder.OpenAPIModelName" title="Go to NoopDecoder.OpenAPIModelName" aria-label="Go to NoopDecoder.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#NoopDecoder">NoopDecoder</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopEncoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L100">NoopEncoder</a> <a class="Documentation-idLink" href="#NoopEncoder" title="Go to NoopEncoder" aria-label="Go to NoopEncoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type NoopEncoder struct {
|
|
<span id="NoopEncoder.Decoder" data-kind="field"> <a href="#Decoder">Decoder</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>NoopEncoder converts an Decoder to a Serializer or Codec for code that expects them but only uses decoding.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopEncoder.Encode" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NoopEncoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L108">Encode</a> <a class="Documentation-idLink" href="#NoopEncoder.Encode" title="Go to NoopEncoder.Encode" aria-label="Go to NoopEncoder.Encode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (n <a href="#NoopEncoder">NoopEncoder</a>) Encode(obj <a href="#Object">Object</a>, w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopEncoder.Identifier" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NoopEncoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L115">Identifier</a> <a class="Documentation-idLink" href="#NoopEncoder.Identifier" title="Go to NoopEncoder.Identifier" aria-label="Go to NoopEncoder.Identifier">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.17.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (n <a href="#NoopEncoder">NoopEncoder</a>) Identifier() <a href="#Identifier">Identifier</a></pre>
|
|
</div>
|
|
<p>Identifier implements runtime.Encoder interface.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NoopEncoder.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (NoopEncoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L40">OpenAPIModelName</a> <a class="Documentation-idLink" href="#NoopEncoder.OpenAPIModelName" title="Go to NoopEncoder.OpenAPIModelName" aria-label="Go to NoopEncoder.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#NoopEncoder">NoopEncoder</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Object" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L337">Object</a> <a class="Documentation-idLink" href="#Object" title="Go to Object" aria-label="Go to Object">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Object interface {
|
|
<span id="Object.GetObjectKind" data-kind="method"> GetObjectKind() <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#ObjectKind">ObjectKind</a>
|
|
</span><span id="Object.DeepCopyObject" data-kind="method"> DeepCopyObject() <a href="#Object">Object</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>Object interface must be supported by all API types registered with Scheme. Since objects in a scheme are
|
|
expected to be serialized to the wire, the interface an Object must provide to the Scheme allows
|
|
serializers to set the kind, version, and group the object is represented as. An Object may choose
|
|
to return a no-op ObjectKindAccessor in cases where it is not expected to be serialized.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Decode" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L56">Decode</a> <a class="Documentation-idLink" href="#Decode" title="Go to Decode" aria-label="Go to Decode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func Decode(d <a href="#Decoder">Decoder</a>, data []<a href="/builtin#byte">byte</a>) (<a href="#Object">Object</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>Decode is a convenience wrapper for decoding data into an Object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewEncodable" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L42">NewEncodable</a> <a class="Documentation-idLink" href="#NewEncodable" title="Go to NewEncodable" aria-label="Go to NewEncodable">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewEncodable(e <a href="#Encoder">Encoder</a>, obj <a href="#Object">Object</a>, versions ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) <a href="#Object">Object</a></pre>
|
|
</div>
|
|
<p>NewEncodable creates an object that will be encoded with the provided codec on demand.
|
|
Provided as a convenience for test cases dealing with internal objects.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewEncodableList" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L61">NewEncodableList</a> <a class="Documentation-idLink" href="#NewEncodableList" title="Go to NewEncodableList" aria-label="Go to NewEncodableList">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewEncodableList(e <a href="#Encoder">Encoder</a>, objects []<a href="#Object">Object</a>, versions ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) []<a href="#Object">Object</a></pre>
|
|
</div>
|
|
<p>NewEncodableList creates an object that will be encoded with the provided codec on demand.
|
|
Provided as a convenience for test cases dealing with internal objects.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="UseOrCreateObject" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L84">UseOrCreateObject</a> <a class="Documentation-idLink" href="#UseOrCreateObject" title="Go to UseOrCreateObject" aria-label="Go to UseOrCreateObject">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func UseOrCreateObject(t <a href="#ObjectTyper">ObjectTyper</a>, c <a href="#ObjectCreater">ObjectCreater</a>, gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, obj <a href="#Object">Object</a>) (<a href="#Object">Object</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>UseOrCreateObject returns obj if the canonical ObjectKind returned by the provided typer matches gvk, or
|
|
invokes the ObjectCreator to instantiate a new gvk. Returns an error if the typer cannot find the object.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ObjectConvertor" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L266">ObjectConvertor</a> <a class="Documentation-idLink" href="#ObjectConvertor" title="Go to ObjectConvertor" aria-label="Go to ObjectConvertor">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ObjectConvertor interface {
|
|
<span id="ObjectConvertor.Convert" data-kind="method"> <span class="comment">// Convert attempts to convert one object into another, or returns an error. This</span>
|
|
</span> <span class="comment">// method does not mutate the in object, but the in and out object might share data structures,</span>
|
|
<span class="comment">// i.e. the out object cannot be mutated without mutating the in object as well.</span>
|
|
<span class="comment">// The context argument will be passed to all nested conversions.</span>
|
|
Convert(in, out, context interface{}) <a href="/builtin#error">error</a>
|
|
<span class="comment">// ConvertToVersion takes the provided object and converts it the provided version. This</span>
|
|
<span class="comment">// method does not mutate the in object, but the in and out object might share data structures,</span>
|
|
<span class="comment">// i.e. the out object cannot be mutated without mutating the in object as well.</span>
|
|
<span class="comment">// This method is similar to Convert() but handles specific details of choosing the correct</span>
|
|
<span class="comment">// output version.</span>
|
|
<span id="ObjectConvertor.ConvertToVersion" data-kind="method"> ConvertToVersion(in <a href="#Object">Object</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) (out <a href="#Object">Object</a>, err <a href="/builtin#error">error</a>)
|
|
</span><span id="ObjectConvertor.ConvertFieldLabel" data-kind="method"> ConvertFieldLabel(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, label, value <a href="/builtin#string">string</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)
|
|
</span>}</pre>
|
|
</div>
|
|
<p>ObjectConvertor converts an object to a different version.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="UnsafeObjectConvertor" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L45">UnsafeObjectConvertor</a> <a class="Documentation-idLink" href="#UnsafeObjectConvertor" title="Go to UnsafeObjectConvertor" aria-label="Go to UnsafeObjectConvertor">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func UnsafeObjectConvertor(scheme *<a href="#Scheme">Scheme</a>) <a href="#ObjectConvertor">ObjectConvertor</a></pre>
|
|
</div>
|
|
<p>UnsafeObjectConvertor performs object conversion without copying the object structure,
|
|
for use when the converted object will not be reused or mutated. Primarily for use within
|
|
versioned codecs, which use the external object for serialization but do not return it.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ObjectCreater" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L295">ObjectCreater</a> <a class="Documentation-idLink" href="#ObjectCreater" title="Go to ObjectCreater" aria-label="Go to ObjectCreater">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ObjectCreater interface {
|
|
<span id="ObjectCreater.New" data-kind="method"> New(kind <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) (out <a href="#Object">Object</a>, err <a href="/builtin#error">error</a>)
|
|
</span>}</pre>
|
|
</div>
|
|
<p>ObjectCreater contains methods for instantiating an object by kind and version.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ObjectDefaulter" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L254">ObjectDefaulter</a> <a class="Documentation-idLink" href="#ObjectDefaulter" title="Go to ObjectDefaulter" aria-label="Go to ObjectDefaulter">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ObjectDefaulter interface {
|
|
<span id="ObjectDefaulter.Default" data-kind="method"> <span class="comment">// Default takes an object (must be a pointer) and applies any default values.</span>
|
|
</span> <span class="comment">// Defaulters may not error.</span>
|
|
Default(in <a href="#Object">Object</a>)
|
|
}</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ObjectTyper" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L283">ObjectTyper</a> <a class="Documentation-idLink" href="#ObjectTyper" title="Go to ObjectTyper" aria-label="Go to ObjectTyper">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ObjectTyper interface {
|
|
<span id="ObjectTyper.ObjectKinds" data-kind="method"> <span class="comment">// ObjectKinds returns the all possible group,version,kind of the provided object, true if</span>
|
|
</span> <span class="comment">// the object is unversioned, or an error if the object is not recognized</span>
|
|
<span class="comment">// (IsNotRegisteredError will return true).</span>
|
|
ObjectKinds(<a href="#Object">Object</a>) ([]<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, <a href="/builtin#bool">bool</a>, <a href="/builtin#error">error</a>)
|
|
<span id="ObjectTyper.Recognizes" data-kind="method"> <span class="comment">// Recognizes returns true if the scheme is able to handle the provided version and kind,</span>
|
|
</span> <span class="comment">// or more precisely that the provided version is a possible conversion or decoding</span>
|
|
<span class="comment">// target.</span>
|
|
Recognizes(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) <a href="/builtin#bool">bool</a>
|
|
}</pre>
|
|
</div>
|
|
<p>ObjectTyper contains methods for extracting the APIVersion and Kind
|
|
of objects.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ObjectVersioner" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L260">ObjectVersioner</a> <a class="Documentation-idLink" href="#ObjectVersioner" title="Go to ObjectVersioner" aria-label="Go to ObjectVersioner">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ObjectVersioner interface {
|
|
<span id="ObjectVersioner.ConvertToVersion" data-kind="method"> ConvertToVersion(in <a href="#Object">Object</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) (out <a href="#Object">Object</a>, err <a href="/builtin#error">error</a>)
|
|
</span><span id="ObjectVersioner.PrioritizedVersionsForGroup" data-kind="method"> PrioritizedVersionsForGroup(group <a href="/builtin#string">string</a>) []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>
|
|
</span>}</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Pair" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go#L32">Pair</a> <a class="Documentation-idLink" href="#Pair" title="Go to Pair" aria-label="Go to Pair">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Pair struct {
|
|
<span id="Pair.Name" data-kind="field"><span id="Pair.Doc" data-kind="field"> Name, Doc <a href="/builtin#string">string</a>
|
|
</span>}</span></pre>
|
|
</div>
|
|
<p>Pair of strings. We keed the name of fields and the doc
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Pair.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (Pair) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L45">OpenAPIModelName</a> <a class="Documentation-idLink" href="#Pair.OpenAPIModelName" title="Go to Pair.OpenAPIModelName" aria-label="Go to Pair.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#Pair">Pair</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ParameterCodec" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L130">ParameterCodec</a> <a class="Documentation-idLink" href="#ParameterCodec" title="Go to ParameterCodec" aria-label="Go to ParameterCodec">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ParameterCodec interface {
|
|
<span id="ParameterCodec.DecodeParameters" data-kind="method"> <span class="comment">// DecodeParameters takes the given url.Values in the specified group version and decodes them</span>
|
|
</span> <span class="comment">// into the provided object, or returns an error.</span>
|
|
DecodeParameters(parameters <a href="/net/url">url</a>.<a href="/net/url#Values">Values</a>, from <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>, into <a href="#Object">Object</a>) <a href="/builtin#error">error</a>
|
|
<span id="ParameterCodec.EncodeParameters" data-kind="method"> <span class="comment">// EncodeParameters encodes the provided object as query parameters or returns an error.</span>
|
|
</span> EncodeParameters(obj <a href="#Object">Object</a>, to <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) (<a href="/net/url">url</a>.<a href="/net/url#Values">Values</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>ParameterCodec defines methods for serializing and deserializing API objects to url.Values and
|
|
performing any necessary conversion. Unlike the normal Codec, query parameters are not self describing
|
|
and the desired version must be specified.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewParameterCodec" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L131">NewParameterCodec</a> <a class="Documentation-idLink" href="#NewParameterCodec" title="Go to NewParameterCodec" aria-label="Go to NewParameterCodec">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewParameterCodec(scheme *<a href="#Scheme">Scheme</a>) <a href="#ParameterCodec">ParameterCodec</a></pre>
|
|
</div>
|
|
<p>NewParameterCodec creates a ParameterCodec capable of transforming url values into versioned objects and back.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ProtobufMarshaller" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types_proto.go#L25">ProtobufMarshaller</a> <a class="Documentation-idLink" href="#ProtobufMarshaller" title="Go to ProtobufMarshaller" aria-label="Go to ProtobufMarshaller">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ProtobufMarshaller interface {
|
|
<span id="ProtobufMarshaller.Size" data-kind="method"> <span class="comment">// Size returns the number of bytes a call to MarshalTo would consume.</span>
|
|
</span> Size() <a href="/builtin#int">int</a>
|
|
<span id="ProtobufMarshaller.MarshalTo" data-kind="method"> <span class="comment">// MarshalTo marshals to the start of the data buffer, which must be at least as big as Size(),</span>
|
|
</span> <span class="comment">// and returns the number of bytes written, which must be identical to the return value of Size().</span>
|
|
MarshalTo(data []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>ProtobufReverseMarshaller can precompute size, and marshals to the start of the provided data buffer.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ProtobufReverseMarshaller" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types_proto.go#L34">ProtobufReverseMarshaller</a> <a class="Documentation-idLink" href="#ProtobufReverseMarshaller" title="Go to ProtobufReverseMarshaller" aria-label="Go to ProtobufReverseMarshaller">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.16.4</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ProtobufReverseMarshaller interface {
|
|
<span id="ProtobufReverseMarshaller.Size" data-kind="method"> <span class="comment">// Size returns the number of bytes a call to MarshalToSizedBuffer would consume.</span>
|
|
</span> Size() <a href="/builtin#int">int</a>
|
|
<span id="ProtobufReverseMarshaller.MarshalToSizedBuffer" data-kind="method"> <span class="comment">// MarshalToSizedBuffer marshals to the end of the data buffer, which must be at least as big as Size(),</span>
|
|
</span> <span class="comment">// and returns the number of bytes written, which must be identical to the return value of Size().</span>
|
|
MarshalToSizedBuffer(data []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)
|
|
}</pre>
|
|
</div>
|
|
<p>ProtobufReverseMarshaller can precompute size, and marshals to the end of the provided data buffer.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types.go#L103">RawExtension</a> <a class="Documentation-idLink" href="#RawExtension" title="Go to RawExtension" aria-label="Go to RawExtension">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type RawExtension struct {
|
|
<span id="RawExtension.Raw" data-kind="field"> <span class="comment">// Raw is the underlying serialization of this object.</span>
|
|
</span> <span class="comment">//</span>
|
|
<span class="comment">// TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data.</span>
|
|
Raw []<a href="/builtin#byte">byte</a> `json:"-" protobuf:"bytes,1,opt,name=raw"`
|
|
<span id="RawExtension.Object" data-kind="field"> <span class="comment">// Object can hold a representation of this extension - useful for working with versioned</span>
|
|
</span> <span class="comment">// structs.</span>
|
|
Object <a href="#Object">Object</a> `json:"-"`
|
|
}</pre>
|
|
</div>
|
|
<p>RawExtension is used to hold extensions in external versions.
|
|
</p><p>To use this, make a field which has RawExtension as its type in your external, versioned
|
|
struct, and Object in your internal struct. You also need to register your
|
|
various plugin types.
|
|
</p><p>// Internal package:
|
|
</p><pre>type MyAPIObject struct {
|
|
runtime.TypeMeta `json:",inline"`
|
|
MyPlugin runtime.Object `json:"myPlugin"`
|
|
}
|
|
|
|
type PluginA struct {
|
|
AOption string `json:"aOption"`
|
|
}
|
|
</pre><p>// External package:
|
|
</p><pre>type MyAPIObject struct {
|
|
runtime.TypeMeta `json:",inline"`
|
|
MyPlugin runtime.RawExtension `json:"myPlugin"`
|
|
}
|
|
|
|
type PluginA struct {
|
|
AOption string `json:"aOption"`
|
|
}
|
|
</pre><p>// On the wire, the JSON will look something like this:
|
|
</p><pre>{
|
|
"kind":"MyAPIObject",
|
|
"apiVersion":"v1",
|
|
"myPlugin": {
|
|
"kind":"PluginA",
|
|
"aOption":"foo",
|
|
},
|
|
}
|
|
</pre><p>So what happens? Decode first uses json or yaml to unmarshal the serialized data into
|
|
your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked.
|
|
The next step is to copy (using pkg/conversion) into the internal struct. The runtime
|
|
package's DefaultScheme has conversion functions installed which will unpack the
|
|
JSON stored in RawExtension, turning it into the correct object type, and storing it
|
|
in the Object. (TODO: In the case where the object is of an unknown type, a
|
|
runtime.Unknown object will be created and stored.)
|
|
</p><p>+k8s:deepcopy-gen=true
|
|
+protobuf=true
|
|
+k8s:openapi-gen=true
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.DeepCopy" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go#L39">DeepCopy</a> <a class="Documentation-idLink" href="#RawExtension.DeepCopy" title="Go to RawExtension.DeepCopy" aria-label="Go to RawExtension.DeepCopy">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in *<a href="#RawExtension">RawExtension</a>) DeepCopy() *<a href="#RawExtension">RawExtension</a></pre>
|
|
</div>
|
|
<p>DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawExtension.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.DeepCopyInto" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go#L25">DeepCopyInto</a> <a class="Documentation-idLink" href="#RawExtension.DeepCopyInto" title="Go to RawExtension.DeepCopyInto" aria-label="Go to RawExtension.DeepCopyInto">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in *<a href="#RawExtension">RawExtension</a>) DeepCopyInto(out *<a href="#RawExtension">RawExtension</a>)</pre>
|
|
</div>
|
|
<p>DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.Marshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L37">Marshal</a> <a class="Documentation-idLink" href="#RawExtension.Marshal" title="Go to RawExtension.Marshal" aria-label="Go to RawExtension.Marshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) Marshal() (dAtA []<a href="/builtin#byte">byte</a>, err <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.MarshalCBOR" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/extension.go#L123">MarshalCBOR</a> <a class="Documentation-idLink" href="#RawExtension.MarshalCBOR" title="Go to RawExtension.MarshalCBOR" aria-label="Go to RawExtension.MarshalCBOR">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.31.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (re <a href="#RawExtension">RawExtension</a>) MarshalCBOR() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/extension.go#L98">MarshalJSON</a> <a class="Documentation-idLink" href="#RawExtension.MarshalJSON" title="Go to RawExtension.MarshalJSON" aria-label="Go to RawExtension.MarshalJSON">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (re <a href="#RawExtension">RawExtension</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>MarshalJSON may get called on pointers or values, so implement MarshalJSON on value.
|
|
<a href="http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go">http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go</a>
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.MarshalTo" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L47">MarshalTo</a> <a class="Documentation-idLink" href="#RawExtension.MarshalTo" title="Go to RawExtension.MarshalTo" aria-label="Go to RawExtension.MarshalTo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) MarshalTo(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.MarshalToSizedBuffer" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L52">MarshalToSizedBuffer</a> <a class="Documentation-idLink" href="#RawExtension.MarshalToSizedBuffer" title="Go to RawExtension.MarshalToSizedBuffer" aria-label="Go to RawExtension.MarshalToSizedBuffer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.16.4</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) MarshalToSizedBuffer(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L50">OpenAPIModelName</a> <a class="Documentation-idLink" href="#RawExtension.OpenAPIModelName" title="Go to RawExtension.OpenAPIModelName" aria-label="Go to RawExtension.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#RawExtension">RawExtension</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.Reset" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L31">Reset</a> <a class="Documentation-idLink" href="#RawExtension.Reset" title="Go to RawExtension.Reset" aria-label="Go to RawExtension.Reset">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) Reset()</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.Size" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L161">Size</a> <a class="Documentation-idLink" href="#RawExtension.Size" title="Go to RawExtension.Size" aria-label="Go to RawExtension.Size">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) Size() (n <a href="/builtin#int">int</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.String" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L212">String</a> <a class="Documentation-idLink" href="#RawExtension.String" title="Go to RawExtension.String" aria-label="Go to RawExtension.String">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (this *<a href="#RawExtension">RawExtension</a>) String() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.Unmarshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L254">Unmarshal</a> <a class="Documentation-idLink" href="#RawExtension.Unmarshal" title="Go to RawExtension.Unmarshal" aria-label="Go to RawExtension.Unmarshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#RawExtension">RawExtension</a>) Unmarshal(dAtA []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.UnmarshalCBOR" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/extension.go#L80">UnmarshalCBOR</a> <a class="Documentation-idLink" href="#RawExtension.UnmarshalCBOR" title="Go to RawExtension.UnmarshalCBOR" aria-label="Go to RawExtension.UnmarshalCBOR">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.31.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (re *<a href="#RawExtension">RawExtension</a>) UnmarshalCBOR(in []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="RawExtension.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*RawExtension) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/extension.go#L64">UnmarshalJSON</a> <a class="Documentation-idLink" href="#RawExtension.UnmarshalJSON" title="Go to RawExtension.UnmarshalJSON" aria-label="Go to RawExtension.UnmarshalJSON">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (re *<a href="#RawExtension">RawExtension</a>) UnmarshalJSON(in []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="ResourceVersioner" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L320">ResourceVersioner</a> <a class="Documentation-idLink" href="#ResourceVersioner" title="Go to ResourceVersioner" aria-label="Go to ResourceVersioner">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type ResourceVersioner interface {
|
|
<span id="ResourceVersioner.SetResourceVersion" data-kind="method"> SetResourceVersion(obj <a href="#Object">Object</a>, version <a href="/builtin#string">string</a>) <a href="/builtin#error">error</a>
|
|
</span><span id="ResourceVersioner.ResourceVersion" data-kind="method"> ResourceVersion(obj <a href="#Object">Object</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)
|
|
</span>}</pre>
|
|
</div>
|
|
<p>ResourceVersioner provides methods for setting and retrieving
|
|
the resource version from an API object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L50">Scheme</a> <a class="Documentation-idLink" href="#Scheme" title="Go to Scheme" aria-label="Go to Scheme">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Scheme struct {
|
|
<span class="comment">// contains filtered or unexported fields</span>
|
|
}</pre>
|
|
</div>
|
|
<p>Scheme defines methods for serializing and deserializing API objects, a type
|
|
registry for converting group, version, and kind information to and from Go
|
|
schemas, and mappings between Go schemas of different versions. A scheme is the
|
|
foundation for a versioned API and versioned configuration over time.
|
|
</p><p>In a Scheme, a Type is a particular Go struct, a Version is a point-in-time
|
|
identifier for a particular representation of that Type (typically backwards
|
|
compatible), a Kind is the unique name for that Type within the Version, and a
|
|
Group identifies a set of Versions, Kinds, and Types that evolve over time. An
|
|
Unversioned Type is one that is not yet formally bound to a type and is promised
|
|
to be backwards compatible (effectively a "v1" of a Type that does not expect
|
|
to break in the future).
|
|
</p><p>Schemes are not expected to change at runtime and are only threadsafe after
|
|
registration is complete.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewScheme" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L101">NewScheme</a> <a class="Documentation-idLink" href="#NewScheme" title="Go to NewScheme" aria-label="Go to NewScheme">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewScheme() *<a href="#Scheme">Scheme</a></pre>
|
|
</div>
|
|
<p>NewScheme creates a new Scheme. This scheme is pluggable by default.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddConversionFunc" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L327">AddConversionFunc</a> <a class="Documentation-idLink" href="#Scheme.AddConversionFunc" title="Go to Scheme.AddConversionFunc" aria-label="Go to Scheme.AddConversionFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddConversionFunc(a, b interface{}, fn <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#ConversionFunc">ConversionFunc</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>AddConversionFunc registers a function that converts between a and b by passing objects of those
|
|
types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce
|
|
any other guarantee.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddFieldLabelConversionFunc" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L340">AddFieldLabelConversionFunc</a> <a class="Documentation-idLink" href="#Scheme.AddFieldLabelConversionFunc" title="Go to Scheme.AddFieldLabelConversionFunc" aria-label="Go to Scheme.AddFieldLabelConversionFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddFieldLabelConversionFunc(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, conversionFunc <a href="#FieldLabelConversionFunc">FieldLabelConversionFunc</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>AddFieldLabelConversionFunc adds a conversion function to convert field selectors
|
|
of the given kind from the given version to internal version representation.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddGeneratedConversionFunc" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L334">AddGeneratedConversionFunc</a> <a class="Documentation-idLink" href="#Scheme.AddGeneratedConversionFunc" title="Go to Scheme.AddGeneratedConversionFunc" aria-label="Go to Scheme.AddGeneratedConversionFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddGeneratedConversionFunc(a, b interface{}, fn <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#ConversionFunc">ConversionFunc</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>AddGeneratedConversionFunc registers a function that converts between a and b by passing objects of those
|
|
types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce
|
|
any other guarantee.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddIgnoredConversionType" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L320">AddIgnoredConversionType</a> <a class="Documentation-idLink" href="#Scheme.AddIgnoredConversionType" title="Go to Scheme.AddIgnoredConversionType" aria-label="Go to Scheme.AddIgnoredConversionType">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddIgnoredConversionType(from, to interface{}) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>AddIgnoredConversionType identifies a pair of types that should be skipped by
|
|
conversion (because the data inside them is explicitly dropped during
|
|
conversion).
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddKnownTypeWithName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L167">AddKnownTypeWithName</a> <a class="Documentation-idLink" href="#Scheme.AddKnownTypeWithName" title="Go to Scheme.AddKnownTypeWithName" aria-label="Go to Scheme.AddKnownTypeWithName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddKnownTypeWithName(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, obj <a href="#Object">Object</a>)</pre>
|
|
</div>
|
|
<p>AddKnownTypeWithName is like AddKnownTypes, but it lets you specify what this type should
|
|
be encoded as. Useful for testing when you don't want to make multiple packages to define
|
|
your structs. Version may not be empty - use the APIVersionInternal constant if you have a
|
|
type that does not have a formal version.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddKnownTypes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L151">AddKnownTypes</a> <a class="Documentation-idLink" href="#Scheme.AddKnownTypes" title="Go to Scheme.AddKnownTypes" aria-label="Go to Scheme.AddKnownTypes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddKnownTypes(gv <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>, types ...<a href="#Object">Object</a>)</pre>
|
|
</div>
|
|
<p>AddKnownTypes registers all types passed in 'types' as being members of version 'version'.
|
|
All objects passed to types should be pointers to structs. The name that go reports for
|
|
the struct becomes the "kind" field when encoding. Version may not be empty - use the
|
|
APIVersionInternal constant if you have a type that does not have a formal version.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddTypeDefaultingFunc" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L350">AddTypeDefaultingFunc</a> <a class="Documentation-idLink" href="#Scheme.AddTypeDefaultingFunc" title="Go to Scheme.AddTypeDefaultingFunc" aria-label="Go to Scheme.AddTypeDefaultingFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddTypeDefaultingFunc(srcType <a href="#Object">Object</a>, fn func(interface{}))</pre>
|
|
</div>
|
|
<p>AddTypeDefaultingFunc registers a function that is passed a pointer to an
|
|
object and can default fields on the object. These functions will be invoked
|
|
when Default() is called. The function will never be called unless the
|
|
defaulted object matches srcType. If this function is invoked twice with the
|
|
same srcType, the fn passed to the later call will be used instead.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddUnversionedTypes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L133">AddUnversionedTypes</a> <a class="Documentation-idLink" href="#Scheme.AddUnversionedTypes" title="Go to Scheme.AddUnversionedTypes" aria-label="Go to Scheme.AddUnversionedTypes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddUnversionedTypes(version <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>, types ...<a href="#Object">Object</a>)</pre>
|
|
</div>
|
|
<p>AddUnversionedTypes registers the provided types as "unversioned", which means that they follow special rules.
|
|
Whenever an object of this type is serialized, it is serialized with the provided group version and is not
|
|
converted. Thus unversioned objects are expected to remain backwards compatible forever, as if they were in an
|
|
API group and version that would never be updated.
|
|
</p><p>TODO: there is discussion about removing unversioned and replacing it with objects that are manifest into
|
|
every version with particular schemas. Resolve this method at that point.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AddValidationFunc" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L366">AddValidationFunc</a> <a class="Documentation-idLink" href="#Scheme.AddValidationFunc" title="Go to Scheme.AddValidationFunc" aria-label="Go to Scheme.AddValidationFunc">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.33.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AddValidationFunc(srcType <a href="#Object">Object</a>, fn func(ctx <a href="/context">context</a>.<a href="/context#Context">Context</a>, op <a href="/k8s.io/apimachinery@v0.35.1/pkg/api/operation">operation</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/api/operation#Operation">Operation</a>, object, oldObject interface{}) <a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field">field</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field#ErrorList">ErrorList</a>)</pre>
|
|
</div>
|
|
<p>AddValidationFunc registered a function that can validate the object, and
|
|
oldObject. These functions will be invoked when Validate() or ValidateUpdate()
|
|
is called. The function will never be called unless the validated object
|
|
matches srcType. If this function is invoked twice with the same srcType, the
|
|
fn passed to the later call will be used instead.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.AllKnownTypes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L248">AllKnownTypes</a> <a class="Documentation-idLink" href="#Scheme.AllKnownTypes" title="Go to Scheme.AllKnownTypes" aria-label="Go to Scheme.AllKnownTypes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) AllKnownTypes() map[<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>]<a href="/reflect">reflect</a>.<a href="/reflect#Type">Type</a></pre>
|
|
</div>
|
|
<p>AllKnownTypes returns the all known types.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Convert" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L396">Convert</a> <a class="Documentation-idLink" href="#Scheme.Convert" title="Go to Scheme.Convert" aria-label="Go to Scheme.Convert">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Convert(in, out interface{}, context interface{}) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>Convert will attempt to convert in into out. Both must be pointers. For easy
|
|
testing of conversion functions. Returns an error if the conversion isn't
|
|
possible. You can call this with types that haven't been registered (for example,
|
|
a to test conversion of types that are nested within registered types). The
|
|
context interface is passed to the convertor. Convert also supports Unstructured
|
|
types and will convert them intelligently.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.ConvertFieldLabel" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L464">ConvertFieldLabel</a> <a class="Documentation-idLink" href="#Scheme.ConvertFieldLabel" title="Go to Scheme.ConvertFieldLabel" aria-label="Go to Scheme.ConvertFieldLabel">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) ConvertFieldLabel(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, label, value <a href="/builtin#string">string</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>ConvertFieldLabel alters the given field label and value for an kind field selector from
|
|
versioned representation to an unversioned one or returns an error.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.ConvertToVersion" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L477">ConvertToVersion</a> <a class="Documentation-idLink" href="#Scheme.ConvertToVersion" title="Go to Scheme.ConvertToVersion" aria-label="Go to Scheme.ConvertToVersion">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) ConvertToVersion(in <a href="#Object">Object</a>, target <a href="#GroupVersioner">GroupVersioner</a>) (<a href="#Object">Object</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>ConvertToVersion attempts to convert an input object to its matching Kind in another
|
|
version within this scheme. Will return an error if the provided version does not
|
|
contain the inKind (or a mapping by name defined with AddKnownTypeWithName). Will also
|
|
return an error if the conversion does not result in a valid Object being
|
|
returned. Passes target down to the conversion methods as the Context on the scope.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Converter" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L122">Converter</a> <a class="Documentation-idLink" href="#Scheme.Converter" title="Go to Scheme.Converter" aria-label="Go to Scheme.Converter">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Converter() *<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Converter">Converter</a></pre>
|
|
</div>
|
|
<p>Converter allows access to the converter for the scheme
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Default" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L355">Default</a> <a class="Documentation-idLink" href="#Scheme.Default" title="Go to Scheme.Default" aria-label="Go to Scheme.Default">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Default(src <a href="#Object">Object</a>)</pre>
|
|
</div>
|
|
<p>Default sets defaults on the provided Object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.IsGroupRegistered" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L707">IsGroupRegistered</a> <a class="Documentation-idLink" href="#Scheme.IsGroupRegistered" title="Go to Scheme.IsGroupRegistered" aria-label="Go to Scheme.IsGroupRegistered">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) IsGroupRegistered(group <a href="/builtin#string">string</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsGroupRegistered returns true if types for the group have been registered with the scheme
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.IsUnversioned" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L290">IsUnversioned</a> <a class="Documentation-idLink" href="#Scheme.IsUnversioned" title="Go to Scheme.IsUnversioned" aria-label="Go to Scheme.IsUnversioned">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) IsUnversioned(obj <a href="#Object">Object</a>) (<a href="/builtin#bool">bool</a>, <a href="/builtin#bool">bool</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.IsVersionRegistered" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L717">IsVersionRegistered</a> <a class="Documentation-idLink" href="#Scheme.IsVersionRegistered" title="Go to Scheme.IsVersionRegistered" aria-label="Go to Scheme.IsVersionRegistered">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) IsVersionRegistered(version <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>IsVersionRegistered returns true if types for the version have been registered with the scheme
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.KnownTypes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L209">KnownTypes</a> <a class="Documentation-idLink" href="#Scheme.KnownTypes" title="Go to Scheme.KnownTypes" aria-label="Go to Scheme.KnownTypes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) KnownTypes(gv <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) map[<a href="/builtin#string">string</a>]<a href="/reflect">reflect</a>.<a href="/reflect#Type">Type</a></pre>
|
|
</div>
|
|
<p>KnownTypes returns the types known for the given version.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Name" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L740">Name</a> <a class="Documentation-idLink" href="#Scheme.Name" title="Go to Scheme.Name" aria-label="Go to Scheme.Name">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Name() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.New" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L306">New</a> <a class="Documentation-idLink" href="#Scheme.New" title="Go to Scheme.New" aria-label="Go to Scheme.New">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) New(kind <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) (<a href="#Object">Object</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>New returns a new API object of the given version and name, or an error if it hasn't
|
|
been registered. The version and kind fields must be specified.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.ObjectKinds" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L254">ObjectKinds</a> <a class="Documentation-idLink" href="#Scheme.ObjectKinds" title="Go to Scheme.ObjectKinds" aria-label="Go to Scheme.ObjectKinds">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) ObjectKinds(obj <a href="#Object">Object</a>) ([]<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, <a href="/builtin#bool">bool</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>ObjectKinds returns all possible group,version,kind of the go object, true if the
|
|
object is considered unversioned, or an error if it's not a pointer or is unregistered.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L55">OpenAPIModelName</a> <a class="Documentation-idLink" href="#Scheme.OpenAPIModelName" title="Go to Scheme.OpenAPIModelName" aria-label="Go to Scheme.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#Scheme">Scheme</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.PreferredVersionAllGroups" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L682">PreferredVersionAllGroups</a> <a class="Documentation-idLink" href="#Scheme.PreferredVersionAllGroups" title="Go to Scheme.PreferredVersionAllGroups" aria-label="Go to Scheme.PreferredVersionAllGroups">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) PreferredVersionAllGroups() []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a></pre>
|
|
</div>
|
|
<p>PreferredVersionAllGroups returns the most preferred version for every group.
|
|
group ordering is random.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.PrioritizedVersionsAllGroups" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L658">PrioritizedVersionsAllGroups</a> <a class="Documentation-idLink" href="#Scheme.PrioritizedVersionsAllGroups" title="Go to Scheme.PrioritizedVersionsAllGroups" aria-label="Go to Scheme.PrioritizedVersionsAllGroups">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) PrioritizedVersionsAllGroups() []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a></pre>
|
|
</div>
|
|
<p>PrioritizedVersionsAllGroups returns all known versions in their priority order. Groups are random, but
|
|
versions for a single group are prioritized
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.PrioritizedVersionsForGroup" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L632">PrioritizedVersionsForGroup</a> <a class="Documentation-idLink" href="#Scheme.PrioritizedVersionsForGroup" title="Go to Scheme.PrioritizedVersionsForGroup" aria-label="Go to Scheme.PrioritizedVersionsForGroup">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) PrioritizedVersionsForGroup(group <a href="/builtin#string">string</a>) []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a></pre>
|
|
</div>
|
|
<p>PrioritizedVersionsForGroup returns versions for a single group in priority order
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Recognizes" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L285">Recognizes</a> <a class="Documentation-idLink" href="#Scheme.Recognizes" title="Go to Scheme.Recognizes" aria-label="Go to Scheme.Recognizes">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Recognizes(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) <a href="/builtin#bool">bool</a></pre>
|
|
</div>
|
|
<p>Recognizes returns true if the scheme is able to handle the provided group,version,kind
|
|
of an object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.SetVersionPriority" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L612">SetVersionPriority</a> <a class="Documentation-idLink" href="#Scheme.SetVersionPriority" title="Go to Scheme.SetVersionPriority" aria-label="Go to Scheme.SetVersionPriority">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) SetVersionPriority(versions ...<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>SetVersionPriority allows specifying a precise order of priority. All specified versions must be in the same group,
|
|
and the specified order overwrites any previously specified order for this group
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.ToOpenAPIDefinitionName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L763">ToOpenAPIDefinitionName</a> <a class="Documentation-idLink" href="#Scheme.ToOpenAPIDefinitionName" title="Go to Scheme.ToOpenAPIDefinitionName" aria-label="Go to Scheme.ToOpenAPIDefinitionName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.34.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) ToOpenAPIDefinitionName(groupVersionKind <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>) (<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>ToOpenAPIDefinitionName returns the REST-friendly OpenAPI definition name known type identified by groupVersionKind.
|
|
If the groupVersionKind does not identify a known type, an error is returned.
|
|
The Version field of groupVersionKind is required, and the Group and Kind fields are required for unstructured.Unstructured
|
|
types. If a required field is empty, an error is returned.
|
|
</p><p>The OpenAPI definition name is the canonical name of the type, with the group and version removed.
|
|
For example, the OpenAPI definition name of Pod is `io.k8s.api.core.v1.Pod`.
|
|
</p><p>This respects the util.OpenAPIModelNamer interface and will return the name returned by
|
|
OpenAPIModelName() if it is defined on the type.
|
|
</p><p>A known type that is registered as an unstructured.Unstructured type is treated as a custom resource and
|
|
which has an OpenAPI definition name of the form `<reversed-group>.<version.<kind>`.
|
|
For example, the OpenAPI definition name of `group: stable.example.com, version: v1, kind: Pod` is
|
|
`com.example.stable.v1.Pod`.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.UnsafeConvertToVersion" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L484">UnsafeConvertToVersion</a> <a class="Documentation-idLink" href="#Scheme.UnsafeConvertToVersion" title="Go to Scheme.UnsafeConvertToVersion" aria-label="Go to Scheme.UnsafeConvertToVersion">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) UnsafeConvertToVersion(in <a href="#Object">Object</a>, target <a href="#GroupVersioner">GroupVersioner</a>) (<a href="#Object">Object</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>UnsafeConvertToVersion will convert in to the provided target if such a conversion is possible,
|
|
but does not guarantee the output object does not share fields with the input object. It attempts to be as
|
|
efficient as possible when doing conversion.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.Validate" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L373">Validate</a> <a class="Documentation-idLink" href="#Scheme.Validate" title="Go to Scheme.Validate" aria-label="Go to Scheme.Validate">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.33.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) Validate(ctx <a href="/context">context</a>.<a href="/context#Context">Context</a>, options []<a href="/builtin#string">string</a>, object <a href="#Object">Object</a>, subresources ...<a href="/builtin#string">string</a>) <a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field">field</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field#ErrorList">ErrorList</a></pre>
|
|
</div>
|
|
<p>Validate validates the provided Object according to the generated declarative validation code.
|
|
WARNING: This does not validate all objects! The handwritten validation code in validation.go
|
|
is not run when this is called. Only the generated zz_generated.validations.go validation code is run.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.ValidateUpdate" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L383">ValidateUpdate</a> <a class="Documentation-idLink" href="#Scheme.ValidateUpdate" title="Go to Scheme.ValidateUpdate" aria-label="Go to Scheme.ValidateUpdate">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.33.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) ValidateUpdate(ctx <a href="/context">context</a>.<a href="/context#Context">Context</a>, options []<a href="/builtin#string">string</a>, object, oldObject <a href="#Object">Object</a>, subresources ...<a href="/builtin#string">string</a>) <a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field">field</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/util/validation/field#ErrorList">ErrorList</a></pre>
|
|
</div>
|
|
<p>ValidateUpdate validates the provided object and oldObject according to the generated declarative validation code.
|
|
WARNING: This does not validate all objects! The handwritten validation code in validation.go
|
|
is not run when this is called. Only the generated zz_generated.validations.go validation code is run.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Scheme.VersionsForGroupKind" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Scheme) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go#L223">VersionsForGroupKind</a> <a class="Documentation-idLink" href="#Scheme.VersionsForGroupKind" title="Go to Scheme.VersionsForGroupKind" aria-label="Go to Scheme.VersionsForGroupKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.21.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (s *<a href="#Scheme">Scheme</a>) VersionsForGroupKind(gk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupKind">GroupKind</a>) []<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersion">GroupVersion</a></pre>
|
|
</div>
|
|
<p>VersionsForGroupKind returns the versions that a particular GroupKind can be converted to within the given group.
|
|
A GroupKind might be converted to a different group. That information is available in EquivalentResourceMapper.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SchemeBuilder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme_builder.go#L23">SchemeBuilder</a> <a class="Documentation-idLink" href="#SchemeBuilder" title="Go to SchemeBuilder" aria-label="Go to SchemeBuilder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type SchemeBuilder []func(*<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>SchemeBuilder collects functions that add things to a scheme. It's to allow
|
|
code to compile without explicitly referencing generated types. You should
|
|
declare one in each package that will have generated deep copy or conversion
|
|
functions.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewSchemeBuilder" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme_builder.go#L44">NewSchemeBuilder</a> <a class="Documentation-idLink" href="#NewSchemeBuilder" title="Go to NewSchemeBuilder" aria-label="Go to NewSchemeBuilder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewSchemeBuilder(funcs ...func(*<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a>) <a href="#SchemeBuilder">SchemeBuilder</a></pre>
|
|
</div>
|
|
<p>NewSchemeBuilder calls Register for you.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SchemeBuilder.AddToScheme" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*SchemeBuilder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme_builder.go#L27">AddToScheme</a> <a class="Documentation-idLink" href="#SchemeBuilder.AddToScheme" title="Go to SchemeBuilder.AddToScheme" aria-label="Go to SchemeBuilder.AddToScheme">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (sb *<a href="#SchemeBuilder">SchemeBuilder</a>) AddToScheme(s *<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>AddToScheme applies all the stored functions to the scheme. A non-nil error
|
|
indicates that one function failed and the attempt was abandoned.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SchemeBuilder.Register" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*SchemeBuilder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme_builder.go#L37">Register</a> <a class="Documentation-idLink" href="#SchemeBuilder.Register" title="Go to SchemeBuilder.Register" aria-label="Go to SchemeBuilder.Register">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (sb *<a href="#SchemeBuilder">SchemeBuilder</a>) Register(funcs ...func(*<a href="#Scheme">Scheme</a>) <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>Register adds a scheme setup function to the list.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Serializer" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L117">Serializer</a> <a class="Documentation-idLink" href="#Serializer" title="Go to Serializer" aria-label="Go to Serializer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Serializer interface {
|
|
<a href="#Encoder">Encoder</a>
|
|
<a href="#Decoder">Decoder</a>
|
|
}</pre>
|
|
</div>
|
|
<p>Serializer is the core interface for transforming objects into a serialized format and back.
|
|
Implementations may choose to perform conversion of the object, but no assumptions should be made.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewBase64Serializer" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L212">NewBase64Serializer</a> <a class="Documentation-idLink" href="#NewBase64Serializer" title="Go to NewBase64Serializer" aria-label="Go to NewBase64Serializer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewBase64Serializer(e <a href="#Encoder">Encoder</a>, d <a href="#Decoder">Decoder</a>) <a href="#Serializer">Serializer</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SerializerInfo" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L145">SerializerInfo</a> <a class="Documentation-idLink" href="#SerializerInfo" title="Go to SerializerInfo" aria-label="Go to SerializerInfo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type SerializerInfo struct {
|
|
<span id="SerializerInfo.MediaType" data-kind="field"> <span class="comment">// MediaType is the value that represents this serializer over the wire.</span>
|
|
</span> MediaType <a href="/builtin#string">string</a>
|
|
<span id="SerializerInfo.MediaTypeType" data-kind="field"> <span class="comment">// MediaTypeType is the first part of the MediaType ("application" in "application/json").</span>
|
|
</span> MediaTypeType <a href="/builtin#string">string</a>
|
|
<span id="SerializerInfo.MediaTypeSubType" data-kind="field"> <span class="comment">// MediaTypeSubType is the second part of the MediaType ("json" in "application/json").</span>
|
|
</span> MediaTypeSubType <a href="/builtin#string">string</a>
|
|
<span id="SerializerInfo.EncodesAsText" data-kind="field"> <span class="comment">// EncodesAsText indicates this serializer can be encoded to UTF-8 safely.</span>
|
|
</span> EncodesAsText <a href="/builtin#bool">bool</a>
|
|
<span id="SerializerInfo.Serializer" data-kind="field"> <span class="comment">// Serializer is the individual object serializer for this media type.</span>
|
|
</span> Serializer <a href="#Serializer">Serializer</a>
|
|
<span id="SerializerInfo.PrettySerializer" data-kind="field"> <span class="comment">// PrettySerializer, if set, can serialize this object in a form biased towards</span>
|
|
</span> <span class="comment">// readability.</span>
|
|
PrettySerializer <a href="#Serializer">Serializer</a>
|
|
<span id="SerializerInfo.StrictSerializer" data-kind="field"> <span class="comment">// StrictSerializer, if set, deserializes this object strictly,</span>
|
|
</span> <span class="comment">// erring on unknown fields.</span>
|
|
StrictSerializer <a href="#Serializer">Serializer</a>
|
|
<span id="SerializerInfo.StreamSerializer" data-kind="field"> <span class="comment">// StreamSerializer, if set, describes the streaming serialization format</span>
|
|
</span> <span class="comment">// for this media type.</span>
|
|
StreamSerializer *<a href="#StreamSerializerInfo">StreamSerializerInfo</a>
|
|
}</pre>
|
|
</div>
|
|
<p>SerializerInfo contains information about a specific serialization format
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SerializerInfoForMediaType" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go#L264">SerializerInfoForMediaType</a> <a class="Documentation-idLink" href="#SerializerInfoForMediaType" title="Go to SerializerInfoForMediaType" aria-label="Go to SerializerInfoForMediaType">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func SerializerInfoForMediaType(types []<a href="#SerializerInfo">SerializerInfo</a>, mediaType <a href="/builtin#string">string</a>) (<a href="#SerializerInfo">SerializerInfo</a>, <a href="/builtin#bool">bool</a>)</pre>
|
|
</div>
|
|
<p>SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot
|
|
include media-type parameters), or the first info with an empty media type, or false if no type matches.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SerializerInfo.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (SerializerInfo) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L60">OpenAPIModelName</a> <a class="Documentation-idLink" href="#SerializerInfo.OpenAPIModelName" title="Go to SerializerInfo.OpenAPIModelName" aria-label="Go to SerializerInfo.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#SerializerInfo">SerializerInfo</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SimpleAllocator" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go#L70">SimpleAllocator</a> <a class="Documentation-idLink" href="#SimpleAllocator" title="Go to SimpleAllocator" aria-label="Go to SimpleAllocator">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type SimpleAllocator struct{}</pre>
|
|
</div>
|
|
<p>SimpleAllocator a wrapper around make([]byte)
|
|
conforms to the MemoryAllocator interface
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SimpleAllocator.Allocate" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*SimpleAllocator) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go#L74">Allocate</a> <a class="Documentation-idLink" href="#SimpleAllocator.Allocate" title="Go to SimpleAllocator.Allocate" aria-label="Go to SimpleAllocator.Allocate">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.24.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (sa *<a href="#SimpleAllocator">SimpleAllocator</a>) Allocate(n <a href="/builtin#uint64">uint64</a>) []<a href="/builtin#byte">byte</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="SimpleAllocator.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (SimpleAllocator) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L65">OpenAPIModelName</a> <a class="Documentation-idLink" href="#SimpleAllocator.OpenAPIModelName" title="Go to SimpleAllocator.OpenAPIModelName" aria-label="Go to SimpleAllocator.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#SimpleAllocator">SimpleAllocator</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Splice" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/splice.go#L29">Splice</a> <a class="Documentation-idLink" href="#Splice" title="Go to Splice" aria-label="Go to Splice">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.28.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Splice interface {
|
|
<span id="Splice.Splice" data-kind="method"> Splice([]<a href="/builtin#byte">byte</a>)
|
|
</span> <a href="/io">io</a>.<a href="/io#Writer">Writer</a>
|
|
<span id="Splice.Reset" data-kind="method"> Reset()
|
|
</span><span id="Splice.Bytes" data-kind="method"> Bytes() []<a href="/builtin#byte">byte</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>Splice is the interface that wraps the Splice method.
|
|
</p><p>Splice moves data from given slice without copying the underlying data for
|
|
efficiency purpose. Therefore, the caller should make sure the underlying
|
|
data is not changed later.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewSpliceBuffer" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/splice.go#L42">NewSpliceBuffer</a> <a class="Documentation-idLink" href="#NewSpliceBuffer" title="Go to NewSpliceBuffer" aria-label="Go to NewSpliceBuffer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.28.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewSpliceBuffer() <a href="#Splice">Splice</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="StorageSerializer" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L217">StorageSerializer</a> <a class="Documentation-idLink" href="#StorageSerializer" title="Go to StorageSerializer" aria-label="Go to StorageSerializer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type StorageSerializer interface {
|
|
<span id="StorageSerializer.SupportedMediaTypes" data-kind="method"> <span class="comment">// SupportedMediaTypes are the media types supported for reading and writing objects.</span>
|
|
</span> SupportedMediaTypes() []<a href="#SerializerInfo">SerializerInfo</a>
|
|
|
|
<span id="StorageSerializer.UniversalDeserializer" data-kind="method"> <span class="comment">// UniversalDeserializer returns a Serializer that can read objects in multiple supported formats</span>
|
|
</span> <span class="comment">// by introspecting the data at rest.</span>
|
|
UniversalDeserializer() <a href="#Decoder">Decoder</a>
|
|
|
|
<span id="StorageSerializer.EncoderForVersion" data-kind="method"> <span class="comment">// EncoderForVersion returns an encoder that ensures objects being written to the provided</span>
|
|
</span> <span class="comment">// serializer are in the provided group version.</span>
|
|
EncoderForVersion(serializer <a href="#Encoder">Encoder</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) <a href="#Encoder">Encoder</a>
|
|
<span id="StorageSerializer.DecoderToVersion" data-kind="method"> <span class="comment">// DecoderForVersion returns a decoder that ensures objects being read by the provided</span>
|
|
</span> <span class="comment">// serializer are in the provided group version by default.</span>
|
|
DecoderToVersion(serializer <a href="#Decoder">Decoder</a>, gv <a href="#GroupVersioner">GroupVersioner</a>) <a href="#Decoder">Decoder</a>
|
|
}</pre>
|
|
</div>
|
|
<p>StorageSerializer is an interface used for obtaining encoders, decoders, and serializers
|
|
that can read and write data at rest. This would commonly be used by client tools that must
|
|
read files, or server side storage interfaces that persist restful objects.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="StreamSerializerInfo" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L168">StreamSerializerInfo</a> <a class="Documentation-idLink" href="#StreamSerializerInfo" title="Go to StreamSerializerInfo" aria-label="Go to StreamSerializerInfo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type StreamSerializerInfo struct {
|
|
<span id="StreamSerializerInfo.EncodesAsText" data-kind="field"> <span class="comment">// EncodesAsText indicates this serializer can be encoded to UTF-8 safely.</span>
|
|
</span> EncodesAsText <a href="/builtin#bool">bool</a>
|
|
<span id="StreamSerializerInfo.Serializer" data-kind="field"> <span class="comment">// Serializer is the top level object serializer for this type when streaming</span>
|
|
</span> <a href="#Serializer">Serializer</a>
|
|
<span id="StreamSerializerInfo.Framer" data-kind="field"> <span class="comment">// Framer is the factory for retrieving streams that separate objects on the wire</span>
|
|
</span> <a href="#Framer">Framer</a>
|
|
}</pre>
|
|
</div>
|
|
<p>StreamSerializerInfo contains information about a specific stream serialization format
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="StreamSerializerInfo.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (StreamSerializerInfo) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L70">OpenAPIModelName</a> <a class="Documentation-idLink" href="#StreamSerializerInfo.OpenAPIModelName" title="Go to StreamSerializerInfo.OpenAPIModelName" aria-label="Go to StreamSerializerInfo.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#StreamSerializerInfo">StreamSerializerInfo</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types.go#L38">TypeMeta</a> <a class="Documentation-idLink" href="#TypeMeta" title="Go to TypeMeta" aria-label="Go to TypeMeta">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type TypeMeta struct {
|
|
<span id="TypeMeta.APIVersion" data-kind="field"> <span class="comment">// +optional</span>
|
|
</span> APIVersion <a href="/builtin#string">string</a> `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"`
|
|
<span id="TypeMeta.Kind" data-kind="field"> <span class="comment">// +optional</span>
|
|
</span> Kind <a href="/builtin#string">string</a> `json:"kind,omitempty" yaml:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"`
|
|
}</pre>
|
|
</div>
|
|
<p>TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type,
|
|
like this:
|
|
</p><pre>type MyAwesomeAPIObject struct {
|
|
runtime.TypeMeta `json:",inline"`
|
|
... // other fields
|
|
}
|
|
</pre><p>func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind
|
|
</p><p>TypeMeta is provided here for convenience. You may use it directly from this package or define
|
|
your own with the same fields.
|
|
</p><p>+k8s:deepcopy-gen=false
|
|
+protobuf=true
|
|
+k8s:openapi-gen=true
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.GetObjectKind" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/register.go#L31">GetObjectKind</a> <a class="Documentation-idLink" href="#TypeMeta.GetObjectKind" title="Go to TypeMeta.GetObjectKind" aria-label="Go to TypeMeta.GetObjectKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (obj *<a href="#TypeMeta">TypeMeta</a>) GetObjectKind() <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#ObjectKind">ObjectKind</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.GroupVersionKind" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/register.go#L27">GroupVersionKind</a> <a class="Documentation-idLink" href="#TypeMeta.GroupVersionKind" title="Go to TypeMeta.GroupVersionKind" aria-label="Go to TypeMeta.GroupVersionKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (obj *<a href="#TypeMeta">TypeMeta</a>) GroupVersionKind() <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a></pre>
|
|
</div>
|
|
<p>GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.Marshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L67">Marshal</a> <a class="Documentation-idLink" href="#TypeMeta.Marshal" title="Go to TypeMeta.Marshal" aria-label="Go to TypeMeta.Marshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) Marshal() (dAtA []<a href="/builtin#byte">byte</a>, err <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.MarshalTo" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L77">MarshalTo</a> <a class="Documentation-idLink" href="#TypeMeta.MarshalTo" title="Go to TypeMeta.MarshalTo" aria-label="Go to TypeMeta.MarshalTo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) MarshalTo(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.MarshalToSizedBuffer" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L82">MarshalToSizedBuffer</a> <a class="Documentation-idLink" href="#TypeMeta.MarshalToSizedBuffer" title="Go to TypeMeta.MarshalToSizedBuffer" aria-label="Go to TypeMeta.MarshalToSizedBuffer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.16.4</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) MarshalToSizedBuffer(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L75">OpenAPIModelName</a> <a class="Documentation-idLink" href="#TypeMeta.OpenAPIModelName" title="Go to TypeMeta.OpenAPIModelName" aria-label="Go to TypeMeta.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#TypeMeta">TypeMeta</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.Reset" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L33">Reset</a> <a class="Documentation-idLink" href="#TypeMeta.Reset" title="Go to TypeMeta.Reset" aria-label="Go to TypeMeta.Reset">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) Reset()</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.SetGroupVersionKind" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/register.go#L22">SetGroupVersionKind</a> <a class="Documentation-idLink" href="#TypeMeta.SetGroupVersionKind" title="Go to TypeMeta.SetGroupVersionKind" aria-label="Go to TypeMeta.SetGroupVersionKind">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (obj *<a href="#TypeMeta">TypeMeta</a>) SetGroupVersionKind(gvk <a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>)</pre>
|
|
</div>
|
|
<p>SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.Size" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L174">Size</a> <a class="Documentation-idLink" href="#TypeMeta.Size" title="Go to TypeMeta.Size" aria-label="Go to TypeMeta.Size">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) Size() (n <a href="/builtin#int">int</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.String" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L222">String</a> <a class="Documentation-idLink" href="#TypeMeta.String" title="Go to TypeMeta.String" aria-label="Go to TypeMeta.String">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (this *<a href="#TypeMeta">TypeMeta</a>) String() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="TypeMeta.Unmarshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*TypeMeta) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L338">Unmarshal</a> <a class="Documentation-idLink" href="#TypeMeta.Unmarshal" title="Go to TypeMeta.Unmarshal" aria-label="Go to TypeMeta.Unmarshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#TypeMeta">TypeMeta</a>) Unmarshal(dAtA []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types.go#L123">Unknown</a> <a class="Documentation-idLink" href="#Unknown" title="Go to Unknown" aria-label="Go to Unknown">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Unknown struct {
|
|
<span id="Unknown.TypeMeta" data-kind="field"> <a href="#TypeMeta">TypeMeta</a> `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"`
|
|
</span><span id="Unknown.Raw" data-kind="field"> <span class="comment">// Raw will hold the complete serialized object which couldn't be matched</span>
|
|
</span> <span class="comment">// with a registered type. Most likely, nothing should be done with this</span>
|
|
<span class="comment">// except for passing it through the system.</span>
|
|
Raw []<a href="/builtin#byte">byte</a> `json:"-" protobuf:"bytes,2,opt,name=raw"`
|
|
<span id="Unknown.ContentEncoding" data-kind="field"> <span class="comment">// ContentEncoding is encoding used to encode 'Raw' data.</span>
|
|
</span> <span class="comment">// Unspecified means no encoding.</span>
|
|
ContentEncoding <a href="/builtin#string">string</a> `protobuf:"bytes,3,opt,name=contentEncoding"`
|
|
<span id="Unknown.ContentType" data-kind="field"> <span class="comment">// ContentType is serialization method used to serialize 'Raw'.</span>
|
|
</span> <span class="comment">// Unspecified means ContentTypeJSON.</span>
|
|
ContentType <a href="/builtin#string">string</a> `protobuf:"bytes,4,opt,name=contentType"`
|
|
}</pre>
|
|
</div>
|
|
<p>Unknown allows api objects with unknown types to be passed-through. This can be used
|
|
to deal with the API objects from a plug-in. Unknown objects still have functioning
|
|
TypeMeta features-- kind, version, etc.
|
|
TODO: Make this object have easy access to field based accessors and settors for
|
|
metadata and field mutatation.
|
|
</p><p>+k8s:deepcopy-gen=true
|
|
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
+protobuf=true
|
|
+k8s:openapi-gen=true
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.DeepCopy" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go#L61">DeepCopy</a> <a class="Documentation-idLink" href="#Unknown.DeepCopy" title="Go to Unknown.DeepCopy" aria-label="Go to Unknown.DeepCopy">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in *<a href="#Unknown">Unknown</a>) DeepCopy() *<a href="#Unknown">Unknown</a></pre>
|
|
</div>
|
|
<p>DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unknown.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.DeepCopyInto" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go#L49">DeepCopyInto</a> <a class="Documentation-idLink" href="#Unknown.DeepCopyInto" title="Go to Unknown.DeepCopyInto" aria-label="Go to Unknown.DeepCopyInto">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in *<a href="#Unknown">Unknown</a>) DeepCopyInto(out *<a href="#Unknown">Unknown</a>)</pre>
|
|
</div>
|
|
<p>DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.DeepCopyObject" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go#L71">DeepCopyObject</a> <a class="Documentation-idLink" href="#Unknown.DeepCopyObject" title="Go to Unknown.DeepCopyObject" aria-label="Go to Unknown.DeepCopyObject">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in *<a href="#Unknown">Unknown</a>) DeepCopyObject() <a href="#Object">Object</a></pre>
|
|
</div>
|
|
<p>DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new Object.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.Marshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L100">Marshal</a> <a class="Documentation-idLink" href="#Unknown.Marshal" title="Go to Unknown.Marshal" aria-label="Go to Unknown.Marshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) Marshal() (dAtA []<a href="/builtin#byte">byte</a>, err <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L86">MarshalJSON</a> <a class="Documentation-idLink" href="#Unknown.MarshalJSON" title="Go to Unknown.MarshalJSON" aria-label="Go to Unknown.MarshalJSON">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (e <a href="#Unknown">Unknown</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>Marshal may get called on pointers or values, so implement MarshalJSON on value.
|
|
<a href="http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go">http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go</a>
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.MarshalTo" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L110">MarshalTo</a> <a class="Documentation-idLink" href="#Unknown.MarshalTo" title="Go to Unknown.MarshalTo" aria-label="Go to Unknown.MarshalTo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) MarshalTo(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.MarshalToSizedBuffer" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L115">MarshalToSizedBuffer</a> <a class="Documentation-idLink" href="#Unknown.MarshalToSizedBuffer" title="Go to Unknown.MarshalToSizedBuffer" aria-label="Go to Unknown.MarshalToSizedBuffer">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.16.4</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) MarshalToSizedBuffer(dAtA []<a href="/builtin#byte">byte</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.MarshalToWriter" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types_proto.go#L56">MarshalToWriter</a> <a class="Documentation-idLink" href="#Unknown.MarshalToWriter" title="Go to Unknown.MarshalToWriter" aria-label="Go to Unknown.MarshalToWriter">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.33.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) MarshalToWriter(w <a href="/io">io</a>.<a href="/io#Writer">Writer</a>, rawSize <a href="/builtin#int">int</a>, writeRaw func(<a href="/io">io</a>.<a href="/io#Writer">Writer</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>MarshalToWriter allows a caller to provide a streaming writer for raw bytes,
|
|
instead of populating them inside the Unknown struct.
|
|
rawSize is the number of bytes rawWriter will write in a success case.
|
|
writeRaw is called when it is time to write the raw bytes. It must return `rawSize, nil` or an error.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.NestedMarshalTo" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types_proto.go#L162">NestedMarshalTo</a> <a class="Documentation-idLink" href="#Unknown.NestedMarshalTo" title="Go to Unknown.NestedMarshalTo" aria-label="Go to Unknown.NestedMarshalTo">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) NestedMarshalTo(data []<a href="/builtin#byte">byte</a>, b <a href="#ProtobufMarshaller">ProtobufMarshaller</a>, size <a href="/builtin#uint64">uint64</a>) (<a href="/builtin#int">int</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>NestedMarshalTo allows a caller to avoid extra allocations during serialization of an Unknown
|
|
that will contain an object that implements ProtobufMarshaller or ProtobufReverseMarshaller.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L80">OpenAPIModelName</a> <a class="Documentation-idLink" href="#Unknown.OpenAPIModelName" title="Go to Unknown.OpenAPIModelName" aria-label="Go to Unknown.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#Unknown">Unknown</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.Reset" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L35">Reset</a> <a class="Documentation-idLink" href="#Unknown.Reset" title="Go to Unknown.Reset" aria-label="Go to Unknown.Reset">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) Reset()</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.Size" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L187">Size</a> <a class="Documentation-idLink" href="#Unknown.Size" title="Go to Unknown.Size" aria-label="Go to Unknown.Size">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) Size() (n <a href="/builtin#int">int</a>)</pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.String" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L233">String</a> <a class="Documentation-idLink" href="#Unknown.String" title="Go to Unknown.String" aria-label="Go to Unknown.String">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (this *<a href="#Unknown">Unknown</a>) String() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.Unmarshal" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go#L452">Unmarshal</a> <a class="Documentation-idLink" href="#Unknown.Unmarshal" title="Go to Unknown.Unmarshal" aria-label="Go to Unknown.Unmarshal">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (m *<a href="#Unknown">Unknown</a>) Unmarshal(dAtA []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unknown.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (*Unknown) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go#L73">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Unknown.UnmarshalJSON" title="Go to Unknown.UnmarshalJSON" aria-label="Go to Unknown.UnmarshalJSON">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (e *<a href="#Unknown">Unknown</a>) UnmarshalJSON(in []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="Unstructured" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go#L365">Unstructured</a> <a class="Documentation-idLink" href="#Unstructured" title="Go to Unstructured" aria-label="Go to Unstructured">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type Unstructured interface {
|
|
<a href="#Object">Object</a>
|
|
<span id="Unstructured.NewEmptyInstance" data-kind="method"> <span class="comment">// NewEmptyInstance returns a new instance of the concrete type containing only kind/apiVersion and no other data.</span>
|
|
</span> <span class="comment">// This should be called instead of reflect.New() for unstructured types because the go type alone does not preserve kind/apiVersion info.</span>
|
|
NewEmptyInstance() <a href="#Unstructured">Unstructured</a>
|
|
<span id="Unstructured.UnstructuredContent" data-kind="method"> <span class="comment">// UnstructuredContent returns a non-nil map with this object's contents. Values may be</span>
|
|
</span> <span class="comment">// []interface{}, map[string]interface{}, or any primitive type. Contents are typically serialized to</span>
|
|
<span class="comment">// and from JSON. SetUnstructuredContent should be used to mutate the contents.</span>
|
|
UnstructuredContent() map[<a href="/builtin#string">string</a>]interface{}
|
|
<span id="Unstructured.SetUnstructuredContent" data-kind="method"> <span class="comment">// SetUnstructuredContent updates the object content to match the provided map.</span>
|
|
</span> SetUnstructuredContent(map[<a href="/builtin#string">string</a>]interface{})
|
|
<span id="Unstructured.IsList" data-kind="method"> <span class="comment">// IsList returns true if this type is a list or matches the list convention - has an array called "items".</span>
|
|
</span> IsList() <a href="/builtin#bool">bool</a>
|
|
<span id="Unstructured.EachListItem" data-kind="method"> <span class="comment">// EachListItem should pass a single item out of the list as an Object to the provided function. Any</span>
|
|
</span> <span class="comment">// error should terminate the iteration. If IsList() returns false, this method should return an error</span>
|
|
<span class="comment">// instead of calling the provided function.</span>
|
|
EachListItem(func(<a href="#Object">Object</a>) <a href="/builtin#error">error</a>) <a href="/builtin#error">error</a>
|
|
<span id="Unstructured.EachListItemWithAlloc" data-kind="method"> <span class="comment">// EachListItemWithAlloc works like EachListItem, but avoids retaining references to a slice of items.</span>
|
|
</span> <span class="comment">// It does this by making a shallow copy of non-pointer items before passing them to fn.</span>
|
|
<span class="comment">//</span>
|
|
<span class="comment">// If the items passed to fn are not retained, or are retained for the same duration, use EachListItem instead for memory efficiency.</span>
|
|
EachListItemWithAlloc(func(<a href="#Object">Object</a>) <a href="/builtin#error">error</a>) <a href="/builtin#error">error</a>
|
|
}</pre>
|
|
</div>
|
|
<p>Unstructured objects store values as map[string]interface{}, with only values that can be serialized
|
|
to JSON allowed.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="UnstructuredConverter" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L43">UnstructuredConverter</a> <a class="Documentation-idLink" href="#UnstructuredConverter" title="Go to UnstructuredConverter" aria-label="Go to UnstructuredConverter">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type UnstructuredConverter interface {
|
|
<span id="UnstructuredConverter.ToUnstructured" data-kind="method"> ToUnstructured(obj interface{}) (map[<a href="/builtin#string">string</a>]interface{}, <a href="/builtin#error">error</a>)
|
|
</span><span id="UnstructuredConverter.FromUnstructured" data-kind="method"> FromUnstructured(u map[<a href="/builtin#string">string</a>]interface{}, obj interface{}) <a href="/builtin#error">error</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>UnstructuredConverter is an interface for converting between interface{}
|
|
and map[string]interface representation.
|
|
</p>
|
|
<div class="Documentation-typeFunc">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="NewTestUnstructuredConverter" data-kind="function" class="Documentation-typeFuncHeader">
|
|
<span>func <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go#L114">NewTestUnstructuredConverter</a> <a class="Documentation-idLink" href="#NewTestUnstructuredConverter" title="Go to NewTestUnstructuredConverter" aria-label="Go to NewTestUnstructuredConverter">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func NewTestUnstructuredConverter(comparison <a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion">conversion</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/conversion#Equalities">Equalities</a>) <a href="#UnstructuredConverter">UnstructuredConverter</a></pre>
|
|
</div>
|
|
<p>NewTestUnstructuredConverter creates an UnstructuredConverter that accepts JSON typed maps and translates them
|
|
to Go types via reflection. It performs mismatch detection automatically and is intended for use by external
|
|
test tools. Use DefaultUnstructuredConverter if you do not explicitly need mismatch detection.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithVersionEncoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L215">WithVersionEncoder</a> <a class="Documentation-idLink" href="#WithVersionEncoder" title="Go to WithVersionEncoder" aria-label="Go to WithVersionEncoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type WithVersionEncoder struct {
|
|
<span id="WithVersionEncoder.Version" data-kind="field"> Version <a href="#GroupVersioner">GroupVersioner</a>
|
|
</span><span id="WithVersionEncoder.Encoder" data-kind="field"> <a href="#Encoder">Encoder</a>
|
|
</span><span id="WithVersionEncoder.ObjectTyper" data-kind="field"> <a href="#ObjectTyper">ObjectTyper</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>WithVersionEncoder serializes an object and ensures the GVK is set.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithVersionEncoder.Encode" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (WithVersionEncoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L222">Encode</a> <a class="Documentation-idLink" href="#WithVersionEncoder.Encode" title="Go to WithVersionEncoder.Encode" aria-label="Go to WithVersionEncoder.Encode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (e <a href="#WithVersionEncoder">WithVersionEncoder</a>) Encode(obj <a href="#Object">Object</a>, stream <a href="/io">io</a>.<a href="/io#Writer">Writer</a>) <a href="/builtin#error">error</a></pre>
|
|
</div>
|
|
<p>Encode does not do conversion. It sets the gvk during serialization.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithVersionEncoder.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (WithVersionEncoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L85">OpenAPIModelName</a> <a class="Documentation-idLink" href="#WithVersionEncoder.OpenAPIModelName" title="Go to WithVersionEncoder.OpenAPIModelName" aria-label="Go to WithVersionEncoder.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#WithVersionEncoder">WithVersionEncoder</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div><div class="Documentation-type">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithoutVersionDecoder" data-kind="type" class="Documentation-typeHeader">
|
|
<span>type <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L250">WithoutVersionDecoder</a> <a class="Documentation-idLink" href="#WithoutVersionDecoder" title="Go to WithoutVersionDecoder" aria-label="Go to WithoutVersionDecoder">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>type WithoutVersionDecoder struct {
|
|
<span id="WithoutVersionDecoder.Decoder" data-kind="field"> <a href="#Decoder">Decoder</a>
|
|
</span>}</pre>
|
|
</div>
|
|
<p>WithoutVersionDecoder clears the group version kind of a deserialized object.
|
|
</p>
|
|
<div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithoutVersionDecoder.Decode" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (WithoutVersionDecoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go#L255">Decode</a> <a class="Documentation-idLink" href="#WithoutVersionDecoder.Decode" title="Go to WithoutVersionDecoder.Decode" aria-label="Go to WithoutVersionDecoder.Decode">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (d <a href="#WithoutVersionDecoder">WithoutVersionDecoder</a>) Decode(data []<a href="/builtin#byte">byte</a>, defaults *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, into <a href="#Object">Object</a>) (<a href="#Object">Object</a>, *<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>.<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema#GroupVersionKind">GroupVersionKind</a>, <a href="/builtin#error">error</a>)</pre>
|
|
</div>
|
|
<p>Decode does not do conversion. It removes the gvk during deserialization.
|
|
</p>
|
|
|
|
|
|
|
|
</div><div class="Documentation-typeMethod">
|
|
|
|
|
|
|
|
<h4 tabindex="-1" id="WithoutVersionDecoder.OpenAPIModelName" data-kind="method" class="Documentation-typeMethodHeader">
|
|
<span>func (WithoutVersionDecoder) <a class="Documentation-source" href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go#L90">OpenAPIModelName</a> <a class="Documentation-idLink" href="#WithoutVersionDecoder.OpenAPIModelName" title="Go to WithoutVersionDecoder.OpenAPIModelName" aria-label="Go to WithoutVersionDecoder.OpenAPIModelName">¶</a></span>
|
|
<span class="Documentation-sinceVersion">
|
|
|
|
<span class="Documentation-sinceVersionLabel">added in</span>
|
|
<span class="Documentation-sinceVersionVersion">v0.35.0</span>
|
|
|
|
</span>
|
|
</h4>
|
|
|
|
|
|
<div class="Documentation-declaration">
|
|
<pre>func (in <a href="#WithoutVersionDecoder">WithoutVersionDecoder</a>) OpenAPIModelName() <a href="/builtin#string">string</a></pre>
|
|
</div>
|
|
<p>OpenAPIModelName returns the OpenAPI model name for this type.
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div></section></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="UnitFiles js-unitFiles">
|
|
<h2 class="UnitFiles-title" id="section-sourcefiles">
|
|
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/insert_drive_file_gm_grey_24dp.svg" alt="">
|
|
Source Files
|
|
<a class="UnitFiles-idLink" href="#section-sourcefiles" title="Go to Source Files" aria-label="Go to Source Files">¶</a>
|
|
</h2><div class="UnitFiles-titleLink">
|
|
<a href="https://github.com/kubernetes/apimachinery/tree/v0.35.1/pkg/runtime" target="_blank" rel="noopener">View all Source files</a>
|
|
</div><div>
|
|
<ul class="UnitFiles-fileList"><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/allocator.go" target="_blank" rel="noopener" title="allocator.go">allocator.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec.go" target="_blank" rel="noopener" title="codec.go">codec.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/codec_check.go" target="_blank" rel="noopener" title="codec_check.go">codec_check.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/conversion.go" target="_blank" rel="noopener" title="conversion.go">conversion.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/converter.go" target="_blank" rel="noopener" title="converter.go">converter.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/doc.go" target="_blank" rel="noopener" title="doc.go">doc.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/embedded.go" target="_blank" rel="noopener" title="embedded.go">embedded.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/error.go" target="_blank" rel="noopener" title="error.go">error.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/extension.go" target="_blank" rel="noopener" title="extension.go">extension.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/generated.pb.go" target="_blank" rel="noopener" title="generated.pb.go">generated.pb.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/helper.go" target="_blank" rel="noopener" title="helper.go">helper.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/interfaces.go" target="_blank" rel="noopener" title="interfaces.go">interfaces.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/mapper.go" target="_blank" rel="noopener" title="mapper.go">mapper.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/negotiate.go" target="_blank" rel="noopener" title="negotiate.go">negotiate.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/register.go" target="_blank" rel="noopener" title="register.go">register.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme.go" target="_blank" rel="noopener" title="scheme.go">scheme.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/scheme_builder.go" target="_blank" rel="noopener" title="scheme_builder.go">scheme_builder.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/splice.go" target="_blank" rel="noopener" title="splice.go">splice.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/swagger_doc_generator.go" target="_blank" rel="noopener" title="swagger_doc_generator.go">swagger_doc_generator.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types.go" target="_blank" rel="noopener" title="types.go">types.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/types_proto.go" target="_blank" rel="noopener" title="types_proto.go">types_proto.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.deepcopy.go" target="_blank" rel="noopener" title="zz_generated.deepcopy.go">zz_generated.deepcopy.go</a></li><li><a href="https://github.com/kubernetes/apimachinery/blob/v0.35.1/pkg/runtime/zz_generated.model_name.go" target="_blank" rel="noopener" title="zz_generated.model_name.go">zz_generated.model_name.go</a></li></ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="UnitDirectories js-unitDirectories">
|
|
<h2 class="UnitDirectories-title" id="section-directories">
|
|
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/folder_gm_grey_24dp.svg" alt="">
|
|
Directories
|
|
<a class="UnitDirectories-idLink" href="#section-directories" title="Go to Directories" aria-label="Go to Directories">¶</a>
|
|
</h2>
|
|
<div class="UnitDirectories-toggles">
|
|
<div class="UnitDirectories-toggleButtons">
|
|
<button class="js-showInternalDirectories" data-test-id="internal-directories-toggle" data-gtmc="directories button" aria-label="Show Internal Directories" aria-describedby="showInternal-description" style="display: block;">
|
|
Show internal
|
|
</button>
|
|
<button class="js-expandAllDirectories" data-test-id="directories-toggle" data-gtmc="directories button" aria-label="Expand all directories" aria-live="polite" style="display: block;">Expand all</button>
|
|
</div>
|
|
</div>
|
|
<table class="UnitDirectories-table UnitDirectories-table--tree js-expandableTable" data-test-id="UnitDirectories-table">
|
|
<tbody><tr class="UnitDirectories-tableHeader UnitDirectories-tableHeader--tree">
|
|
<th>Path</th>
|
|
<th class="UnitDirectories-desktopSynopsis">Synopsis</th>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="">
|
|
<td data-aria-owns="" id="schema">
|
|
<div class="UnitDirectories-pathCell">
|
|
<div><a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/schema">schema</a>
|
|
|
|
</div>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr>
|
|
|
|
|
|
|
|
|
|
<tr class="" aria-controls="serializer-cbor serializer-cbor/direct serializer-cbor/internal/modes serializer-json serializer-protobuf serializer-recognizer serializer-streaming serializer-versioning serializer-yaml ">
|
|
<td data-aria-owns="serializer-cbor serializer-cbor/direct serializer-cbor/internal/modes serializer-json serializer-protobuf serializer-recognizer serializer-streaming serializer-versioning serializer-yaml " id="serializer">
|
|
<div class="UnitDirectories-pathCell">
|
|
<div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="9 more from" aria-controls="serializer-cbor serializer-cbor/direct serializer-cbor/internal/modes serializer-json serializer-protobuf serializer-recognizer serializer-streaming serializer-versioning serializer-yaml " aria-labelledby="serializer-button serializer" id="serializer-button">
|
|
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_right_gm_grey_24dp.svg" alt="">
|
|
</button><a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer">serializer</a>
|
|
|
|
</div>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-cbor">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/cbor">cbor</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-cbor/direct">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/cbor/direct">cbor/direct</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis">Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer.</div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis">Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer.</td></tr><tr class="UnitDirectories-internal hidden" id="serializer-cbor/internal/modes">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/cbor/internal/modes">cbor/internal/modes</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-json">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/json">json</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-protobuf">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/protobuf">protobuf</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis">Package protobuf provides a Kubernetes serializer for the protobuf format.</div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis">Package protobuf provides a Kubernetes serializer for the protobuf format.</td></tr><tr class="hidden" id="serializer-recognizer">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/recognizer">recognizer</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-streaming">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/streaming">streaming</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis">Package streaming implements encoder and decoder for streams of runtime.Objects over io.Writer/Readers.</div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis">Package streaming implements encoder and decoder for streams of runtime.Objects over io.Writer/Readers.</td></tr><tr class="hidden" id="serializer-versioning">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/versioning">versioning</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="serializer-yaml">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/serializer/yaml">yaml</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr>
|
|
|
|
|
|
|
|
|
|
<tr class="" aria-controls="testing-v1 ">
|
|
<td data-aria-owns="testing-v1 " id="testing">
|
|
<div class="UnitDirectories-pathCell">
|
|
<div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="1 more from" aria-controls="testing-v1 " aria-labelledby="testing-button testing" id="testing-button">
|
|
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_right_gm_grey_24dp.svg" alt="">
|
|
</button><a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/testing">testing</a>
|
|
|
|
</div>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr><tr class="hidden" id="testing-v1">
|
|
<td>
|
|
<div class="UnitDirectories-subdirectory">
|
|
<span>
|
|
<a href="/k8s.io/apimachinery@v0.35.1/pkg/runtime/testing/v1">v1</a>
|
|
|
|
|
|
</span>
|
|
<div class="UnitDirectories-mobileSynopsis"></div>
|
|
</div>
|
|
</td>
|
|
<td class="UnitDirectories-desktopSynopsis"></td></tr>
|
|
|
|
|
|
</tbody></table>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div id="showInternal-description" hidden=""> Click to show internal directories. </div>
|
|
<div id="hideInternal-description" hidden=""> Click to hide internal directories. </div>
|
|
</article>
|
|
<footer class="go-Main-footer"></footer>
|
|
</main> |