keto

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 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 Hydra, for example: http://localhost:4444
	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
t or T : Toggle theme light dark auto
y or Y : Canonical URL