Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenStorage ¶
type TokenStorage interface { Store(ctx context.Context, owner *api.SPIAccessToken, token *api.Token) (string, error) Get(ctx context.Context, owner *api.SPIAccessToken) (*api.Token, error) GetDataLocation(ctx context.Context, owner *api.SPIAccessToken) (string, error) Delete(ctx context.Context, owner *api.SPIAccessToken) error }
TokenStorage is a simple interface on top of Kubernetes client to perform CRUD operations on the tokens. This is done so that we can provide either secret-based or Vault-based implementation.
Click to show internal directories.
Click to hide internal directories.