lib

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderOpenAPISpec

func RenderOpenAPISpec(cfg Config) (string, error)

Types

type Config

type Config struct {
	Scheme *runtime.Scheme
	Codecs serializer.CodecFactory

	Info               spec.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) 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) 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 (*StandardStorage) NamespaceScoped

func (r *StandardStorage) NamespaceScoped() bool

func (*StandardStorage) New

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

Getter

func (*StandardStorage) NewList

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

Lister

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

Watcher

type StatusResourceInfo

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

type StatusStandardStorage

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

func (*StatusStandardStorage) Get

Patcher

func (*StatusStandardStorage) GroupVersionKind

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

func (*StatusStandardStorage) New

Patcher

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL