Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeGenSDK ¶
type CodeGenSDK struct { *swagger.RoleApi *swagger.WardenApi *swagger.PolicyApi Configuration *Configuration }
func NewCodeGenSDK ¶
func NewCodeGenSDK(c *Configuration) (*CodeGenSDK, error)
CodeGenSDK instantiates a new CodeGenSDK instance or returns an error.
type Configuration ¶
type Configuration struct { // EndpointURL should point to the url of ORY Keto, for example: http://localhost:4466 EndpointURL string }
Configuration configures the CodeGenSDK.
type PolicySDK ¶
type PolicySDK interface { CreatePolicy(body swagger.Policy) (*swagger.Policy, *swagger.APIResponse, error) DeletePolicy(id string) (*swagger.APIResponse, error) GetPolicy(id string) (*swagger.Policy, *swagger.APIResponse, error) ListPolicies(offset int64, limit int64) ([]swagger.Policy, *swagger.APIResponse, error) UpdatePolicy(id string, body swagger.Policy) (*swagger.Policy, *swagger.APIResponse, error) }
type RoleSDK ¶
type RoleSDK interface { AddMembersToRole(id string, body swagger.RoleMembers) (*swagger.APIResponse, error) DeleteRole(id string) (*swagger.APIResponse, error) CreateRole(body swagger.Role) (*swagger.Role, *swagger.APIResponse, error) GetRole(id string) (*swagger.Role, *swagger.APIResponse, error) ListRoles(member string, limit int64, offset int64) ([]swagger.Role, *swagger.APIResponse, error) RemoveMembersFromRole(id string, body swagger.RoleMembers) (*swagger.APIResponse, error) }
type WardenSDK ¶
type WardenSDK interface { IsSubjectAuthorized(body swagger.WardenSubjectAuthorizationRequest) (*swagger.WardenSubjectAuthorizationResponse, *swagger.APIResponse, error) IsOAuth2AccessTokenAuthorized(body swagger.WardenOAuth2AccessTokenAuthorizationRequest) (*swagger.WardenOAuth2AccessTokenAuthorizationResponse, *swagger.APIResponse, error) IsOAuth2ClientAuthorized(body swagger.WardenOAuth2ClientAuthorizationRequest) (*swagger.WardenOAuth2ClientAuthorizationResponse, *swagger.APIResponse, error) }
Click to show internal directories.
Click to hide internal directories.