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) Get ¶
func (r *ResourceGetter) Get(resource, namespace, name string) (runtime.Object, error)
func (*ResourceGetter) List ¶
func (r *ResourceGetter) List(resource, namespace string, query *query.Query) (*api.ListResult, error)
func (*ResourceGetter) TryResource ¶
func (r *ResourceGetter) TryResource(clusterScope bool, resource string) v1alpha3.Interface
TryResource will retrieve a getter with resource name, it doesn't guarantee find resource with correct group version need to refactor this use schema.GroupVersionResource
Click to show internal directories.
Click to hide internal directories.