package apimachinery
import "k8s.io/kubernetes/pkg/apimachinery"
Package apimachinery contains the generic API machinery code that is common to both server and clients. This package should never import specific API objects.
Index ¶
Types ¶
type GroupMeta ¶
type GroupMeta struct {
// GroupVersion represents the preferred version of the group.
GroupVersion unversioned.GroupVersion
// GroupVersions is Group + all versions in that group.
GroupVersions []unversioned.GroupVersion
// Codec is the default codec for serializing output that should use
// the preferred version. Use this Codec when writing to
// disk, a data store that is not dynamically versioned, or in tests.
// This codec can decode any object that the schema is aware of.
Codec runtime.Codec
// SelfLinker can set or get the SelfLink field of all API types.
// TODO: when versioning changes, make this part of each API definition.
// TODO(lavalamp): Combine SelfLinker & ResourceVersioner interfaces, force all uses
// to go through the InterfacesFor method below.
SelfLinker runtime.SelfLinker
// RESTMapper provides the default mapping between REST paths and the objects declared in api.Scheme and all known
// versions.
RESTMapper meta.RESTMapper
// InterfacesFor returns the default Codec and ResourceVersioner for a given version
// or an error if the version is not known.
InterfacesFor func(version unversioned.GroupVersion) (*meta.VersionInterfaces, error)
}
GroupMeta stores the metadata of a group.
Source Files ¶
doc.go types.go
Directories ¶
| Path | Synopsis |
|---|---|
| pkg/apimachinery/registered | Package to keep track of API Versions that can be registered and are enabled in api.Scheme. |
- Version
- v1.4.0-beta.9
- Published
- Sep 20, 2016
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.