Documentation ¶
Index ¶
- func CreateConfFile()
- func DecodeAccessToken(accessToken string) (tokenJSON []byte, err error)
- func Exists(path string) bool
- func GetAccessToken(file []byte) string
- func GetApiEndpoint(file []byte) string
- func GetHomeDir() string
- func GetLoginEndpoint(file []byte) string
- func GetOrgName(file []byte) string
- func GetRefreshToken(file []byte) string
- func GetSpaceGUID(file []byte) string
- func GetSpaceName(file []byte) string
- func ReadConfigJsonFile() []byte
- type Config
- type Field1Type
- type FieldsType
- type OrgField
- type SpaceField
- type Test1
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfFile ¶
func CreateConfFile()
func DecodeAccessToken ¶
func GetAccessToken ¶
func GetApiEndpoint ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetLoginEndpoint ¶
func GetOrgName ¶
func GetRefreshToken ¶
func GetSpaceGUID ¶
func GetSpaceName ¶
func ReadConfigJsonFile ¶
func ReadConfigJsonFile() []byte
Types ¶
type Field1Type ¶
type Field1Type struct {
Msg string
}
type FieldsType ¶
type FieldsType struct {
Msg string
}
type SpaceField ¶
type Test1 ¶
type Test1 struct { Msg string Field1 Field1Type Fields []FieldsType }
type TokenInfo ¶
type TokenInfo struct { Username string `json:"user_name"` Email string `json:"email"` UserGUID string `json:"user_id"` GUID string `json:"GUID"` Scope []string //`json:"scope":["cloud_controller.read","password.write","cloud_controller.write","openid","uaa.user"]` }
func NewTokenInfo ¶
this code taken from cf cli source code source
Click to show internal directories.
Click to hide internal directories.