Documentation ¶
Overview ¶
Package v1 contains top-level types and functions for identity-api.
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AddGroupMembers
- type AddGroupMembersJSONRequestBody
- type AddGroupMembersResponse
- type CreateGroup
- type CreateGroupJSONRequestBody
- type CreateIssuer
- type CreateIssuerJSONRequestBody
- type CreateOAuthClient
- type CreateOAuthClientJSONRequestBody
- type DeleteResponse
- type ErrorResponse
- type GetIssuerUsersParams
- type GetOwnerOAuthClientsParams
- type Group
- type GroupCollection
- type GroupID
- type GroupIDCollection
- type GroupMemberCollection
- type Issuer
- type IssuerCollection
- type IssuerID
- type IssuerUpdate
- type ListGroupMembersParams
- type ListGroupsParams
- type ListOwnerIssuersParams
- type ListUserGroupsParams
- type OAuthClient
- type OAuthClientCollection
- type OwnerID
- type PageCursor
- type PageLimit
- type Pagination
- type ReplaceGroupMembersJSONRequestBody
- type SubjectID
- type UpdateGroup
- type UpdateGroupJSONRequestBody
- type UpdateIssuerJSONRequestBody
- type User
- type UserCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
Types ¶
type AddGroupMembers ¶ added in v0.1.21
type AddGroupMembers struct { // MemberIds IDs of the members to add to the group MemberIDs []gidx.PrefixedID `json:"member_ids"` }
AddGroupMembers defines model for AddGroupMembers.
type AddGroupMembersJSONRequestBody ¶ added in v0.1.21
type AddGroupMembersJSONRequestBody = AddGroupMembers
AddGroupMembersJSONRequestBody defines body for AddGroupMembers for application/json ContentType.
type AddGroupMembersResponse ¶ added in v0.1.21
type AddGroupMembersResponse struct { // Success true if the members were added successfully Success bool `json:"success"` }
AddGroupMembersResponse defines model for AddGroupMembersResponse.
type CreateGroup ¶ added in v0.1.21
type CreateGroup struct { // Description a description for the group Description *string `json:"description,omitempty"` // Name a name for the group Name string `json:"name"` }
CreateGroup defines model for CreateGroup.
type CreateGroupJSONRequestBody ¶ added in v0.1.21
type CreateGroupJSONRequestBody = CreateGroup
CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType.
type CreateIssuer ¶
type CreateIssuer struct { // ClaimMappings CEL expressions mapping token claims to other claims ClaimMappings *map[string]string `json:"claim_mappings,omitempty"` // JwksUri JWKS URI JWKSURI string `json:"jwks_uri"` // Name A human-readable name for the issuer Name string `json:"name"` // Uri URI for the issuer. Must match the "iss" claim value in incoming JWTs URI string `json:"uri"` }
CreateIssuer defines model for CreateIssuer.
type CreateIssuerJSONRequestBody ¶
type CreateIssuerJSONRequestBody = CreateIssuer
CreateIssuerJSONRequestBody defines body for CreateIssuer for application/json ContentType.
type CreateOAuthClient ¶ added in v0.0.8
type CreateOAuthClient struct { // Audience Audiences that this client can request Audience *[]string `json:"audience,omitempty"` // Name A human-readable name for the client Name string `json:"name"` }
CreateOAuthClient defines model for CreateOAuthClient.
type CreateOAuthClientJSONRequestBody ¶ added in v0.0.8
type CreateOAuthClientJSONRequestBody = CreateOAuthClient
CreateOAuthClientJSONRequestBody defines body for CreateOAuthClient for application/json ContentType.
type DeleteResponse ¶
type DeleteResponse struct { // Success Always true. Success bool `json:"success"` }
DeleteResponse defines model for DeleteResponse.
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
ErrorResponse represents a generic error response.
type GetIssuerUsersParams ¶ added in v0.1.20
type GetIssuerUsersParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
GetIssuerUsersParams defines parameters for GetIssuerUsers.
func (GetIssuerUsersParams) GetCursor ¶ added in v0.1.20
func (p GetIssuerUsersParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (GetIssuerUsersParams) GetLimit ¶ added in v0.1.20
func (p GetIssuerUsersParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (GetIssuerUsersParams) GetOnlyFields ¶ added in v0.1.20
func (p GetIssuerUsersParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `id`.
func (GetIssuerUsersParams) SetPagination ¶ added in v0.1.20
func (p GetIssuerUsersParams) SetPagination(collection *UserCollection) error
SetPagination sets the pagination on the provided collection.
type GetOwnerOAuthClientsParams ¶ added in v0.1.20
type GetOwnerOAuthClientsParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
GetOwnerOAuthClientsParams defines parameters for GetOwnerOAuthClients.
func (GetOwnerOAuthClientsParams) GetCursor ¶ added in v0.1.20
func (p GetOwnerOAuthClientsParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (GetOwnerOAuthClientsParams) GetLimit ¶ added in v0.1.20
func (p GetOwnerOAuthClientsParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (GetOwnerOAuthClientsParams) GetOnlyFields ¶ added in v0.1.20
func (p GetOwnerOAuthClientsParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `id`.
func (GetOwnerOAuthClientsParams) SetPagination ¶ added in v0.1.20
func (p GetOwnerOAuthClientsParams) SetPagination(collection *OAuthClientCollection) error
SetPagination sets the pagination on the provided collection.
type Group ¶ added in v0.1.21
type Group struct { // Description a description for the group Description *string `json:"description,omitempty"` // Id ID of the group ID gidx.PrefixedID `json:"id"` // Name a name for the group Name string `json:"name"` // OwnerId ID of the owner of the group OwnerID *gidx.PrefixedID `json:"owner_id,omitempty"` }
Group defines model for Group.
type GroupCollection ¶ added in v0.1.21
type GroupCollection struct { Groups []Group `json:"groups"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
GroupCollection defines model for GroupCollection.
type GroupIDCollection ¶ added in v0.1.21
type GroupIDCollection struct { GroupIDs []gidx.PrefixedID `json:"group_ids"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
GroupIDCollection defines model for GroupIDCollection.
type GroupMemberCollection ¶ added in v0.1.21
type GroupMemberCollection struct { GroupID gidx.PrefixedID `json:"group_id"` MemberIDs []gidx.PrefixedID `json:"member_ids"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
GroupMemberCollection defines model for GroupMemberCollection.
type Issuer ¶
type Issuer struct { // ClaimMappings CEL expressions mapping token claims to other claims ClaimMappings map[string]string `json:"claim_mappings"` // Id ID of the issuer ID gidx.PrefixedID `json:"id"` // JwksUri JWKS URI JWKSURI string `json:"jwks_uri"` // Name A human-readable name for the issuer Name string `json:"name"` // Uri URI for the issuer. Must match the "iss" claim value in incoming JWTs URI string `json:"uri"` }
Issuer defines model for Issuer.
type IssuerCollection ¶ added in v0.1.20
type IssuerCollection struct { Issuers []Issuer `json:"issuers"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
IssuerCollection defines model for IssuerCollection.
type IssuerID ¶ added in v0.1.20
type IssuerID = gidx.PrefixedID
IssuerID defines model for issuerID.
type IssuerUpdate ¶
type IssuerUpdate struct { // ClaimMappings CEL expressions mapping token claims to other claims ClaimMappings *map[string]string `json:"claim_mappings,omitempty"` // JwksUri JWKS URI JWKSURI *string `json:"jwks_uri,omitempty"` // Name A human-readable name for the issuer Name *string `json:"name,omitempty"` // Uri URI for the issuer. Must match the "iss" claim value in incoming JWTs URI *string `json:"uri,omitempty"` }
IssuerUpdate defines model for IssuerUpdate.
type ListGroupMembersParams ¶ added in v0.1.21
type ListGroupMembersParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
ListGroupMembersParams defines parameters for ListGroupMembers.
func (ListGroupMembersParams) GetCursor ¶ added in v0.1.21
func (p ListGroupMembersParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (ListGroupMembersParams) GetLimit ¶ added in v0.1.21
func (p ListGroupMembersParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (ListGroupMembersParams) GetOnlyFields ¶ added in v0.1.21
func (p ListGroupMembersParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `subject_id`.
func (ListGroupMembersParams) SetPagination ¶ added in v0.1.21
func (p ListGroupMembersParams) SetPagination(collection *GroupMemberCollection) error
SetPagination sets the pagination on the provided collection.
type ListGroupsParams ¶ added in v0.1.21
type ListGroupsParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
ListGroupsParams defines parameters for ListGroups.
func (ListGroupsParams) GetCursor ¶ added in v0.1.21
func (p ListGroupsParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (ListGroupsParams) GetLimit ¶ added in v0.1.21
func (p ListGroupsParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (ListGroupsParams) GetOnlyFields ¶ added in v0.1.21
func (p ListGroupsParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `id`.
func (ListGroupsParams) SetPagination ¶ added in v0.1.21
func (p ListGroupsParams) SetPagination(collection *GroupCollection) error
SetPagination sets the pagination on the provided collection.
type ListOwnerIssuersParams ¶ added in v0.1.20
type ListOwnerIssuersParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
ListOwnerIssuersParams defines parameters for ListOwnerIssuers.
func (ListOwnerIssuersParams) GetCursor ¶ added in v0.1.20
func (p ListOwnerIssuersParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (ListOwnerIssuersParams) GetLimit ¶ added in v0.1.20
func (p ListOwnerIssuersParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (ListOwnerIssuersParams) GetOnlyFields ¶ added in v0.1.20
func (p ListOwnerIssuersParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `id`.
func (ListOwnerIssuersParams) SetPagination ¶ added in v0.1.20
func (p ListOwnerIssuersParams) SetPagination(collection *IssuerCollection) error
SetPagination sets the pagination on the provided collection.
type ListUserGroupsParams ¶ added in v0.1.21
type ListUserGroupsParams struct { // Cursor the cursor to the results to return Cursor *PageCursor `form:"cursor,omitempty" json:"cursor,omitempty" query:"cursor"` // Limit limits the response collections Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty" query:"limit"` }
ListUserGroupsParams defines parameters for ListUserGroups.
func (ListUserGroupsParams) GetCursor ¶ added in v0.1.21
func (p ListUserGroupsParams) GetCursor() *crdbx.Cursor
GetCursor implements crdbx.Paginator returning the cursor.
func (ListUserGroupsParams) GetLimit ¶ added in v0.1.21
func (p ListUserGroupsParams) GetLimit() int
GetLimit implements crdbx.Paginator returning requested limit.
func (ListUserGroupsParams) GetOnlyFields ¶ added in v0.1.21
func (p ListUserGroupsParams) GetOnlyFields() []string
GetOnlyFields implements crdbx.Paginator setting the only permitted field to `group_id`.
func (ListUserGroupsParams) SetPagination ¶ added in v0.1.21
func (p ListUserGroupsParams) SetPagination(collection *GroupIDCollection) error
SetPagination sets the pagination on the provided collection.
type OAuthClient ¶ added in v0.0.8
type OAuthClient struct { // Audience Grantable audiences Audience []string `json:"audience"` // Id OAuth 2.0 Client ID ID gidx.PrefixedID `json:"id"` // Name Description of Client Name string `json:"name"` // Secret OAuth2.0 Client Secret Secret *string `json:"secret,omitempty"` }
OAuthClient defines model for OAuthClient.
type OAuthClientCollection ¶ added in v0.1.20
type OAuthClientCollection struct { Clients []OAuthClient `json:"clients"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
OAuthClientCollection defines model for OAuthClientCollection.
type PageCursor ¶ added in v0.1.20
PageCursor defines model for pageCursor.
type Pagination ¶ added in v0.1.20
type Pagination struct { // Limit the limit used for the collection response Limit int `json:"limit"` // Next the cursor for the next page Next *crdbx.Cursor `json:"next,omitempty"` }
Pagination collection response pagination
type ReplaceGroupMembersJSONRequestBody ¶ added in v0.1.21
type ReplaceGroupMembersJSONRequestBody = AddGroupMembers
ReplaceGroupMembersJSONRequestBody defines body for ReplaceGroupMembers for application/json ContentType.
type SubjectID ¶ added in v0.1.21
type SubjectID = gidx.PrefixedID
SubjectID defines model for subjectID.
type UpdateGroup ¶ added in v0.1.21
type UpdateGroup struct { // Description a description for the group Description *string `json:"description,omitempty"` // Name a name for the group Name *string `json:"name,omitempty"` }
UpdateGroup defines model for UpdateGroup.
type UpdateGroupJSONRequestBody ¶ added in v0.1.21
type UpdateGroupJSONRequestBody = UpdateGroup
UpdateGroupJSONRequestBody defines body for UpdateGroup for application/json ContentType.
type UpdateIssuerJSONRequestBody ¶
type UpdateIssuerJSONRequestBody = IssuerUpdate
UpdateIssuerJSONRequestBody defines body for UpdateIssuer for application/json ContentType.
type User ¶ added in v0.1.17
type User struct { // Email Email of the user Email *string `json:"email,omitempty"` // Id OAuth 2.0 User ID ID gidx.PrefixedID `json:"id"` // Iss OAuth 2.0 Issuer of the user Issuer string `json:"iss"` // Name Name of the user Name *string `json:"name,omitempty"` // Sub OAuth 2.0 Subject for the user Subject string `json:"sub"` }
User defines model for User.
type UserCollection ¶ added in v0.1.20
type UserCollection struct { // Pagination collection response pagination Pagination Pagination `json:"pagination"` Users []User `json:"users"` }
UserCollection defines model for UserCollection.