Documentation ¶
Index ¶
- Variables
- func JoinUrl(parts ...string) string
- type Client
- func (c Client) OrganizationAll() ([]v1alpha1.OrganizationSpec, error)
- func (c Client) OrganizationCreate(spec *v1alpha1.OrganizationSpec) (string, error)
- func (c Client) OrganizationDelete(orgId string) error
- func (c Client) OrganizationGet(id string) (*v1alpha1.OrganizationSpec, error)
- func (c Client) OrganizationUpdate(id string, spec *v1alpha1.OrganizationSpec) (*v1alpha1.OrganizationSpec, error)
- func (c Client) UserAdminCreate(reqBody CreateUserRequest) (*CreateUserMeta, error)
- func (c Client) UserAdminDelete(userId string) error
- type CreateOrganizationResponse
- type CreateUserMeta
- type CreateUserRequest
- type CreateUserResponse
- type OrganizationsResponse
- type SetPasswordRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("NotFound")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) OrganizationAll ¶
func (c Client) OrganizationAll() ([]v1alpha1.OrganizationSpec, error)
func (Client) OrganizationCreate ¶
func (c Client) OrganizationCreate(spec *v1alpha1.OrganizationSpec) (string, error)
func (Client) OrganizationDelete ¶
func (Client) OrganizationGet ¶
func (c Client) OrganizationGet(id string) (*v1alpha1.OrganizationSpec, error)
func (Client) OrganizationUpdate ¶
func (c Client) OrganizationUpdate(id string, spec *v1alpha1.OrganizationSpec) (*v1alpha1.OrganizationSpec, error)
func (Client) UserAdminCreate ¶
func (c Client) UserAdminCreate(reqBody CreateUserRequest) (*CreateUserMeta, error)
func (Client) UserAdminDelete ¶
type CreateUserMeta ¶
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct { Status string `json:"Status"` Message string `json:"Message"` Meta CreateUserMeta `json:"Meta"` }
{"Status":"OK","Message":"63da42beed3840bd4cfe69fe3705c9b9","Meta":{"api_model":{},"first_name":"Ahmet","last_name":"Soormally","email_address":"ahmet@tyk.io","org_id":"5f7f958a72a3b40001cb18dc","active":true,"id":"5f7f98427fea06e1b637b2b9","access_key":"63da42beed3840bd4cfe69fe3705c9b9","user_permissions":{"IsAdmin":"admin","ResetPassword":"admin"},"group_id":"","password_max_days":0,"password_updated":"0001-01-01T00:00:00Z","PWHistory":[],"last_login_date":"0001-01-01T00:00:00Z","created_at":"2020-10-08T22:52:50.442Z"}}
type OrganizationsResponse ¶
type OrganizationsResponse struct {
Organizations []v1alpha1.OrganizationSpec `json:"organisations"`
}
type SetPasswordRequest ¶
type SetPasswordRequest struct {
NewPassword string `json:"new_password"`
}
Click to show internal directories.
Click to hide internal directories.