Documentation ¶
Index ¶
- Constants
- func IsUnregisteredErr(err error) bool
- func ParseGVR(name string) (*schema.GroupVersionResource, error)
- type KV
- type KVLocal
- type KVMap
- type Pool
- type Registry
- func (r *Registry) DiscoverResources(cfg *rest.Config) error
- func (r *Registry) ExistsGVK(gvk schema.GroupVersionKind) (bool, error)
- func (r *Registry) ExistsGVR(gvr schema.GroupVersionResource) (bool, error)
- func (r *Registry) FindGVR(in *metav1.GroupKind, keepOfficialTypes bool) (schema.GroupVersionResource, bool)
- func (r *Registry) GVK(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (r *Registry) GVR(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func (r *Registry) IsGVKNamespaced(gvr schema.GroupVersionKind) (bool, error)
- func (r *Registry) IsGVRNamespaced(gvr schema.GroupVersionResource) (bool, error)
- func (r *Registry) IsPreferred(gvr schema.GroupVersionResource) (bool, error)
- func (r *Registry) Kinds() []schema.GroupVersionKind
- func (r *Registry) LoadByFile(filename string) (*v1alpha1.ResourceDescriptor, error)
- func (r *Registry) LoadByGVK(gvk schema.GroupVersionKind) (*v1alpha1.ResourceDescriptor, error)
- func (r *Registry) LoadByGVR(gvr schema.GroupVersionResource) (*v1alpha1.ResourceDescriptor, error)
- func (r *Registry) LoadByName(name string) (*v1alpha1.ResourceDescriptor, error)
- func (r *Registry) Missing(in schema.GroupVersionResource) bool
- func (r *Registry) Preferred(gvr schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (r *Registry) Refresh(cfg *rest.Config) error
- func (r *Registry) Register(gvr schema.GroupVersionResource, cfg *rest.Config) error
- func (r *Registry) Reset()
- func (r *Registry) ResourceIDForGVK(in schema.GroupVersionKind) (*kmapi.ResourceID, error)
- func (r *Registry) ResourceIDForGVR(in schema.GroupVersionResource) (*kmapi.ResourceID, error)
- func (r *Registry) Resources() []schema.GroupVersionResource
- func (r *Registry) TypeMeta(gvr schema.GroupVersionResource) (metav1.TypeMeta, error)
- func (r *Registry) Visit(f func(key string, val *v1alpha1.ResourceDescriptor))
- type UnregisteredErr
Constants ¶
View Source
const (
CRDIconSVG = "https://cdn.appscode.com/k8s/icons/apiextensions.k8s.io/customresourcedefinitions.svg"
)
View Source
const KnownUID = "__known__"
View Source
const PoolSize = 1024 // This number should match the max number of concurrent clusters handled
Variables ¶
This section is empty.
Functions ¶
func IsUnregisteredErr ¶ added in v0.9.0
Types ¶
type KV ¶
type KV interface { Set(key string, val *v1alpha1.ResourceDescriptor) Get(key string) (*v1alpha1.ResourceDescriptor, bool) Visit(func(key string, val *v1alpha1.ResourceDescriptor)) }
func NewKVLocal ¶
func NewKVLocal() KV
type KVLocal ¶
type KVLocal struct {
// contains filtered or unexported fields
}
KVLocal is not concurrent safe.
type KVMap ¶
type KVMap struct {
// contains filtered or unexported fields
}
KVMap is concurrent safe.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) GetRegistry ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistryOfKnownResources ¶
func NewRegistryOfKnownResources() *Registry
func (*Registry) DiscoverResources ¶ added in v0.3.3
func (*Registry) ExistsGVK ¶ added in v0.5.5
func (r *Registry) ExistsGVK(gvk schema.GroupVersionKind) (bool, error)
func (*Registry) ExistsGVR ¶ added in v0.5.5
func (r *Registry) ExistsGVR(gvr schema.GroupVersionResource) (bool, error)
func (*Registry) GVK ¶
func (r *Registry) GVK(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error)
func (*Registry) GVR ¶
func (r *Registry) GVR(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
func (*Registry) IsGVKNamespaced ¶ added in v0.8.0
func (r *Registry) IsGVKNamespaced(gvr schema.GroupVersionKind) (bool, error)
func (*Registry) IsGVRNamespaced ¶ added in v0.8.0
func (r *Registry) IsGVRNamespaced(gvr schema.GroupVersionResource) (bool, error)
func (*Registry) IsPreferred ¶ added in v0.5.3
func (r *Registry) IsPreferred(gvr schema.GroupVersionResource) (bool, error)
func (*Registry) Kinds ¶ added in v0.8.0
func (r *Registry) Kinds() []schema.GroupVersionKind
func (*Registry) LoadByFile ¶
func (r *Registry) LoadByFile(filename string) (*v1alpha1.ResourceDescriptor, error)
func (*Registry) LoadByGVK ¶ added in v0.8.0
func (r *Registry) LoadByGVK(gvk schema.GroupVersionKind) (*v1alpha1.ResourceDescriptor, error)
func (*Registry) LoadByGVR ¶
func (r *Registry) LoadByGVR(gvr schema.GroupVersionResource) (*v1alpha1.ResourceDescriptor, error)
func (*Registry) LoadByName ¶
func (r *Registry) LoadByName(name string) (*v1alpha1.ResourceDescriptor, error)
func (*Registry) Missing ¶ added in v0.3.11
func (r *Registry) Missing(in schema.GroupVersionResource) bool
func (*Registry) Preferred ¶ added in v0.5.3
func (r *Registry) Preferred(gvr schema.GroupVersionResource) (schema.GroupVersionResource, error)
func (*Registry) ResourceIDForGVK ¶ added in v0.5.6
func (r *Registry) ResourceIDForGVK(in schema.GroupVersionKind) (*kmapi.ResourceID, error)
func (*Registry) ResourceIDForGVR ¶ added in v0.5.6
func (r *Registry) ResourceIDForGVR(in schema.GroupVersionResource) (*kmapi.ResourceID, error)
func (*Registry) Resources ¶
func (r *Registry) Resources() []schema.GroupVersionResource
type UnregisteredErr ¶
type UnregisteredErr struct {
// contains filtered or unexported fields
}
func (UnregisteredErr) Error ¶
func (e UnregisteredErr) Error() string
Click to show internal directories.
Click to hide internal directories.