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