role

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	A permify.API
}

func (*Client) Create

func (client *Client) Create(createRoleParams Create) (*Response, error)

func (*Client) Delete

func (client *Client) Delete(roleName string) (*Response, error)

func (*Client) Get

func (client *Client) Get(roleName string) (*Response, error)

func (*Client) List

func (client *Client) List(listRoleParams List) (*MultipleResponse, error)

type Create

type Create struct {
	Name        string
	Description string
}

func (Create) GetBody

func (r Create) GetBody() (body map[string]interface{})

func (Create) GetMethod

func (r Create) GetMethod() string

func (Create) GetPath

func (r Create) GetPath() string

func (Create) GetQueries

func (r Create) GetQueries() map[string][]string

type Delete

type Delete struct {
	Name string
}

func (Delete) GetBody

func (r Delete) GetBody() map[string]interface{}

func (Delete) GetMethod

func (r Delete) GetMethod() string

func (Delete) GetPath

func (r Delete) GetPath() string

func (Delete) GetQueries

func (r Delete) GetQueries() map[string][]string

type List

type List struct{}

func (List) GetBody

func (r List) GetBody() map[string]interface{}

func (List) GetMethod

func (r List) GetMethod() string

func (List) GetPath

func (r List) GetPath() string

func (List) GetQueries

func (r List) GetQueries() map[string][]string

type MultipleResponse

type MultipleResponse struct {
	Data []permify.Role `json:"data"`
}

type Response

type Response struct {
	Data permify.Role `json:"data"`
}

type Show

type Show struct {
	Name string
}

func (Show) GetBody

func (r Show) GetBody() map[string]interface{}

func (Show) GetMethod

func (r Show) GetMethod() string

func (Show) GetPath

func (r Show) GetPath() string

func (Show) GetQueries

func (r Show) GetQueries() map[string][]string

Jump to

Keyboard shortcuts

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