service_token

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin) *ServiceTokenAPI

func (*ServiceTokenAPI) Create

creates new token

func (*ServiceTokenAPI) Delete

func (st *ServiceTokenAPI) Delete(IDs []string) (int64, error)

Delete items

func (*ServiceTokenAPI) Get

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL