client-go: kmodules.xyz/client-go/openapi Index | Files

package openapi

import "kmodules.xyz/client-go/openapi"

Index

Package Files

cd_storage.go getter_storage.go lister_storage.go rd_storage.go render.go std_storage.go types.go

func RenderOpenAPISpec Uses

func RenderOpenAPISpec(cfg Config) (string, error)

type CDStorage Uses

type CDStorage struct {
    // contains filtered or unexported fields
}

func NewCDStorage Uses

func NewCDStorage(cfg ResourceInfo) *CDStorage

func (*CDStorage) Create Uses

func (r *CDStorage) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*CDStorage) Delete Uses

func (r *CDStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

Deleter

func (*CDStorage) GroupVersionKind Uses

func (r *CDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*CDStorage) NamespaceScoped Uses

func (r *CDStorage) NamespaceScoped() bool

func (*CDStorage) New Uses

func (r *CDStorage) New() runtime.Object

Getter

type Config Uses

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 Uses

func (c *Config) GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

type GetterStorage Uses

type GetterStorage struct {
    // contains filtered or unexported fields
}

func NewGetterStorage Uses

func NewGetterStorage(cfg ResourceInfo) *GetterStorage

func (*GetterStorage) Get Uses

func (r *GetterStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*GetterStorage) GroupVersionKind Uses

func (r *GetterStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*GetterStorage) NamespaceScoped Uses

func (r *GetterStorage) NamespaceScoped() bool

func (*GetterStorage) New Uses

func (r *GetterStorage) New() runtime.Object

Getter

type ListerStorage Uses

type ListerStorage struct {
    // contains filtered or unexported fields
}

func NewListerStorage Uses

func NewListerStorage(cfg ResourceInfo) *ListerStorage

func (*ListerStorage) ConvertToTable Uses

func (r *ListerStorage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*ListerStorage) Get Uses

func (r *ListerStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*ListerStorage) GroupVersionKind Uses

func (r *ListerStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*ListerStorage) List Uses

func (r *ListerStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)

func (*ListerStorage) NamespaceScoped Uses

func (r *ListerStorage) NamespaceScoped() bool

func (*ListerStorage) New Uses

func (r *ListerStorage) New() runtime.Object

Getter

func (*ListerStorage) NewList Uses

func (r *ListerStorage) NewList() runtime.Object

Lister

type RDStorage Uses

type RDStorage struct {
    // contains filtered or unexported fields
}

func NewRDStorage Uses

func NewRDStorage(cfg ResourceInfo) *RDStorage

func (*RDStorage) ConvertToTable Uses

func (r *RDStorage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*RDStorage) Delete Uses

func (r *RDStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

Deleter

func (*RDStorage) Get Uses

func (r *RDStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*RDStorage) GroupVersionKind Uses

func (r *RDStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*RDStorage) List Uses

func (r *RDStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)

func (*RDStorage) NamespaceScoped Uses

func (r *RDStorage) NamespaceScoped() bool

func (*RDStorage) New Uses

func (r *RDStorage) New() runtime.Object

Getter

func (*RDStorage) NewList Uses

func (r *RDStorage) NewList() runtime.Object

Lister

type ResourceInfo Uses

type ResourceInfo struct {
    // contains filtered or unexported fields
}

type StandardStorage Uses

type StandardStorage struct {
    // contains filtered or unexported fields
}

func NewStandardStorage Uses

func NewStandardStorage(cfg ResourceInfo) *StandardStorage

func (*StandardStorage) ConvertToTable Uses

func (r *StandardStorage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*StandardStorage) Create Uses

func (r *StandardStorage) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*StandardStorage) Delete Uses

func (r *StandardStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

GracefulDeleter

func (*StandardStorage) DeleteCollection Uses

func (r *StandardStorage) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error)

CollectionDeleter

func (*StandardStorage) Get Uses

func (r *StandardStorage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*StandardStorage) GroupVersionKind Uses

func (r *StandardStorage) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*StandardStorage) List Uses

func (r *StandardStorage) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)

func (*StandardStorage) NamespaceScoped Uses

func (r *StandardStorage) NamespaceScoped() bool

func (*StandardStorage) New Uses

func (r *StandardStorage) New() runtime.Object

Getter

func (*StandardStorage) NewList Uses

func (r *StandardStorage) NewList() runtime.Object

Lister

func (*StandardStorage) Update Uses

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 Uses

func (r *StandardStorage) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)

Watcher

type TypeInfo Uses

type TypeInfo struct {
    GroupVersion    schema.GroupVersion
    Resource        string
    Kind            string
    NamespaceScoped bool
}

type VersionResource Uses

type VersionResource struct {
    Version  string
    Resource string
}

Package openapi imports 18 packages (graph) and is imported by 12 packages. Updated 2020-09-30. Refresh now. Tools for package owners.