auth_v1

package
v6.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (*Services) InitServices

func (c *Services) InitServices(client *client.Client) error

InitServices for Commands

Directories

Path Synopsis
mocks
Package mock_resources is a generated GoMock package.
Package mock_resources is a generated GoMock package.

Jump to

Keyboard shortcuts

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