Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArgTokenId = "token-id" ArgIdShort = "i" ArgToken = "token" ArgTokenShort = "t" ArgAll = "all" ArgAllShort = "A" ArgExpired = "expired" ArgExpiredShort = "E" ArgCurrent = "current" ArgCurrentShort = "C" ArgContractNo = "contract" ArgPrivileges = "privileges" ArgPrivilegesShort = "p" )
View Source
const ( TokenId = `The unique Key ID of a Token` Token = `The contents of a Token` Privileges = `Use to see the privileges that the user using this Token benefits from` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourcesMocks ¶
type ResourcesMocks struct { Client *mockResources.MockClientService Token *mockResources.MockTokensService }
func InitMocksResources ¶
func InitMocksResources(ctrl *gomock.Controller) *ResourcesMocks
InitMocksResources for Test
type Services ¶
type Services struct { // Auth Resources Services Tokens func() resources.TokensService // Context Context context.Context }
func InitMockServices ¶
func InitMockServices(c *Services, tm *ResourcesMocks) *Services
InitMockServices for Command Test
Click to show internal directories.
Click to hide internal directories.