Documentation ¶
Overview ¶
Package cluster to manage a edgefs cluster.
Index ¶
Constants ¶
View Source
const ( CustomResourceName = "cluster" CustomResourceNamePlural = "clusters" )
Variables ¶
View Source
var ClusterResource = opkit.CustomResource{ Name: CustomResourceName, Plural: CustomResourceNamePlural, Group: edgefsv1alpha1.CustomResourceGroup, Version: edgefsv1alpha1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1alpha1.Cluster{}).Name(), }
Functions ¶
func ClusterOwnerRef ¶
func ClusterOwnerRef(namespace, clusterID string) metav1.OwnerReference
Types ¶
type ClusterController ¶
type ClusterController struct {
// contains filtered or unexported fields
}
func NewClusterController ¶
func NewClusterController(context *clusterd.Context, containerImage string) *ClusterController
func (*ClusterController) StartWatch ¶
func (c *ClusterController) StartWatch(namespace string, stopCh chan struct{}) error
func (*ClusterController) StopWatch ¶
func (c *ClusterController) StopWatch()
Click to show internal directories.
Click to hide internal directories.