resource

package
v0.0.0-...-be065d1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResourceNotSupported = errors.New("resource is not supported")

Functions

This section is empty.

Types

type ResourceGetter

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

func NewResourceGetter

func NewResourceGetter(factory informers.InformerFactory) *ResourceGetter

func (ResourceGetter) Add

func (r ResourceGetter) Add(resource string, getter v1alpha2.Interface)

func (*ResourceGetter) GetResource

func (r *ResourceGetter) GetResource(namespace, resource, name string) (interface{}, error)

func (*ResourceGetter) ListResources

func (r *ResourceGetter) ListResources(namespace, resource string, conditions *params.Conditions, orderBy string, reverse bool, limit, offset int) (*models.PageableResponse, error)

Jump to

Keyboard shortcuts

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