pkg

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupLooker

type GroupLooker interface {
	GetUsersInGroup(ctx context.Context, gid string, cached bool) ([]string, error)
	GetUserGroups(ctx context.Context, uid string, cached bool) ([]string, error)
	GetUsersInComputingGroup(ctx context.Context, gid string, cached bool) ([]string, error)
	GetUserComputingGroups(ctx context.Context, gid string, cached bool) ([]string, error)
	GetTTLForUser(ctx context.Context, uid string) (time.Duration, error)
	GetTTLForGroup(ctx context.Context, gid string) (time.Duration, error)
	GetTTLForComputingUser(ctx context.Context, uid string) (time.Duration, error)
	GetTTLForComputingGroup(ctx context.Context, gid string) (time.Duration, error)
	Search(ctx context.Context, filter string, cached bool) ([]*SearchEntry, error)
}

type GroupLookerError

type GroupLookerError struct {
	Code    GroupLookerErrorCode
	Message string
}

func NewGroupLookerError

func NewGroupLookerError(code GroupLookerErrorCode) GroupLookerError

func (GroupLookerError) Error

func (sr GroupLookerError) Error() string

func (GroupLookerError) WithMessage

func (sr GroupLookerError) WithMessage(msg string) GroupLookerError

type GroupLookerErrorCode

type GroupLookerErrorCode string
const (
	GroupLookerErrorNotFound GroupLookerErrorCode = "GROUPLOOKER_ERROR_NOT_FOUND"
)

type LDAPAccountType added in v1.4.0

type LDAPAccountType string
var (
	LDAPAccountTypePrimary   LDAPAccountType = "primary"
	LDAPAccountTypeSecondary LDAPAccountType = "secondary"
	LDAPAccountTypeService   LDAPAccountType = "service"
	LDAPAccountTypeEGroup    LDAPAccountType = "egroup"
	LDAPAccountTypeUnixGroup LDAPAccountType = "unixgroup"
	LDAPAccountTypeUndefined LDAPAccountType = "undefined"
)

type SearchEntry added in v1.4.0

type SearchEntry struct {
	DN          string          `json:"dn"`
	CN          string          `json:"cn"`
	AccountType LDAPAccountType `json:"account_type"`
	DisplayName string          `json:"display_name"`
	Mail        string          `json:"mail"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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