Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *openapi.OrganizationWrite) (*openapi.OrganizationRead, error)
- func (c *Client) Delete(ctx context.Context, organizationID ids.OrganizationID) error
- func (c *Client) Get(ctx context.Context, organizationID ids.OrganizationID) (*openapi.OrganizationRead, error)
- func (c *Client) GetMetadata(ctx context.Context, organizationID ids.OrganizationID) (*Meta, error)
- func (c *Client) List(ctx context.Context, userdb *userdb.UserDatabase, email *string) (openapi.Organizations, error)
- func (c *Client) Update(ctx context.Context, organizationID ids.OrganizationID, ...) error
- type Meta
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) Create ¶ added in v0.2.47
func (c *Client) Create(ctx context.Context, request *openapi.OrganizationWrite) (*openapi.OrganizationRead, error)
func (*Client) Get ¶ added in v0.2.5
func (c *Client) Get(ctx context.Context, organizationID ids.OrganizationID) (*openapi.OrganizationRead, error)
func (*Client) GetMetadata ¶ added in v0.2.0
GetMetadata retrieves the organization metadata. Clients should consult at least the Active status before doing anything with the organization.
func (*Client) List ¶
func (c *Client) List(ctx context.Context, userdb *userdb.UserDatabase, email *string) (openapi.Organizations, error)
func (*Client) Update ¶ added in v0.2.5
func (c *Client) Update(ctx context.Context, organizationID ids.OrganizationID, request *openapi.OrganizationWrite) error
type Meta ¶ added in v0.2.0
type Meta struct {
// ID is the organization's typed identifier, propagated from the validated
// path parameter so callers downstream of GetMetadata keep type safety.
ID ids.OrganizationID
// Namespace is the namespace that is provisioned by the organization.
// Should be usable set when the organization is active.
Namespace string
}
Meta describes the organization.
Click to show internal directories.
Click to hide internal directories.