Skip to content

Commit

Permalink
sdk: Add go SDK interface
Browse files Browse the repository at this point in the history
Signed-off-by: aeneasr <[email protected]>
  • Loading branch information
aeneasr committed Dec 8, 2018
1 parent 637c78c commit 3dd5f7d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sdk/go/keto/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ import (
"github.com/ory/keto/sdk/go/keto/swagger"
)

type SDK interface {
AddOryAccessControlPolicyRoleMembers(flavor string, id string, body swagger.AddOryAccessControlPolicyRoleMembersBody) (*swagger.OryAccessControlPolicyRole, *swagger.APIResponse, error)
DeleteOryAccessControlPolicy(flavor string, id string) (*swagger.APIResponse, error)
DeleteOryAccessControlPolicyRole(flavor string, id string) (*swagger.APIResponse, error)
DoOryAccessControlPoliciesAllow(flavor string, body swagger.OryAccessControlPolicyAllowedInput) (*swagger.AuthorizationResult, *swagger.APIResponse, error)
GetOryAccessControlPolicy(flavor string, id string) (*swagger.OryAccessControlPolicy, *swagger.APIResponse, error)
GetOryAccessControlPolicyRole(flavor string, id string) (*swagger.OryAccessControlPolicyRole, *swagger.APIResponse, error)
ListOryAccessControlPolicies(flavor string, limit int64, offset int64) ([]swagger.OryAccessControlPolicy, *swagger.APIResponse, error)
ListOryAccessControlPolicyRoles(flavor string, limit int64, offset int64) ([]swagger.OryAccessControlPolicyRole, *swagger.APIResponse, error)
RemoveOryAccessControlPolicyRoleMembers(flavor string, id string, body swagger.RemoveOryAccessControlPolicyRoleMembersBody) (*swagger.APIResponse, error)
UpsertOryAccessControlPolicy(flavor string, body swagger.OryAccessControlPolicy) (*swagger.OryAccessControlPolicy, *swagger.APIResponse, error)
UpsertOryAccessControlPolicyRole(flavor string, body swagger.OryAccessControlPolicyRole) (*swagger.OryAccessControlPolicyRole, *swagger.APIResponse, error)
}

var _ SDK = new(CodeGenSDK)

type CodeGenSDK struct {
*swagger.EnginesApi

Expand Down

0 comments on commit 3dd5f7d

Please sign in to comment.