Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRD ¶
type CRD struct {
// contains filtered or unexported fields
}
func NewCRD ¶
func NewCRD(sri ServerResourcesInterface) *CRD
func (*CRD) HasAPIResource ¶
HasAPIResource checks whether a given resource is registered under a given API group and resource or not.
func (*CRD) ListAPIResources ¶
func (c *CRD) ListAPIResources(groupVersion metav1.GroupVersion) ([]metav1.APIResource, error)
ListAPIResources returns all API resources registered for a given API group and version.
type ServerResourcesInterface ¶
type ServerResourcesInterface interface { // ServerResourcesForGroupVersion returns the supported resources for a group and version. ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) }
ServerResourcesInterface has methods for obtaining supported resources on the API server
Click to show internal directories.
Click to hide internal directories.