functions

package
v0.0.0-...-1aaa49d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCAddUserFunc

type CCAddUserFunc func(UserIdInfo) error

type Info

type Info struct {
	Ccurl     string
	Uaaurl    string
	Clientid  string
	Secret    string
	RequestFn RequestTokenFunc
}

type OrgFunc

type OrgFunc func(OrgInfo) (string, error)

type OrgFuncs

type OrgFuncs func(*Info) ([]OrgInfo, error)

func (OrgFuncs) MapSpaces

func (orgFuncs OrgFuncs) MapSpaces(spaceFunc SpaceFunc) SpaceFuncs

type OrgInfo

type OrgInfo struct {
	UserIdInfo
	Org  config.Org
	Guid string
}

type RequestTokenFunc

type RequestTokenFunc func(string, string, string, string, io.Reader) (*http.Response, error)

type SpaceFunc

type SpaceFunc func(SpaceInfo) error

type SpaceFuncs

type SpaceFuncs func(*Info) error

type SpaceInfo

type SpaceInfo struct {
	OrgInfo
	Space config.Space
}

type TokenFunc

type TokenFunc func(*Info) (string, error)

func (TokenFunc) MapUsers

func (tokenFunc TokenFunc) MapUsers(config config.Config) UserFuncs

type UaaAddUserFunc

type UaaAddUserFunc func(UserInfo) (string, error)

type UserFuncs

type UserFuncs func(*Info) ([]UserInfo, error)

func (UserFuncs) AddUaaUser

func (userFuncs UserFuncs) AddUaaUser(addUserFunc UaaAddUserFunc) UserIdFuncs

type UserIdFuncs

type UserIdFuncs func(*Info) ([]UserIdInfo, error)

func (UserIdFuncs) AddCCUser

func (userIdFuncs UserIdFuncs) AddCCUser(addUserFunc CCAddUserFunc) UserIdFuncs

func (UserIdFuncs) MapOrgs

func (userIdFuncs UserIdFuncs) MapOrgs(orgFunc OrgFunc) OrgFuncs

type UserIdInfo

type UserIdInfo struct {
	UserInfo
	UserId string
}

type UserInfo

type UserInfo struct {
	*Info
	Token  string
	User   config.User
	Origin string
}

Jump to

Keyboard shortcuts

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