Documentation ¶
Index ¶
- func RenderOpenAPISpec(cfg Config) (string, error)
- type CDStorage
- func (r *CDStorage) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *CDStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (r *CDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *CDStorage) NamespaceScoped() bool
- func (r *CDStorage) New() runtime.Object
- type Config
- type GetterStorage
- func (r *GetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *GetterStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *GetterStorage) NamespaceScoped() bool
- func (r *GetterStorage) New() runtime.Object
- type ListerStorage
- func (r *ListerStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *ListerStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *ListerStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *ListerStorage) NamespaceScoped() bool
- func (r *ListerStorage) New() runtime.Object
- func (r *ListerStorage) NewList() runtime.Object
- type RDStorage
- func (r *RDStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (r *RDStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *RDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *RDStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *RDStorage) NamespaceScoped() bool
- func (r *RDStorage) New() runtime.Object
- func (r *RDStorage) NewList() runtime.Object
- type ResourceInfo
- type StandardStorage
- func (r *StandardStorage) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *StandardStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (r *StandardStorage) DeleteCollection(ctx context.Context, options *metav1.DeleteOptions, ...) (runtime.Object, error)
- 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 TypeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderOpenAPISpec ¶
Types ¶
type CDStorage ¶
type CDStorage struct {
// contains filtered or unexported fields
}
func NewCDStorage ¶
func NewCDStorage(cfg ResourceInfo) *CDStorage
func (*CDStorage) Delete ¶
func (r *CDStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Deleter
func (*CDStorage) GroupVersionKind ¶
func (r *CDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*CDStorage) NamespaceScoped ¶
type Config ¶
type Config struct { Scheme *runtime.Scheme Codecs serializer.CodecFactory Info spec.InfoProps OpenAPIDefinitions []common.GetOpenAPIDefinitions Resources []TypeInfo GetterResources []TypeInfo ListerResources []TypeInfo CDResources []TypeInfo RDResources []TypeInfo }
func (*Config) GetOpenAPIDefinitions ¶
func (c *Config) GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
type GetterStorage ¶
type GetterStorage struct {
// contains filtered or unexported fields
}
func NewGetterStorage ¶
func NewGetterStorage(cfg ResourceInfo) *GetterStorage
func (*GetterStorage) Get ¶
func (r *GetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*GetterStorage) GroupVersionKind ¶
func (r *GetterStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*GetterStorage) NamespaceScoped ¶
func (r *GetterStorage) NamespaceScoped() bool
type ListerStorage ¶
type ListerStorage struct {
// contains filtered or unexported fields
}
func NewListerStorage ¶
func NewListerStorage(cfg ResourceInfo) *ListerStorage
func (*ListerStorage) Get ¶
func (r *ListerStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*ListerStorage) GroupVersionKind ¶
func (r *ListerStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*ListerStorage) List ¶
func (r *ListerStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*ListerStorage) NamespaceScoped ¶
func (r *ListerStorage) NamespaceScoped() bool
type RDStorage ¶
type RDStorage struct {
// contains filtered or unexported fields
}
func NewRDStorage ¶
func NewRDStorage(cfg ResourceInfo) *RDStorage
func (*RDStorage) Delete ¶
func (r *RDStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Deleter
func (*RDStorage) GroupVersionKind ¶
func (r *RDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*RDStorage) List ¶
func (r *RDStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*RDStorage) NamespaceScoped ¶
type ResourceInfo ¶
type ResourceInfo struct {
// contains filtered or unexported fields
}
type StandardStorage ¶
type StandardStorage struct {
// contains filtered or unexported fields
}
func NewStandardStorage ¶
func NewStandardStorage(cfg ResourceInfo) *StandardStorage
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, options *metav1.DeleteOptions) (runtime.Object, bool, error)
GracefulDeleter
func (*StandardStorage) DeleteCollection ¶
func (r *StandardStorage) DeleteCollection(ctx context.Context, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error)
CollectionDeleter
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
Click to show internal directories.
Click to hide internal directories.