charontest

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.7.0

type Client struct {
	mock.Mock
}

func (*Client) Actor added in v0.7.0

func (c *Client) Actor(ctx context.Context, token string) (*charonc.Actor, error)

Actor implements Client interface.

func (*Client) FromContext added in v0.7.0

func (c *Client) FromContext(ctx context.Context) (*charonc.Actor, error)

Context implements Client interface.

func (*Client) IsAuthenticated added in v0.7.0

func (c *Client) IsAuthenticated(ctx context.Context, token string) (bool, error)

IsAuthenticated implements Client interface.

func (*Client) IsGranted added in v0.7.0

func (c *Client) IsGranted(ctx context.Context, userID int64, perm charon.Permission) (bool, error)

func (*Client) Login added in v0.7.0

func (c *Client) Login(ctx context.Context, username, password string) (string, error)

Login implements Client interface.

func (*Client) Logout added in v0.7.0

func (c *Client) Logout(ctx context.Context, token string) error

Logout implements Client interface.

Jump to

Keyboard shortcuts

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