method

LocalAPI.GlobalVersions

func (local *LocalAPI) GlobalVersions( ctx context.Context, slug string, actor *store.Document, localeOptions ...LocaleOptions, ) ([]store.Version, error)

List access-filtered retained singleton revisions.

Source core/local.go:846

@param ctx
The ctx value.
@param slug
The slug value.
@param actor
The actor value.
@param localeOptions
The localeOptions value.
@returns
The declared result.

GlobalVersion reads one revision. Both have WithOptions forms and apply access to stored snapshots, not merely the current singleton.

Related types

  • LocalAPI

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

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.

  • Version

    One retained version snapshot for a document.