pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Data Structures | Typedefs | Enumerations | Functions
resources.h File Reference

Scheduler API for resources. More...

#include <stdbool.h>
#include <sys/types.h>
#include <libxml/tree.h>
#include <glib.h>
#include <crm/common/roles.h>
#include <crm/common/scheduler_types.h>
Include dependency graph for resources.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__resource
 

Typedefs

typedef struct pcmk__resource_private pcmk__resource_private_t
 

Enumerations

enum  pe_find {
  pcmk_rsc_match_history = (1 << 0), pcmk_rsc_match_anon_basename = (1 << 1), pcmk_rsc_match_clone_only = (1 << 2), pcmk_rsc_match_current_node = (1 << 3),
  pcmk_rsc_match_basename = (1 << 5)
}
 Search options for resources (exact resource ID always matches) More...
 

Functions

const char * pcmk_resource_id (const pcmk_resource_t *rsc)
 
bool pcmk_resource_is_managed (const pcmk_resource_t *rsc)
 

Detailed Description

Scheduler API for resources.

Definition in file resources.h.

Typedef Documentation

◆ pcmk__resource_private_t

Definition at line 50 of file resources.h.

Enumeration Type Documentation

◆ pe_find

enum pe_find

Search options for resources (exact resource ID always matches)

Enumerator
pcmk_rsc_match_history 

Also match clone instance ID from resource history.

pcmk_rsc_match_anon_basename 

Also match anonymous clone instances by base name.

pcmk_rsc_match_clone_only 

Match only clones and their instances, by either clone or instance ID.

pcmk_rsc_match_current_node 

If matching by node, compare current node instead of assigned node.

pcmk_rsc_match_basename 

Match clone instances (even unique) by base name as well as exact ID.

Definition at line 32 of file resources.h.

Function Documentation

◆ pcmk_resource_id()

const char* pcmk_resource_id ( const pcmk_resource_t rsc)

Definition at line 27 of file resources.c.

◆ pcmk_resource_is_managed()

bool pcmk_resource_is_managed ( const pcmk_resource_t rsc)

Definition at line 41 of file resources.c.