lxd/cluster/events.go
func eventsConnect(address string, cert *shared.CertInfo) (*lxd.EventListener, error) {
	client, err := Connect(address, cert, true)
	if err != nil {
		return nil, err
	}

	// Set the project to the special wildcard in order to get notified
	// about all events across all projects.
	client = client.UseProject("*")

	return client.GetEvents()
}
func eventsConnect(address string, cert *shared.CertInfo) (*lxd.EventListener, error) {
	client, err := Connect(address, cert, true)
	if err != nil {
		return nil, err
	}

	// Set the project to the special wildcard in order to get notified
	// about all events across all projects.
	client = client.UseProject("*")

	return client.GetEvents()
}
func eventsConnect ( address string , cert * shared . CertInfo ) ( * lxd . EventListener , error ) { client , err := Connect ( address , cert , true ) if err != nil { return nil , err } // Set the project to the special wildcard in order to get notified // about all events across all projects. client = client . UseProject ( " " ) return client . GetEvents ( ) }
// Establish a client connection to get events from the given node.
Establish a client connection to get events from the given node .