Documentation ¶
Index ¶
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceTokenAPI ¶
type ServiceTokenAPI struct {
// contains filtered or unexported fields
}
func (*ServiceTokenAPI) Create ¶
func (st *ServiceTokenAPI) Create(newToken *svcTokenTY.ServiceToken) (*svcTokenTY.CreateTokenResponse, error)
creates new token
func (*ServiceTokenAPI) Delete ¶
func (st *ServiceTokenAPI) Delete(IDs []string) (int64, error)
Delete items
func (*ServiceTokenAPI) Get ¶
func (st *ServiceTokenAPI) Get(filters []storageTY.Filter) (svcTokenTY.ServiceToken, error)
Get returns a item
func (*ServiceTokenAPI) GetByID ¶
func (st *ServiceTokenAPI) GetByID(ID string) (svcTokenTY.ServiceToken, error)
GetByID returns a item
func (*ServiceTokenAPI) GetByTokenID ¶
func (st *ServiceTokenAPI) GetByTokenID(tokenID string) (svcTokenTY.ServiceToken, error)
GetByTokenID returns a item
func (*ServiceTokenAPI) GetByUserID ¶
func (st *ServiceTokenAPI) GetByUserID(userID string) (svcTokenTY.ServiceToken, error)
GetByUserID returns a item
func (*ServiceTokenAPI) GetEntityInterface ¶
func (st *ServiceTokenAPI) GetEntityInterface() interface{}
func (*ServiceTokenAPI) Import ¶
func (st *ServiceTokenAPI) Import(data interface{}) error
func (*ServiceTokenAPI) List ¶
func (st *ServiceTokenAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
List by filter and pagination
func (*ServiceTokenAPI) Save ¶
func (st *ServiceTokenAPI) Save(token *svcTokenTY.ServiceToken) error
Save config into disk
Click to show internal directories.
Click to hide internal directories.