keto

package
v1.0.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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 SDK

type SDK interface {
	RoleSDK
	WardenSDK
	PolicySDK
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL