Versions in this module Expand all Collapse all v2 v2.1.1 Dec 9, 2025 v2.0.0 Jun 18, 2023 Changes in this version + type ServiceTokenAPI struct + func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin) *ServiceTokenAPI + func (st *ServiceTokenAPI) Create(newToken *svcTokenTY.ServiceToken) (*svcTokenTY.CreateTokenResponse, error) + func (st *ServiceTokenAPI) Delete(IDs []string) (int64, error) + func (st *ServiceTokenAPI) Get(filters []storageTY.Filter) (svcTokenTY.ServiceToken, error) + func (st *ServiceTokenAPI) GetByID(ID string) (svcTokenTY.ServiceToken, error) + func (st *ServiceTokenAPI) GetByTokenID(tokenID string) (svcTokenTY.ServiceToken, error) + func (st *ServiceTokenAPI) GetByUserID(userID string) (svcTokenTY.ServiceToken, error) + func (st *ServiceTokenAPI) GetEntityInterface() interface{} + func (st *ServiceTokenAPI) Import(data interface{}) error + func (st *ServiceTokenAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error) + func (st *ServiceTokenAPI) Save(token *svcTokenTY.ServiceToken) error