Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, userContext am.UserContext, org *am.Organization, ...) (oid int, uid int, ocid string, ucid string, err error)
- func (c *Client) Delete(ctx context.Context, userContext am.UserContext, orgID int) (oid int, err error)
- func (c *Client) Get(ctx context.Context, userContext am.UserContext, orgName string) (oid int, org *am.Organization, err error)
- func (c *Client) GetByAppClientID(ctx context.Context, userContext am.UserContext, orgAppClientID string) (oid int, org *am.Organization, err error)
- func (c *Client) GetByCID(ctx context.Context, userContext am.UserContext, orgCID string) (oid int, org *am.Organization, err error)
- func (c *Client) GetByID(ctx context.Context, userContext am.UserContext, orgID int) (oid int, org *am.Organization, err error)
- func (c *Client) Init(config []byte) error
- func (c *Client) List(ctx context.Context, userContext am.UserContext, filter *am.OrgFilter) ([]*am.Organization, error)
- func (c *Client) SetTimeout(timeout time.Duration)
- func (c *Client) Update(ctx context.Context, userContext am.UserContext, org *am.Organization) (oid int, err error)
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 (*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) List ¶
func (c *Client) List(ctx context.Context, userContext am.UserContext, filter *am.OrgFilter) ([]*am.Organization, error)
func (*Client) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.