apigen

package
v1.84.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 14 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.T, 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 {

	// The pagination mechanism is used to retrieve a list of items.
	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"`

	// Important - this filed is required instead of the user_id which is deprecated. 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 {

	// The error message.
	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 {

	// The pagination mechanism is used to retrieve a list of items.
	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"`
	Description  *string `json:"description,omitempty"`

	// A unique identifier of the group.
	Id *string `json:"id,omitempty"`

	// A unique identifier for the group, represented by a human-readable name.
	Name string `json:"name"`
}

Group defines model for Group.

type GroupCreation

type GroupCreation struct {
	Description *string `json:"description,omitempty"`

	// A unique identifier for the group, represented by a human-readable name.
	Id string `json:"id"`
}

GroupCreation defines model for GroupCreation.

type GroupList

type GroupList struct {

	// The pagination mechanism is used to retrieve a list of items.
	Pagination Pagination `json:"pagination"`
	Results    []Group    `json:"results"`
}

GroupList defines model for GroupList.

type ListGroupMembersParams

type ListGroupMembersParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupMembersParams defines parameters for ListGroupMembers.

type ListGroupPoliciesParams

type ListGroupPoliciesParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupPoliciesParams defines parameters for ListGroupPolicies.

type ListGroupsParams

type ListGroupsParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListGroupsParams defines parameters for ListGroups.

type ListPoliciesParams

type ListPoliciesParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListPoliciesParams defines parameters for ListPolicies.

type ListUserCredentialsParams

type ListUserCredentialsParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserCredentialsParams defines parameters for ListUserCredentials.

type ListUserExternalPrincipalsParams

type ListUserExternalPrincipalsParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserExternalPrincipalsParams defines parameters for ListUserExternalPrincipals.

type ListUserGroupsParams

type ListUserGroupsParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
}

ListUserGroupsParams defines parameters for ListUserGroups.

type ListUserPoliciesParams

type ListUserPoliciesParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`

	// If true, return all distinct policies attached to the user or any of the groups the user belongs to, otherwise, return only the policies directly attached to the user.
	Effective *bool `json:"effective,omitempty"`
}

ListUserPoliciesParams defines parameters for ListUserPolicies.

type ListUsersParams

type ListUsersParams struct {

	// Indicates the prefix that all returned items must start with for the purpose of filtering results.
	Prefix *PaginationPrefix `json:"prefix,omitempty"`

	// Indicates the starting point for the returned items. Items must be sorted by a specific parameter, and the response should include only those that come after the "after" value in the sorted list. This is used for pagination, as the next page needs to start from a specific point in the ordered items list.
	After *PaginationAfter `json:"after,omitempty"`

	// Specifies the number of items the server should return. It is used to determine how many results to display.
	Amount *PaginationAmount `json:"amount,omitempty"`
	Id     *int64            `json:"id,omitempty"`
	Email  *string           `json:"email,omitempty"`

	// Used only in lakeFS Enterprise; not applicable in the lakeFS OSS version.
	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 {

	// A boolean indicating whether the Next page is available.
	HasMore bool `json:"has_more"`

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

	// A value used to retrieve the next page of results. This value is typically passed as the after parameter in the subsequent API call. The next page will include all items appearing after the specified next_offset.
	NextOffset string `json:"next_offset"`

	// Number of values 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 {

	// Represents the access control list assigned to this policy.
	Acl *string `json:"acl,omitempty"`

	// Unix Epoch in seconds.
	CreationDate *int64 `json:"creation_date,omitempty"`

	// A unique, human-readable name for the policy.
	Name      string      `json:"name"`
	Statement []Statement `json:"statement"`
}

Policy defines model for Policy.

type PolicyCondition added in v1.77.0

type PolicyCondition struct {
	AdditionalProperties map[string][]string `json:"-"`
}

PolicyCondition defines model for PolicyCondition.

func (PolicyCondition) Get added in v1.77.0

func (a PolicyCondition) Get(fieldName string) (value []string, found bool)

Getter for additional properties for PolicyCondition. Returns the specified element and whether it was found

func (PolicyCondition) MarshalJSON added in v1.77.0

func (a PolicyCondition) MarshalJSON() ([]byte, error)

Override default JSON handling for PolicyCondition to handle AdditionalProperties

func (*PolicyCondition) Set added in v1.77.0

func (a *PolicyCondition) Set(fieldName string, value []string)

Setter for additional properties for PolicyCondition

func (*PolicyCondition) UnmarshalJSON added in v1.77.0

func (a *PolicyCondition) UnmarshalJSON(b []byte) error

Override default JSON handling for PolicyCondition to handle AdditionalProperties

type PolicyList

type PolicyList struct {

	// The pagination mechanism is used to retrieve a list of items.
	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 for a user
	// (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 a 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"`

	// Optional conditions for when this statement applies.
	Condition *Statement_Condition `json:"condition,omitempty"`
	Effect    string               `json:"effect"`
	Resource  string               `json:"resource"`
}

Statement defines model for Statement.

type Statement_Condition added in v1.77.0

type Statement_Condition struct {
	AdditionalProperties map[string]PolicyCondition `json:"-"`
}

Statement_Condition defines model for Statement.Condition.

func (Statement_Condition) Get added in v1.77.0

func (a Statement_Condition) Get(fieldName string) (value PolicyCondition, found bool)

Getter for additional properties for Statement_Condition. Returns the specified element and whether it was found

func (Statement_Condition) MarshalJSON added in v1.77.0

func (a Statement_Condition) MarshalJSON() ([]byte, error)

Override default JSON handling for Statement_Condition to handle AdditionalProperties

func (*Statement_Condition) Set added in v1.77.0

func (a *Statement_Condition) Set(fieldName string, value PolicyCondition)

Setter for additional properties for Statement_Condition

func (*Statement_Condition) UnmarshalJSON added in v1.77.0

func (a *Statement_Condition) UnmarshalJSON(b []byte) error

Override default JSON handling for Statement_Condition to handle AdditionalProperties

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"`

	// Represents an encrypted password as a string.
	EncryptedPassword []byte  `json:"encryptedPassword"`
	ExternalId        *string `json:"external_id,omitempty"`

	// A name for the user that is not necessarily unique.
	FriendlyName *string `json:"friendly_name,omitempty"`

	// User source. Based on implementation.
	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 {

	// If provided, the email is set to the same value as the username.
	Email *string `json:"email,omitempty"`

	// Represents an encrypted password as a string.
	EncryptedPassword *[]byte `json:"encryptedPassword,omitempty"`
	ExternalId        *string `json:"external_id,omitempty"`
	FriendlyName      *string `json:"friendlyName,omitempty"`

	// A boolean that determines whether an invitation email should be sent to a user for account creation. If passed and set to true, the invitation email will be sent along with the user creation.
	Invite *bool `json:"invite,omitempty"`

	// User source. Based on implementation.
	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 {

	// The pagination mechanism is used to retrieve a list of items.
	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