Documentation ¶
Index ¶
- Variables
- type ResourceGetter
- func (r ResourceGetter) Add(resource string, getter v1alpha2.Interface)
- func (r *ResourceGetter) GetResource(namespace, resource, name string) (interface{}, error)
- func (r *ResourceGetter) ListResources(namespace, resource string, conditions *params.Conditions, orderBy string, ...) (*models.PageableResponse, error)
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) 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)
Click to show internal directories.
Click to hide internal directories.