organization

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, userContext am.UserContext, org *am.Organization, userCID string) (oid int, uid int, ocid string, ucid string, err error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, userContext am.UserContext, orgID int) (oid int, err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, userContext am.UserContext, orgName string) (oid int, org *am.Organization, err error)

func (*Client) GetByAppClientID

func (c *Client) GetByAppClientID(ctx context.Context, userContext am.UserContext, orgAppClientID string) (oid int, org *am.Organization, err error)

func (*Client) GetByCID

func (c *Client) GetByCID(ctx context.Context, userContext am.UserContext, orgCID string) (oid int, org *am.Organization, err error)

func (*Client) GetByID

func (c *Client) GetByID(ctx context.Context, userContext am.UserContext, orgID int) (oid int, org *am.Organization, err error)

func (*Client) Init

func (c *Client) Init(config []byte) error

func (*Client) List

func (c *Client) List(ctx context.Context, userContext am.UserContext, filter *am.OrgFilter) ([]*am.Organization, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration)

func (*Client) Update

func (c *Client) Update(ctx context.Context, userContext am.UserContext, org *am.Organization) (oid int, err error)

Jump to

Keyboard shortcuts

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