Documentation ¶
Index ¶
- func GetDefinitions(first common.GetOpenAPIDefinitions, rest ...common.GetOpenAPIDefinitions) common.GetOpenAPIDefinitions
- 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, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *CDStorage) Destroy()
- func (r *CDStorage) GetSingularName() string
- 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) Destroy()
- func (r *GetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *GetterStorage) GetSingularName() string
- 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) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *ListerStorage) Destroy()
- func (r *ListerStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *ListerStorage) GetSingularName() string
- 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) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *RDStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *RDStorage) Destroy()
- func (r *RDStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *RDStorage) GetSingularName() string
- 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) 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) GetSingularName() string
- 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
- type VersionResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefinitions ¶
func GetDefinitions(first common.GetOpenAPIDefinitions, rest ...common.GetOpenAPIDefinitions) common.GetOpenAPIDefinitions
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, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Deleter
func (*CDStorage) GetSingularName ¶ added in v0.29.2
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) Destroy ¶ added in v0.25.0
func (r *GetterStorage) Destroy()
func (*GetterStorage) Get ¶
func (r *GetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*GetterStorage) GetSingularName ¶ added in v0.29.2
func (r *GetterStorage) GetSingularName() string
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) ConvertToTable ¶
func (*ListerStorage) Destroy ¶ added in v0.25.0
func (r *ListerStorage) Destroy()
func (*ListerStorage) Get ¶
func (r *ListerStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*ListerStorage) GetSingularName ¶ added in v0.29.2
func (r *ListerStorage) GetSingularName() string
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) ConvertToTable ¶
func (*RDStorage) Delete ¶
func (r *RDStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Deleter
func (*RDStorage) GetSingularName ¶ added in v0.29.2
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) 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 ¶ added in v0.25.0
func (r *StandardStorage) Destroy()
func (*StandardStorage) Get ¶
func (r *StandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*StandardStorage) GetSingularName ¶ added in v0.29.2
func (r *StandardStorage) GetSingularName() string
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 TypeInfo ¶
type TypeInfo struct { GroupVersion schema.GroupVersion Resource string Kind string NamespaceScoped bool }
type VersionResource ¶
Click to show internal directories.
Click to hide internal directories.