authn

package
v2.2.9-ent3-rc1+incomp... Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HarborUserAnnotationAuth  = "authz.management.cattle.io.cn/harborauth"
	HarborUserAnnotationEmail = "authz.management.cattle.io.cn/harboremail"
)

Variables

This section is empty.

Functions

func HashPasswordString

func HashPasswordString(password string) (string, error)

func SetRTBStore

func SetRTBStore(ctx context.Context, schema *types.Schema, mgmt *config.ScaledContext)

func SetUserStore

func SetUserStore(schema *types.Schema, mgmt *config.ScaledContext)

Types

type Handler

type Handler struct {
	UserClient               v3.UserInterface
	GlobalRoleBindingsClient v3.GlobalRoleBindingInterface
	UserAuthRefresher        providerrefresh.UserAuthRefresher
}

func (*Handler) Actions

func (h *Handler) Actions(actionName string, action *types.Action, apiContext *types.APIContext) error

func (*Handler) CollectionFormatter

func (h *Handler) CollectionFormatter(apiContext *types.APIContext, collection *types.GenericCollection)

func (*Handler) UserFormatter

func (h *Handler) UserFormatter(apiContext *types.APIContext, resource *types.RawResource)

type HarborPassword

type HarborPassword struct {
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
}

type HarborUser

type HarborUser struct {
	UserID       int    `json:"user_id"`
	UserName     string `json:"username"`
	Email        string `json:"email"`
	Password     string `json:"password"`
	RealName     string `json:"realname"`
	Deleted      bool   `json:"deleted"`
	HasAdminRole bool   `json:"has_admin_role"`
}

type Store

type Store struct {
	types.Store
	// contains filtered or unexported fields
}

func (*Store) Create

func (s *Store) Create(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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