Ejemplo n.º 1
0
func identity_auth(o *ostack.Ostack, identity_ver *int) (err error) {
	switch *identity_ver {
	case 2:
		err = o.Authorise()
	case 3:
		err = o.Authorise_v3()
	default:
		fmt.Println("The identity version should be either 2 or 3")
		os.Exit(1)
	}
	return
}