Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoPrivateKeySpecified occurs when the private key was not set // and there was an attempt to create a token ErrNoPrivateKeySpecified = errors.New("private key is nil") )
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator interface { // CreateProjectAdmin creates a signed token that has admin permissions for the project. // Reference is passed as the JWT `amr` value CreateProjectAdmin(projectID string, reference string) (string, error) // Create creates a signed token that has no admin permissions. Create(reference string) (string, error) }
Creator creates all kinds of signed tokens for the background tasks
func NewCreator ¶
NewCreator creates a new token creator for tasks
type CreatorMock ¶
func (*CreatorMock) CreateProjectAdmin ¶
func (m *CreatorMock) CreateProjectAdmin(projectID string, reference string) (string, error)
Click to show internal directories.
Click to hide internal directories.