Documentation
¶
Index ¶
- func CreateBearerToken(ctx context.Context, username, password, tenant string) (string, error)
- type Account
- type AuthResponse
- type Client
- func (c *Client) GetPolicy(ctx context.Context, policyId string) (Policy, error)
- func (c *Client) ListAllGroups(ctx context.Context) ([]Group, error)
- func (c *Client) ListAllPolicies(ctx context.Context) ([]Policy, error)
- func (c *Client) ListAllUsers(ctx context.Context) ([]User, error)
- func (c *Client) ListGroupMembers(ctx context.Context, identityProviderId string, groupId string, ...) ([]User, PaginationData, error)
- func (c *Client) ListGroupsPerProvider(ctx context.Context, identityProviderId string, nextPage string) ([]Group, PaginationData, error)
- func (c *Client) ListIdentityProviderIDs(ctx context.Context) ([]string, error)
- func (c *Client) ListPolicies(ctx context.Context, pageNumber int) ([]Policy, PaginationData, error)
- func (c *Client) ListUsersPerProvider(ctx context.Context, identityProviderId string, nextPage string) ([]User, PaginationData, error)
- type DirectoryEntity
- type Group
- type IdentityProvider
- type PaginationData
- type Policy
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListAllGroups ¶
ListAllGroups returns a list of all groups for all identity providers.
func (*Client) ListAllPolicies ¶ added in v0.0.4
ListAllPolicies returns a paginated list of all policies.
func (*Client) ListAllUsers ¶
ListAllUsers returns a list of all users for all identity providers.
func (*Client) ListGroupMembers ¶
func (c *Client) ListGroupMembers(ctx context.Context, identityProviderId string, groupId string, nextPage string) ([]User, PaginationData, error)
ListGroupUsers returns a list of users for the given identity provider id and group id.
func (*Client) ListGroupsPerProvider ¶
func (c *Client) ListGroupsPerProvider(ctx context.Context, identityProviderId string, nextPage string) ([]Group, PaginationData, error)
ListGroups returns a list of groups for the given identity provider id.
func (*Client) ListIdentityProviderIDs ¶ added in v0.0.8
ListIdentityProviderIDs returns a list of identity provider ids.
func (*Client) ListPolicies ¶ added in v0.0.4
func (c *Client) ListPolicies(ctx context.Context, pageNumber int) ([]Policy, PaginationData, error)
List Policies returns a list of policies.
func (*Client) ListUsersPerProvider ¶
func (c *Client) ListUsersPerProvider(ctx context.Context, identityProviderId string, nextPage string) ([]User, PaginationData, error)
ListUserPerProvider returns a list of users for the given identity provider id.
type DirectoryEntity ¶ added in v0.0.4
type DirectoryEntity struct { ID string `json:"id"` IdentifierInProvider string `json:"identifierInProvider"` IdentityProviderID string `json:"identityProviderId"` IdentityProviderType string `json:"identityProviderType"` Type string `json:"type"` DisplayName string `json:"displayName"` }
Either User or Group.
type IdentityProvider ¶
type PaginationData ¶
type PaginationData struct { First bool `json:"first"` Last bool `json:"last"` Size int `json:"size"` TotalElements int `json:"totalElements"` PerPage int `json:"perPage"` NextPage string `json:"nextPage"` TotalPages int `json:"totalPages"` Number int `json:"number"` NumberOfElements int `json:"numberOfElements"` }
type User ¶
type User struct { Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` RepositoryType string `json:"repository_type"` IsAdmin bool `json:"is_admin"` IsDeleted bool `json:"is_deleted"` Blocked bool `json:"blocked"` NotificationEmail string `json:"notification_email"` ID string `json:"id"` IdentityProviderID string `json:"identity_provider_id"` }
Click to show internal directories.
Click to hide internal directories.