method
LocalAPI.CountGlobalVersions
CountGlobalVersions counts retained, authorized global snapshots without reading their values.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
slug | string | The slug value. |
options | FindOptions | The options value. |
Returns
The declared result.
(int, error)Full signature
func (local *LocalAPI) CountGlobalVersions(
ctx context.Context,
slug string,
options FindOptions,
) (int, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
FindOptionsProjection, population, authorization, draft, trash, and locale controls for one read.