Documentation ¶
Overview ¶
Package registry provides code to push and pull Affiliates to different registries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffiliateFromNode ¶
func AffiliateFromNode(node *v1.Node) *cluster.AffiliateSpec
AffiliateFromNode converts Kubernetes Node resource to Affiliate.
If the Node resource doesn't have cluster discovery annotations, nil is returned.
Types ¶
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
Kubernetes defines a Kubernetes-based node discoverer.
func NewKubernetes ¶
func NewKubernetes(client *kubernetes.Client) *Kubernetes
NewKubernetes creates new Kubernetes registry.
func (*Kubernetes) List ¶
func (r *Kubernetes) List(localNodeName string) ([]*cluster.AffiliateSpec, error)
List returns list of Affiliates coming from the registry.
Watch should be called first for the List to return data.
Click to show internal directories.
Click to hide internal directories.