crd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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

func (c *CRD) HasAPIResource(groupVersion metav1.GroupVersion, name string) (bool, error)

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

Jump to

Keyboard shortcuts

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