Documentation ¶
Index ¶
- type ClusterClientset
- type ClusterInterface
- type ClusterResourceClient
- func (c *ClusterResourceClient) Cluster(clusterPath logicalcluster.Path) metadata.Getter
- func (c *ClusterResourceClient) List(ctx context.Context, opts metav1.ListOptions) (*metav1.PartialObjectMetadataList, error)
- func (c *ClusterResourceClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type ResourceClusterInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterClientset ¶
type ClusterClientset struct {
// contains filtered or unexported fields
}
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*ClusterClientset, error)
NewForConfig creates a new ClusterClientset for the given config. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfig will generate a rate-limiter in configShallowCopy. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfigAndClient ¶
NewForConfigAndClient creates a new ClusterClientset for the given config and http client. Note the http client provided takes precedence over the configured transport values. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) *ClusterClientset
NewForConfigOrDie creates a new ClusterClientset for the given config and panics if there is an error in the config.
func (*ClusterClientset) Cluster ¶
func (c *ClusterClientset) Cluster(clusterPath logicalcluster.Path) metadata.Interface
Cluster scopes the client down to a particular cluster.
func (*ClusterClientset) Resource ¶
func (c *ClusterClientset) Resource(resource schema.GroupVersionResource) ResourceClusterInterface
type ClusterInterface ¶
type ClusterInterface interface { Cluster(logicalcluster.Path) metadata.Interface Resource(resource schema.GroupVersionResource) ResourceClusterInterface }
type ClusterResourceClient ¶
type ClusterResourceClient struct {
// contains filtered or unexported fields
}
func (*ClusterResourceClient) Cluster ¶
func (c *ClusterResourceClient) Cluster(clusterPath logicalcluster.Path) metadata.Getter
Cluster scopes the client down to a particular cluster.
func (*ClusterResourceClient) List ¶
func (c *ClusterResourceClient) List(ctx context.Context, opts metav1.ListOptions) (*metav1.PartialObjectMetadataList, error)
List returns the entire collection of all resources across all clusters.
func (*ClusterResourceClient) Watch ¶
func (c *ClusterResourceClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch begins to watch all resources across all clusters.