resource

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRawToMap

func ExtractRawToMap(fieldName string, raw []byte) (map[string]interface{}, error)

func FromUnstructured

func FromUnstructured(obj *unstructured.Unstructured, v interface{}) error

func ToStringPtr

func ToStringPtr(val interface{}) *string

func ToUnstructured

func ToUnstructured(v interface{}) (*unstructured.Unstructured, error)

Types

type Service

type Service struct {
	Client   dynamic.NamespaceableResourceInterface
	Informer cache.SharedIndexInformer
	// contains filtered or unexported fields
}

func (*Service) AddIndexers

func (s *Service) AddIndexers(indexers cache.Indexers) error

func (*Service) FindInNamespace

func (s *Service) FindInNamespace(name, namespace string, result interface{}) error

func (*Service) ListInIndex

func (s *Service) ListInIndex(index, key string, results interface{}) error

type ServiceFactory

type ServiceFactory struct {
	Client          dynamic.Interface
	InformerFactory dynamicinformer.DynamicSharedInformerFactory
}

func NewServiceFactory

func NewServiceFactory(client dynamic.Interface, informerFactory dynamicinformer.DynamicSharedInformerFactory) *ServiceFactory

func NewServiceFactoryForConfig

func NewServiceFactoryForConfig(config *rest.Config, informerResyncPeriod time.Duration) (*ServiceFactory, error)

func (*ServiceFactory) ForResource

func (f *ServiceFactory) ForResource(gvr schema.GroupVersionResource) *Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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