Documentation ¶
Index ¶
- func FromKubeCustomResourceDefinition(customResourceDefinition *v1beta1.CustomResourceDefinition) *skkube.CustomResourceDefinition
- func NewCrdCacheForConfig(ctx context.Context, cluster string, restConfig *rest.Config) clustercache.ClusterCache
- func NewCrdResourceClientFactory(cacheGetter clustercache.CacheGetter) *crdResourceClientFactory
- func NewCustomResourceDefinitionClient(apiExts apiexts.Interface, cache KubeCustomResourceDefinitionCache) skkube.CustomResourceDefinitionClient
- func NewKubeCustomResourceDefinitionCache(ctx context.Context, apiExtsClient apiexts.Interface) (*kubeCustomResourceDefinitionCache, error)
- func ToKubeCustomResourceDefinition(resource resources.Resource) (*v1beta1.CustomResourceDefinition, error)
- type KubeCustomResourceDefinitionCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromKubeCustomResourceDefinition ¶
func FromKubeCustomResourceDefinition(customResourceDefinition *v1beta1.CustomResourceDefinition) *skkube.CustomResourceDefinition
func NewCrdCacheForConfig ¶ added in v0.11.1
func NewCrdCacheForConfig(ctx context.Context, cluster string, restConfig *rest.Config) clustercache.ClusterCache
func NewCrdResourceClientFactory ¶ added in v0.11.6
func NewCrdResourceClientFactory(cacheGetter clustercache.CacheGetter) *crdResourceClientFactory
func NewCustomResourceDefinitionClient ¶
func NewCustomResourceDefinitionClient(apiExts apiexts.Interface, cache KubeCustomResourceDefinitionCache) skkube.CustomResourceDefinitionClient
func NewKubeCustomResourceDefinitionCache ¶
func NewKubeCustomResourceDefinitionCache(ctx context.Context, apiExtsClient apiexts.Interface) (*kubeCustomResourceDefinitionCache, error)
This context should live as long as the cache is desired. i.e. if the cache is shared across clients, it should get a context that has a longer lifetime than the clients themselves
func ToKubeCustomResourceDefinition ¶
func ToKubeCustomResourceDefinition(resource resources.Resource) (*v1beta1.CustomResourceDefinition, error)
Types ¶
type KubeCustomResourceDefinitionCache ¶
type KubeCustomResourceDefinitionCache interface { clustercache.ClusterCache CustomResourceDefinitionLister() apiextslisters.CustomResourceDefinitionLister Subscribe() <-chan struct{} Unsubscribe(<-chan struct{}) }
Click to show internal directories.
Click to hide internal directories.