apigen

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package apigen provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

View Source
const (
	Jwt_tokenScopes = "jwt_token.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (*openapi3.Swagger, error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file.

func GetSwaggerSpecReader

func GetSwaggerSpecReader() (io.Reader, error)

GetSwaggerSpecReader returns a reader to the Swagger specification corresponding to the generated code in this file.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

Types

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL     string
	BaseRouter  chi.Router
	Middlewares []MiddlewareFunc
}

type ClaimTokenId

type ClaimTokenId struct {

	// Unix Epoch in seconds
	ExpiresAt int64  `json:"expires_at"`
	TokenId   string `json:"token_id"`
}

ClaimTokenId defines model for ClaimTokenId.

type ClaimTokenIdJSONBody

type ClaimTokenIdJSONBody ClaimTokenId

ClaimTokenIdJSONBody defines parameters for ClaimTokenId.

type ClaimTokenIdJSONRequestBody

type ClaimTokenIdJSONRequestBody ClaimTokenIdJSONBody

ClaimTokenIdJSONRequestBody defines body for ClaimTokenId for application/json ContentType.

type Conflict

type Conflict Error

Conflict defines model for Conflict.

type CreateCredentialsParams

type CreateCredentialsParams struct {
	AccessKey *string `json:"access_key,omitempty"`
	SecretKey *string `json:"secret_key,omitempty"`
}

CreateCredentialsParams defines parameters for CreateCredentials.

type CreateGroupJSONBody

type CreateGroupJSONBody GroupCreation

CreateGroupJSONBody defines parameters for CreateGroup.

type CreateGroupJSONRequestBody

type CreateGroupJSONRequestBody CreateGroupJSONBody

CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType.

type CreatePolicyJSONBody

type CreatePolicyJSONBody Policy

CreatePolicyJSONBody defines parameters for CreatePolicy.

type CreatePolicyJSONRequestBody

type CreatePolicyJSONRequestBody CreatePolicyJSONBody

CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType.

type CreateUserExternalPrincipalParams

type CreateUserExternalPrincipalParams struct {
	PrincipalId string `json:"principalId"`
}

CreateUserExternalPrincipalParams defines parameters for CreateUserExternalPrincipal.

type CreateUserJSONBody

type CreateUserJSONBody UserCreation

CreateUserJSONBody defines parameters for CreateUser.

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody CreateUserJSONBody

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type Credentials

type Credentials struct {
	AccessKeyId string `json:"access_key_id"`

	// Unix Epoch in seconds
	CreationDate int64 `json:"creation_date"`
}

Credentials defines model for Credentials.

type CredentialsList

type CredentialsList struct {
	Pagination Pagination    `json:"pagination"`
	Results    []Credentials `json:"results"`
}

CredentialsList defines model for CredentialsList.

type CredentialsWithSecret

type CredentialsWithSecret struct {
	AccessKeyId string `json:"access_key_id"`

	// Unix Epoch in seconds
	CreationDate    int64  `json:"creation_date"`
	SecretAccessKey string `json:"secret_access_key"`
	UserId          int64  `json:"user_id"`

	// A unique identifier for the user. In password-based authentication should be the email.
	UserName *string `json:"user_name,omitempty"`
}

CredentialsWithSecret defines model for CredentialsWithSecret.

type DeleteUserExternalPrincipalParams

type DeleteUserExternalPrincipalParams struct {
	PrincipalId string `json:"principalId"`
}

DeleteUserExternalPrincipalParams defines parameters for DeleteUserExternalPrincipal.

type Error

type Error struct {

	// short message explaining the error
	Message string `json:"message"`
}

Error defines model for Error.

type ExternalPrincipal

type ExternalPrincipal struct {
	Id     string `json:"id"`
	UserId string `json:"user_id"`
}

ExternalPrincipal defines model for ExternalPrincipal.

type ExternalPrincipalList

type ExternalPrincipalList struct {
	Pagination Pagination          `json:"pagination"`
	Results    []ExternalPrincipal `json:"results"`
}

ExternalPrincipalList defines model for ExternalPrincipalList.

type GetExternalPrincipalParams

type GetExternalPrincipalParams struct {
	PrincipalId string `json:"principalId"`
}

GetExternalPrincipalParams defines parameters for GetExternalPrincipal.

type Group

type Group struct {

	// Unix Epoch in seconds
	CreationDate int64   `json:"creation_date"`
	Id           *string `json:"id,omitempty"`
	Name         string  `json:"name"`
}

Group defines model for Group.

type GroupCreation

type GroupCreation struct {
	Id string `json:"id"`
}

GroupCreation defines model for GroupCreation.

type GroupList

type GroupList struct {
	Pagination Pagination `json:"pagination"`
	Results    []Group    `json:"results"`
}

GroupList defines model for GroupList.

type ListGroupMembersParams

type ListGroupMembersParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupMembersParams defines parameters for ListGroupMembers.

type ListGroupPoliciesParams

type ListGroupPoliciesParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupPoliciesParams defines parameters for ListGroupPolicies.

type ListGroupsParams

type ListGroupsParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupsParams defines parameters for ListGroups.

type ListPoliciesParams

type ListPoliciesParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListPoliciesParams defines parameters for ListPolicies.

type ListUserCredentialsParams

type ListUserCredentialsParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserCredentialsParams defines parameters for ListUserCredentials.

type ListUserExternalPrincipalsParams

type ListUserExternalPrincipalsParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserExternalPrincipalsParams defines parameters for ListUserExternalPrincipals.

type ListUserGroupsParams

type ListUserGroupsParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserGroupsParams defines parameters for ListUserGroups.

type ListUserPoliciesParams

type ListUserPoliciesParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount *PaginationAmount `json:"amount,omitempty"`

	// will return all distinct policies attached to the user or any of its groups
	Effective *bool `json:"effective,omitempty"`
}

ListUserPoliciesParams defines parameters for ListUserPolicies.

type ListUsersParams

type ListUsersParams struct {

	// return items prefixed with this value
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// return items after this value
	After *PaginationAfter `json:"after,omitempty"`

	// how many items to return
	Amount     *PaginationAmount `json:"amount,omitempty"`
	Id         *int64            `json:"id,omitempty"`
	Email      *string           `json:"email,omitempty"`
	ExternalId *string           `json:"external_id,omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type MiddlewareFunc

type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc

type NotFound

type NotFound Error

NotFound defines model for NotFound.

type Pagination

type Pagination struct {

	// Next page is available
	HasMore bool `json:"has_more"`

	// Maximal number of entries per page
	MaxPerPage int `json:"max_per_page"`

	// Token used to retrieve the next page
	NextOffset string `json:"next_offset"`

	// Number of values found in the results
	Results int `json:"results"`
}

Pagination defines model for Pagination.

type PaginationAfter

type PaginationAfter string

PaginationAfter defines model for PaginationAfter.

type PaginationAmount

type PaginationAmount int

PaginationAmount defines model for PaginationAmount.

type PaginationPrefix

type PaginationPrefix string

PaginationPrefix defines model for PaginationPrefix.

type Policy

type Policy struct {
	Acl *string `json:"acl,omitempty"`

	// Unix Epoch in seconds
	CreationDate *int64      `json:"creation_date,omitempty"`
	Name         string      `json:"name"`
	Statement    []Statement `json:"statement"`
}

Policy defines model for Policy.

type PolicyList

type PolicyList struct {
	Pagination Pagination `json:"pagination"`
	Results    []Policy   `json:"results"`
}

PolicyList defines model for PolicyList.

type ServerError

type ServerError Error

ServerError defines model for ServerError.

type ServerInterface

type ServerInterface interface {
	// get credentials
	// (GET /auth/credentials/{accessKeyId})
	GetCredentials(w http.ResponseWriter, r *http.Request, accessKeyId string)
	// describe external principal by id
	// (GET /auth/external/principals)
	GetExternalPrincipal(w http.ResponseWriter, r *http.Request, params GetExternalPrincipalParams)
	// list groups
	// (GET /auth/groups)
	ListGroups(w http.ResponseWriter, r *http.Request, params ListGroupsParams)
	// create group
	// (POST /auth/groups)
	CreateGroup(w http.ResponseWriter, r *http.Request, body CreateGroupJSONRequestBody)
	// delete group
	// (DELETE /auth/groups/{groupId})
	DeleteGroup(w http.ResponseWriter, r *http.Request, groupId string)
	// get group
	// (GET /auth/groups/{groupId})
	GetGroup(w http.ResponseWriter, r *http.Request, groupId string)
	// list group members
	// (GET /auth/groups/{groupId}/members)
	ListGroupMembers(w http.ResponseWriter, r *http.Request, groupId string, params ListGroupMembersParams)
	// delete group membership
	// (DELETE /auth/groups/{groupId}/members/{userId})
	DeleteGroupMembership(w http.ResponseWriter, r *http.Request, groupId string, userId string)
	// add group membership
	// (PUT /auth/groups/{groupId}/members/{userId})
	AddGroupMembership(w http.ResponseWriter, r *http.Request, groupId string, userId string)
	// list group policies
	// (GET /auth/groups/{groupId}/policies)
	ListGroupPolicies(w http.ResponseWriter, r *http.Request, groupId string, params ListGroupPoliciesParams)
	// detach policy from group
	// (DELETE /auth/groups/{groupId}/policies/{policyId})
	DetachPolicyFromGroup(w http.ResponseWriter, r *http.Request, groupId string, policyId string)
	// attach policy to group
	// (PUT /auth/groups/{groupId}/policies/{policyId})
	AttachPolicyToGroup(w http.ResponseWriter, r *http.Request, groupId string, policyId string)
	// list policies
	// (GET /auth/policies)
	ListPolicies(w http.ResponseWriter, r *http.Request, params ListPoliciesParams)
	// create policy
	// (POST /auth/policies)
	CreatePolicy(w http.ResponseWriter, r *http.Request, body CreatePolicyJSONRequestBody)
	// delete policy
	// (DELETE /auth/policies/{policyId})
	DeletePolicy(w http.ResponseWriter, r *http.Request, policyId string)
	// get policy
	// (GET /auth/policies/{policyId})
	GetPolicy(w http.ResponseWriter, r *http.Request, policyId string)
	// update policy
	// (PUT /auth/policies/{policyId})
	UpdatePolicy(w http.ResponseWriter, r *http.Request, body UpdatePolicyJSONRequestBody, policyId string)
	// claim a token ID, returns validation error if already claimed
	// (POST /auth/tokenid/claim)
	ClaimTokenId(w http.ResponseWriter, r *http.Request, body ClaimTokenIdJSONRequestBody)
	// list users
	// (GET /auth/users)
	ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
	// create user
	// (POST /auth/users)
	CreateUser(w http.ResponseWriter, r *http.Request, body CreateUserJSONRequestBody)
	// delete user
	// (DELETE /auth/users/{userId})
	DeleteUser(w http.ResponseWriter, r *http.Request, userId string)
	// get user
	// (GET /auth/users/{userId})
	GetUser(w http.ResponseWriter, r *http.Request, userId string)
	// list user credentials
	// (GET /auth/users/{userId}/credentials)
	ListUserCredentials(w http.ResponseWriter, r *http.Request, userId string, params ListUserCredentialsParams)
	// create credentials
	// (POST /auth/users/{userId}/credentials)
	CreateCredentials(w http.ResponseWriter, r *http.Request, userId string, params CreateCredentialsParams)
	// delete credentials
	// (DELETE /auth/users/{userId}/credentials/{accessKeyId})
	DeleteCredentials(w http.ResponseWriter, r *http.Request, userId string, accessKeyId string)
	// get credentials
	// (GET /auth/users/{userId}/credentials/{accessKeyId})
	GetCredentialsForUser(w http.ResponseWriter, r *http.Request, userId string, accessKeyId string)
	// delete external principal from user's external principal list
	// (DELETE /auth/users/{userId}/external/principals)
	DeleteUserExternalPrincipal(w http.ResponseWriter, r *http.Request, userId string, params DeleteUserExternalPrincipalParams)
	// Create principal as external identity connected to lakeFS user
	// (POST /auth/users/{userId}/external/principals)
	CreateUserExternalPrincipal(w http.ResponseWriter, r *http.Request, userId string, params CreateUserExternalPrincipalParams)
	// list external principals for user
	// (GET /auth/users/{userId}/external/principals/ls)
	ListUserExternalPrincipals(w http.ResponseWriter, r *http.Request, userId string, params ListUserExternalPrincipalsParams)
	// update users friendly name
	// (PUT /auth/users/{userId}/friendly_name)
	UpdateUserFriendlyName(w http.ResponseWriter, r *http.Request, body UpdateUserFriendlyNameJSONRequestBody, userId string)
	// list user groups
	// (GET /auth/users/{userId}/groups)
	ListUserGroups(w http.ResponseWriter, r *http.Request, userId string, params ListUserGroupsParams)
	// update users password
	// (PUT /auth/users/{userId}/password)
	UpdatePassword(w http.ResponseWriter, r *http.Request, body UpdatePasswordJSONRequestBody, userId string)
	// list user policies
	// (GET /auth/users/{userId}/policies)
	ListUserPolicies(w http.ResponseWriter, r *http.Request, userId string, params ListUserPoliciesParams)
	// detach policy from user
	// (DELETE /auth/users/{userId}/policies/{policyId})
	DetachPolicyFromUser(w http.ResponseWriter, r *http.Request, userId string, policyId string)
	// attach policy to user
	// (PUT /auth/users/{userId}/policies/{policyId})
	AttachPolicyToUser(w http.ResponseWriter, r *http.Request, userId string, policyId string)

	// (GET /config/version)
	GetVersion(w http.ResponseWriter, r *http.Request)

	// (GET /healthcheck)
	HealthCheck(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddGroupMembership

func (siw *ServerInterfaceWrapper) AddGroupMembership(w http.ResponseWriter, r *http.Request)

AddGroupMembership operation middleware

func (*ServerInterfaceWrapper) AttachPolicyToGroup

func (siw *ServerInterfaceWrapper) AttachPolicyToGroup(w http.ResponseWriter, r *http.Request)

AttachPolicyToGroup operation middleware

func (*ServerInterfaceWrapper) AttachPolicyToUser

func (siw *ServerInterfaceWrapper) AttachPolicyToUser(w http.ResponseWriter, r *http.Request)

AttachPolicyToUser operation middleware

func (*ServerInterfaceWrapper) ClaimTokenId

func (siw *ServerInterfaceWrapper) ClaimTokenId(w http.ResponseWriter, r *http.Request)

ClaimTokenId operation middleware

func (*ServerInterfaceWrapper) CreateCredentials

func (siw *ServerInterfaceWrapper) CreateCredentials(w http.ResponseWriter, r *http.Request)

CreateCredentials operation middleware

func (*ServerInterfaceWrapper) CreateGroup

func (siw *ServerInterfaceWrapper) CreateGroup(w http.ResponseWriter, r *http.Request)

CreateGroup operation middleware

func (*ServerInterfaceWrapper) CreatePolicy

func (siw *ServerInterfaceWrapper) CreatePolicy(w http.ResponseWriter, r *http.Request)

CreatePolicy operation middleware

func (*ServerInterfaceWrapper) CreateUser

func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser operation middleware

func (*ServerInterfaceWrapper) CreateUserExternalPrincipal

func (siw *ServerInterfaceWrapper) CreateUserExternalPrincipal(w http.ResponseWriter, r *http.Request)

CreateUserExternalPrincipal operation middleware

func (*ServerInterfaceWrapper) DeleteCredentials

func (siw *ServerInterfaceWrapper) DeleteCredentials(w http.ResponseWriter, r *http.Request)

DeleteCredentials operation middleware

func (*ServerInterfaceWrapper) DeleteGroup

func (siw *ServerInterfaceWrapper) DeleteGroup(w http.ResponseWriter, r *http.Request)

DeleteGroup operation middleware

func (*ServerInterfaceWrapper) DeleteGroupMembership

func (siw *ServerInterfaceWrapper) DeleteGroupMembership(w http.ResponseWriter, r *http.Request)

DeleteGroupMembership operation middleware

func (*ServerInterfaceWrapper) DeletePolicy

func (siw *ServerInterfaceWrapper) DeletePolicy(w http.ResponseWriter, r *http.Request)

DeletePolicy operation middleware

func (*ServerInterfaceWrapper) DeleteUser

func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser operation middleware

func (*ServerInterfaceWrapper) DeleteUserExternalPrincipal

func (siw *ServerInterfaceWrapper) DeleteUserExternalPrincipal(w http.ResponseWriter, r *http.Request)

DeleteUserExternalPrincipal operation middleware

func (*ServerInterfaceWrapper) DetachPolicyFromGroup

func (siw *ServerInterfaceWrapper) DetachPolicyFromGroup(w http.ResponseWriter, r *http.Request)

DetachPolicyFromGroup operation middleware

func (*ServerInterfaceWrapper) DetachPolicyFromUser

func (siw *ServerInterfaceWrapper) DetachPolicyFromUser(w http.ResponseWriter, r *http.Request)

DetachPolicyFromUser operation middleware

func (*ServerInterfaceWrapper) GetCredentials

func (siw *ServerInterfaceWrapper) GetCredentials(w http.ResponseWriter, r *http.Request)

GetCredentials operation middleware

func (*ServerInterfaceWrapper) GetCredentialsForUser

func (siw *ServerInterfaceWrapper) GetCredentialsForUser(w http.ResponseWriter, r *http.Request)

GetCredentialsForUser operation middleware

func (*ServerInterfaceWrapper) GetExternalPrincipal

func (siw *ServerInterfaceWrapper) GetExternalPrincipal(w http.ResponseWriter, r *http.Request)

GetExternalPrincipal operation middleware

func (*ServerInterfaceWrapper) GetGroup

func (siw *ServerInterfaceWrapper) GetGroup(w http.ResponseWriter, r *http.Request)

GetGroup operation middleware

func (*ServerInterfaceWrapper) GetPolicy

func (siw *ServerInterfaceWrapper) GetPolicy(w http.ResponseWriter, r *http.Request)

GetPolicy operation middleware

func (*ServerInterfaceWrapper) GetUser

GetUser operation middleware

func (*ServerInterfaceWrapper) GetVersion

func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)

GetVersion operation middleware

func (*ServerInterfaceWrapper) HealthCheck

func (siw *ServerInterfaceWrapper) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck operation middleware

func (*ServerInterfaceWrapper) ListGroupMembers

func (siw *ServerInterfaceWrapper) ListGroupMembers(w http.ResponseWriter, r *http.Request)

ListGroupMembers operation middleware

func (*ServerInterfaceWrapper) ListGroupPolicies

func (siw *ServerInterfaceWrapper) ListGroupPolicies(w http.ResponseWriter, r *http.Request)

ListGroupPolicies operation middleware

func (*ServerInterfaceWrapper) ListGroups

func (siw *ServerInterfaceWrapper) ListGroups(w http.ResponseWriter, r *http.Request)

ListGroups operation middleware

func (*ServerInterfaceWrapper) ListPolicies

func (siw *ServerInterfaceWrapper) ListPolicies(w http.ResponseWriter, r *http.Request)

ListPolicies operation middleware

func (*ServerInterfaceWrapper) ListUserCredentials

func (siw *ServerInterfaceWrapper) ListUserCredentials(w http.ResponseWriter, r *http.Request)

ListUserCredentials operation middleware

func (*ServerInterfaceWrapper) ListUserExternalPrincipals

func (siw *ServerInterfaceWrapper) ListUserExternalPrincipals(w http.ResponseWriter, r *http.Request)

ListUserExternalPrincipals operation middleware

func (*ServerInterfaceWrapper) ListUserGroups

func (siw *ServerInterfaceWrapper) ListUserGroups(w http.ResponseWriter, r *http.Request)

ListUserGroups operation middleware

func (*ServerInterfaceWrapper) ListUserPolicies

func (siw *ServerInterfaceWrapper) ListUserPolicies(w http.ResponseWriter, r *http.Request)

ListUserPolicies operation middleware

func (*ServerInterfaceWrapper) ListUsers

func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)

ListUsers operation middleware

func (*ServerInterfaceWrapper) UpdatePassword

func (siw *ServerInterfaceWrapper) UpdatePassword(w http.ResponseWriter, r *http.Request)

UpdatePassword operation middleware

func (*ServerInterfaceWrapper) UpdatePolicy

func (siw *ServerInterfaceWrapper) UpdatePolicy(w http.ResponseWriter, r *http.Request)

UpdatePolicy operation middleware

func (*ServerInterfaceWrapper) UpdateUserFriendlyName

func (siw *ServerInterfaceWrapper) UpdateUserFriendlyName(w http.ResponseWriter, r *http.Request)

UpdateUserFriendlyName operation middleware

type Statement

type Statement struct {
	Action   []string `json:"action"`
	Effect   string   `json:"effect"`
	Resource string   `json:"resource"`
}

Statement defines model for Statement.

type Unauthorized

type Unauthorized Error

Unauthorized defines model for Unauthorized.

type UpdatePasswordJSONBody

type UpdatePasswordJSONBody UserPassword

UpdatePasswordJSONBody defines parameters for UpdatePassword.

type UpdatePasswordJSONRequestBody

type UpdatePasswordJSONRequestBody UpdatePasswordJSONBody

UpdatePasswordJSONRequestBody defines body for UpdatePassword for application/json ContentType.

type UpdatePolicyJSONBody

type UpdatePolicyJSONBody Policy

UpdatePolicyJSONBody defines parameters for UpdatePolicy.

type UpdatePolicyJSONRequestBody

type UpdatePolicyJSONRequestBody UpdatePolicyJSONBody

UpdatePolicyJSONRequestBody defines body for UpdatePolicy for application/json ContentType.

type UpdateUserFriendlyNameJSONBody

type UpdateUserFriendlyNameJSONBody struct {
	FriendlyName string `json:"friendly_name"`
}

UpdateUserFriendlyNameJSONBody defines parameters for UpdateUserFriendlyName.

type UpdateUserFriendlyNameJSONRequestBody

type UpdateUserFriendlyNameJSONRequestBody UpdateUserFriendlyNameJSONBody

UpdateUserFriendlyNameJSONRequestBody defines body for UpdateUserFriendlyName for application/json ContentType.

type User

type User struct {

	// Unix Epoch in seconds
	CreationDate      int64   `json:"creation_date"`
	Email             *string `json:"email,omitempty"`
	EncryptedPassword []byte  `json:"encryptedPassword"`
	ExternalId        *string `json:"external_id,omitempty"`
	FriendlyName      *string `json:"friendly_name,omitempty"`
	Source            *string `json:"source,omitempty"`

	// a unique identifier for the user
	Username string `json:"username"`
}

User defines model for User.

type UserCreation

type UserCreation struct {
	Email             *string `json:"email,omitempty"`
	EncryptedPassword *[]byte `json:"encryptedPassword,omitempty"`
	ExternalId        *string `json:"external_id,omitempty"`
	FriendlyName      *string `json:"friendlyName,omitempty"`

	// If true, send an invitation by email. Otherwise, only create the user.
	Invite *bool   `json:"invite,omitempty"`
	Source *string `json:"source,omitempty"`

	// A unique identifier for the user. For password-based authentication, it is the email.
	Username string `json:"username"`
}

UserCreation defines model for UserCreation.

type UserList

type UserList struct {
	Pagination Pagination `json:"pagination"`
	Results    []User     `json:"results"`
}

UserList defines model for UserList.

type UserPassword

type UserPassword struct {
	EncryptedPassword []byte `json:"encryptedPassword"`
}

UserPassword defines model for UserPassword.

type ValidationError

type ValidationError Error

ValidationError defines model for ValidationError.

type VersionConfig

type VersionConfig struct {
	Version string `json:"version"`
}

VersionConfig defines model for VersionConfig.

Jump to

Keyboard shortcuts

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