Documentation
¶
Index ¶
- func Fatal(err error)
- func KubeApply(c client.Client, obj runtime.Object) bool
- func KubeCheck(c client.Client, obj runtime.Object) bool
- func KubeClient() client.Client
- func KubeConfig() *rest.Config
- func KubeCreateSkipExisting(c client.Client, obj runtime.Object) bool
- func KubeDelete(c client.Client, obj runtime.Object) bool
- func KubeObject(text string) runtime.Object
- func NewFastRESTMapper(dc discovery.DiscoveryInterface, filter APIGroupFilterFunc) meta.RESTMapper
- type APIGroupFilterFunc
- type FastRESTMapper
- func (m *FastRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (m *FastRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
- func (m *FastRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
- func (m *FastRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
- func (m *FastRESTMapper) ReDiscover() error
- func (m *FastRESTMapper) ReDiscoverGroupResources(gr *restmapper.APIGroupResources) error
- func (m *FastRESTMapper) ReDiscoverOnError(err error) bool
- func (m *FastRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (m *FastRESTMapper) ResourceSingularizer(resource string) (string, error)
- func (m *FastRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeClient ¶
func KubeConfig ¶
func KubeObject ¶
func NewFastRESTMapper ¶
func NewFastRESTMapper(dc discovery.DiscoveryInterface, filter APIGroupFilterFunc) meta.RESTMapper
Types ¶
type APIGroupFilterFunc ¶
type FastRESTMapper ¶
type FastRESTMapper struct {
Discovery discovery.DiscoveryInterface
Filter APIGroupFilterFunc
Mapper meta.RESTMapper
}
FastRESTMapper loads the mapper data from the server with filter and concurrency and rediscovers the mapping on meta.NoKindMatchError errors See https://github.com/kubernetes-sigs/controller-runtime/issues/537
func (*FastRESTMapper) KindFor ¶
func (m *FastRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
func (*FastRESTMapper) KindsFor ¶
func (m *FastRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
func (*FastRESTMapper) RESTMapping ¶
func (m *FastRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
func (*FastRESTMapper) RESTMappings ¶
func (m *FastRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
func (*FastRESTMapper) ReDiscover ¶
func (m *FastRESTMapper) ReDiscover() error
func (*FastRESTMapper) ReDiscoverGroupResources ¶
func (m *FastRESTMapper) ReDiscoverGroupResources(gr *restmapper.APIGroupResources) error
func (*FastRESTMapper) ReDiscoverOnError ¶
func (m *FastRESTMapper) ReDiscoverOnError(err error) bool
func (*FastRESTMapper) ResourceFor ¶
func (m *FastRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
func (*FastRESTMapper) ResourceSingularizer ¶
func (m *FastRESTMapper) ResourceSingularizer(resource string) (string, error)
func (*FastRESTMapper) ResourcesFor ¶
func (m *FastRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
Click to show internal directories.
Click to hide internal directories.