Documentation ¶
Overview ¶
Package propertyprovider features interfaces and other components that can be used to build a Fleet property provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyCollectionResponse ¶
type PropertyCollectionResponse struct { // Properties is an array of non-resource properties and their values. The key should be the // name of the property, which is a Kubernetes label name; the value is the property data. Properties map[string]clusterv1beta1.PropertyValue // Resources is a group of resources, described by their allocatable capacity and // available capacity. Resources clusterv1beta1.ResourceUsage // Conditions is an array of conditions that explains the property collection status. Conditions []metav1.Condition }
PropertyCollectionResponse is returned by a Fleet property provider to report cluster properties and their property collection status.
type PropertyProvider ¶
type PropertyProvider interface { // Collect is called periodically by the Fleet member agent to collect properties. // // Note that this call should complete promptly. Fleet member agent will cancel the // context if the call does not complete in time. Collect(ctx context.Context) PropertyCollectionResponse // Start is called when the Fleet member agent starts up to initialize the property provider. // This call should not block. // // Note that Fleet member agent will cancel the context when it exits. Start(ctx context.Context, config *rest.Config) error }
PropertyProvider is the interface that every property provider must implement.
Click to show internal directories.
Click to hide internal directories.