method

LocalAPI.CountGlobalVersions

CountGlobalVersions counts retained, authorized global snapshots without reading their values.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
slugstringThe slug value.
optionsFindOptionsThe options value.

Returns

The declared result.

(int, error)

Full signature

func (local *LocalAPI) CountGlobalVersions( ctx context.Context, slug string, options FindOptions, ) (int, error)

Source core/local.go:769

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • FindOptions

    Projection, population, authorization, draft, trash, and locale controls for one read.