luci: Index | Files

package revocation

import ""

Package revocation contains utilities for implementing token revocation.

Not really implemented for now.


Package Files

doc.go id.go

func GenerateTokenID Uses

func GenerateTokenID(c context.Context, kind string) (int64, error)

GenerateTokenID produces an int64 that can be used as a token identifier.

We reuse datastore ID generator to produce token ids. The tokens are not actually stored in the datastore. The generated ID sequence is associated with some entity kind (indicated via 'kind'). If we ever need to restart the ID sequence, this kind can be changed.

Package revocation imports 3 packages (graph) and is imported by 4 packages. Updated 2021-01-25. Refresh now. Tools for package owners.