Documentation ¶
Index ¶
- type RESTMapper
- type Resource
- func (i *Resource) Create(ctx context.Context, cl client.Interface, options *metav1.CreateOptions) error
- func (i *Resource) Delete(ctx context.Context, cl client.Interface, options *metav1.DeleteOptions) error
- func (i *Resource) Get(ctx context.Context, cl client.Interface) error
- func (r Resource) GetRestMapping(restMapper *RESTMapper) error
- func (r Resource) GroupVersionKind() *schema.GroupVersionKind
- func (r Resource) GroupVersionResource() *schema.GroupVersionResource
- func (r Resource) NamespaceScoped() bool
- func (i *Resource) Patch(ctx context.Context, cl client.Interface, pt types.PatchType, data []byte, ...) error
- func (i *Resource) Update(ctx context.Context, cl client.Interface, options *metav1.UpdateOptions) error
- type ResourceCreator
- type ResourceId
- func (r ResourceId) GetRestMapping(restMapper *RESTMapper) error
- func (r ResourceId) GroupVersionKind() *schema.GroupVersionKind
- func (r ResourceId) GroupVersionResource() *schema.GroupVersionResource
- func (r *ResourceId) Name() string
- func (r *ResourceId) Namespace() (string, bool)
- func (r ResourceId) NamespaceScoped() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTMapper ¶
type RESTMapper struct {
// contains filtered or unexported fields
}
func NewRESTMapper ¶
func NewRESTMapper(cachedDiscoveryClient discovery.CachedDiscoveryInterface) *RESTMapper
NewForConfig creates a new restmapper or returns an error.
type Resource ¶
type Resource struct { ResourceId // Optional, this is the most recent value returned by the server if available. It will // typically be in unstructured or internal forms, depending on how the Builder was // defined. If retrieved from the server, the Builder expects the mapping client to // decide the final form. Use the AsVersioned, AsUnstructured, and AsInternal helpers // to alter the object versions. Object runtime.Object }
func (Resource) GetRestMapping ¶
func (r Resource) GetRestMapping(restMapper *RESTMapper) error
func (Resource) GroupVersionKind ¶
func (r Resource) GroupVersionKind() *schema.GroupVersionKind
func (Resource) GroupVersionResource ¶
func (r Resource) GroupVersionResource() *schema.GroupVersionResource
func (Resource) NamespaceScoped ¶
func (r Resource) NamespaceScoped() bool
type ResourceCreator ¶
type ResourceCreator struct {
// contains filtered or unexported fields
}
func NewResourceCreator ¶
func NewResourceCreator() *ResourceCreator
func (*ResourceCreator) NewResourceInfo ¶
func (c *ResourceCreator) NewResourceInfo(groupVersionKind schema.GroupVersionKind, obj runtime.Object) (*Resource, error)
type ResourceId ¶
type ResourceId struct {
// contains filtered or unexported fields
}
func (ResourceId) GetRestMapping ¶
func (r ResourceId) GetRestMapping(restMapper *RESTMapper) error
func (ResourceId) GroupVersionKind ¶
func (r ResourceId) GroupVersionKind() *schema.GroupVersionKind
func (ResourceId) GroupVersionResource ¶
func (r ResourceId) GroupVersionResource() *schema.GroupVersionResource
func (*ResourceId) Name ¶
func (r *ResourceId) Name() string
func (*ResourceId) Namespace ¶
func (r *ResourceId) Namespace() (string, bool)
func (ResourceId) NamespaceScoped ¶
func (r ResourceId) NamespaceScoped() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.