Documentation ¶
Index ¶
- func RenderOpenAPISpec(cfg Config) (string, error)
- type Config
- type ResourceInfo
- type StandardStorage
- func (r *StandardStorage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *StandardStorage) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *StandardStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *StandardStorage) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *StandardStorage) Destroy()
- func (r *StandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StandardStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *StandardStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *StandardStorage) NamespaceScoped() bool
- func (r *StandardStorage) New() runtime.Object
- func (r *StandardStorage) NewList() runtime.Object
- func (r *StandardStorage) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (r *StandardStorage) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
- type StatusResourceInfo
- type StatusStandardStorage
- func (r *StatusStandardStorage) Destroy()
- func (r *StatusStandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StatusStandardStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *StatusStandardStorage) New() runtime.Object
- func (r *StatusStandardStorage) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderOpenAPISpec ¶
Types ¶
type Config ¶
type Config struct { Scheme *runtime.Scheme Codecs serializer.CodecFactory Info kubespec.InfoProps OpenAPIDefinitions []common.GetOpenAPIDefinitions Resources []schema.GroupVersionResource Mapper *meta.DefaultRESTMapper }
func (*Config) GetOpenAPIDefinitions ¶
func (c *Config) GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
type ResourceInfo ¶
type ResourceInfo struct {
// contains filtered or unexported fields
}
type StandardStorage ¶
type StandardStorage struct {
// contains filtered or unexported fields
}
func NewREST ¶
func NewREST(cfg ResourceInfo) *StandardStorage
func (*StandardStorage) ConvertToTable ¶
func (*StandardStorage) Create ¶
func (r *StandardStorage) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*StandardStorage) Delete ¶
func (r *StandardStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
GracefulDeleter
func (*StandardStorage) DeleteCollection ¶
func (r *StandardStorage) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error)
CollectionDeleter
func (*StandardStorage) Destroy ¶
func (r *StandardStorage) Destroy()
Destroy cleans up its resources on shutdown.
func (*StandardStorage) Get ¶
func (r *StandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*StandardStorage) GroupVersionKind ¶
func (r *StandardStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*StandardStorage) List ¶
func (r *StandardStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*StandardStorage) NamespaceScoped ¶
func (r *StandardStorage) NamespaceScoped() bool
func (*StandardStorage) Update ¶
func (r *StandardStorage) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
CreaterUpdater
func (*StandardStorage) Watch ¶
func (r *StandardStorage) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Watcher
type StatusResourceInfo ¶
type StatusResourceInfo struct {
// contains filtered or unexported fields
}
type StatusStandardStorage ¶
type StatusStandardStorage struct {
// contains filtered or unexported fields
}
func NewStatusREST ¶
func NewStatusREST(cfg StatusResourceInfo) *StatusStandardStorage
func (*StatusStandardStorage) Destroy ¶
func (r *StatusStandardStorage) Destroy()
func (*StatusStandardStorage) Get ¶
func (r *StatusStandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Patcher
func (*StatusStandardStorage) GroupVersionKind ¶
func (r *StatusStandardStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*StatusStandardStorage) Update ¶
func (r *StatusStandardStorage) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Patcher
Click to show internal directories.
Click to hide internal directories.