Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.9.0 DO NOT EDIT.
Package gen holds code generated from api/openapi.yaml. Do not edit api.gen.go.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewApplyConfigRequest(server string, body ApplyConfigJSONRequestBody) (*http.Request, error)
- func NewApplyConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCancelAccountLoginRequest(server string, state LoginState) (*http.Request, error)
- func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
- func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCompileAliasRequest(server string, body CompileAliasJSONRequestBody) (*http.Request, error)
- func NewCompileAliasRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCompleteAccountLoginRequest(server string, state LoginState, body CompleteAccountLoginJSONRequestBody) (*http.Request, error)
- func NewCompleteAccountLoginRequestWithBody(server string, state LoginState, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAliasRequest(server string, body CreateAliasJSONRequestBody) (*http.Request, error)
- func NewCreateAliasRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateApiTokenRequest(server string, body CreateApiTokenJSONRequestBody) (*http.Request, error)
- func NewCreateApiTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateKeyRequest(server string, body CreateKeyJSONRequestBody) (*http.Request, error)
- func NewCreateKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateProviderRequest(server string, body CreateProviderJSONRequestBody) (*http.Request, error)
- func NewCreateProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAccountRequest(server string, id AccountId) (*http.Request, error)
- func NewDeleteAliasRequest(server string, name AliasName) (*http.Request, error)
- func NewDeleteApiTokenRequest(server string, id string) (*http.Request, error)
- func NewDeleteKeyRequest(server string, id KeyId) (*http.Request, error)
- func NewDeleteProviderRequest(server string, name ProviderName) (*http.Request, error)
- func NewExportConfigRequest(server string) (*http.Request, error)
- func NewGetAccountLoginRequest(server string, state LoginState) (*http.Request, error)
- func NewGetAccountPoolRequest(server string) (*http.Request, error)
- func NewGetAliasChainRequest(server string, name AliasName) (*http.Request, error)
- func NewGetAliasRequest(server string, name AliasName) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetKeyRequest(server string, id KeyId) (*http.Request, error)
- func NewGetKeyUsageRequest(server string, id KeyId, params *GetKeyUsageParams) (*http.Request, error)
- func NewGetLogRequest(server string, id string) (*http.Request, error)
- func NewGetProviderModelsRequest(server string, name ProviderName) (*http.Request, error)
- func NewGetProviderRequest(server string, name ProviderName) (*http.Request, error)
- func NewGetQuotaRequest(server string, params *GetQuotaParams) (*http.Request, error)
- func NewGetSessionRequest(server string) (*http.Request, error)
- func NewGetStatsRequest(server string, params *GetStatsParams) (*http.Request, error)
- func NewGetVersionRequest(server string) (*http.Request, error)
- func NewImportAccountRequest(server string, body ImportAccountJSONRequestBody) (*http.Request, error)
- func NewImportAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListAccountStrategiesRequest(server string, params *ListAccountStrategiesParams) (*http.Request, error)
- func NewListAccountsRequest(server string, params *ListAccountsParams) (*http.Request, error)
- func NewListAliasesRequest(server string, params *ListAliasesParams) (*http.Request, error)
- func NewListApiTokensRequest(server string, params *ListApiTokensParams) (*http.Request, error)
- func NewListAuditRequest(server string, params *ListAuditParams) (*http.Request, error)
- func NewListCoolingRequest(server string, params *ListCoolingParams) (*http.Request, error)
- func NewListKeysRequest(server string, params *ListKeysParams) (*http.Request, error)
- func NewListLogsRequest(server string, params *ListLogsParams) (*http.Request, error)
- func NewListProvidersRequest(server string, params *ListProvidersParams) (*http.Request, error)
- func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
- func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string) (*http.Request, error)
- func NewPlanConfigRequest(server string, body PlanConfigJSONRequestBody) (*http.Request, error)
- func NewPlanConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRefreshQuotaRequest(server string, body RefreshQuotaJSONRequestBody) (*http.Request, error)
- func NewRefreshQuotaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResetAccountCooldownRequest(server string, id AccountId) (*http.Request, error)
- func NewSetAccountStrategyRequest(server string, provider string, body SetAccountStrategyJSONRequestBody) (*http.Request, error)
- func NewSetAccountStrategyRequestWithBody(server string, provider string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartAccountLoginRequest(server string, body StartAccountLoginJSONRequestBody) (*http.Request, error)
- func NewStartAccountLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTestProviderRequest(server string, name ProviderName) (*http.Request, error)
- func NewUpdateAccountRequest(server string, id AccountId, body UpdateAccountJSONRequestBody) (*http.Request, error)
- func NewUpdateAccountRequestWithBody(server string, id AccountId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAliasRequest(server string, name AliasName, body UpdateAliasJSONRequestBody) (*http.Request, error)
- func NewUpdateAliasRequestWithBody(server string, name AliasName, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateKeyRequest(server string, id KeyId, body UpdateKeyJSONRequestBody) (*http.Request, error)
- func NewUpdateKeyRequestWithBody(server string, id KeyId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateProviderRequest(server string, name ProviderName, body UpdateProviderJSONRequestBody) (*http.Request, error)
- func NewUpdateProviderRequestWithBody(server string, name ProviderName, contentType string, body io.Reader) (*http.Request, error)
- type Account
- type AccountId
- type AccountImport
- type AccountList
- type AccountLogin
- type AccountLoginComplete
- type AccountLoginStart
- type AccountLoginStatus
- type AccountLoginStatusStatus
- type AccountPool
- type AccountQuota
- type AccountStrategy
- type AccountStrategyList
- type AccountUpdate
- type Alias
- type AliasChain
- type AliasFilter
- type AliasKind
- type AliasList
- type AliasName
- type ApiToken
- type ApiTokenCreate
- type ApiTokenCreated
- type ApiTokenList
- type ApiTokenScope
- type ApplyConfig200JSONResponse
- type ApplyConfig412JSONResponse
- type ApplyConfigJSONRequestBody
- type ApplyConfigRequestObject
- type ApplyConfigResponse
- func (r ApplyConfigResponse) ContentType() string
- func (r ApplyConfigResponse) GetBody() []byte
- func (r ApplyConfigResponse) GetJSON200() *ConfigChanges
- func (r ApplyConfigResponse) GetJSON412() *ConfigChanges
- func (r ApplyConfigResponse) GetJSONDefault() *Error
- func (r ApplyConfigResponse) Status() string
- func (r ApplyConfigResponse) StatusCode() int
- type ApplyConfigResponseObject
- type ApplyConfigdefaultJSONResponse
- type AuditEntry
- type AuditEntryPrincipal
- type AuditList
- type CancelAccountLogin204Response
- type CancelAccountLoginRequestObject
- type CancelAccountLoginResponse
- type CancelAccountLoginResponseObject
- type CancelAccountLogindefaultJSONResponse
- type ChainTarget
- type Change
- type ChangeKind
- type ChangeOp
- type ChangePassword204Response
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequestObject
- type ChangePasswordResponse
- type ChangePasswordResponseObject
- type ChangePassworddefaultJSONResponse
- type Client
- func (c *Client) ApplyConfig(ctx context.Context, body ApplyConfigJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApplyConfigWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CancelAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CompileAlias(ctx context.Context, body CompileAliasJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CompileAliasWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CompleteAccountLogin(ctx context.Context, state LoginState, ...) (*http.Response, error)
- func (c *Client) CompleteAccountLoginWithBody(ctx context.Context, state LoginState, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAlias(ctx context.Context, body CreateAliasJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAliasWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateApiToken(ctx context.Context, body CreateApiTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateKey(ctx context.Context, body CreateKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateProvider(ctx context.Context, body CreateProviderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateProviderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAccount(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExportConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccountPool(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAliasChain(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetKeyUsage(ctx context.Context, id KeyId, params *GetKeyUsageParams, ...) (*http.Response, error)
- func (c *Client) GetLog(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProviderModels(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetQuota(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ImportAccount(ctx context.Context, body ImportAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ImportAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListAccountStrategies(ctx context.Context, params *ListAccountStrategiesParams, ...) (*http.Response, error)
- func (c *Client) ListAccounts(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAliases(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApiTokens(ctx context.Context, params *ListApiTokensParams, ...) (*http.Response, error)
- func (c *Client) ListAudit(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListCooling(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListKeys(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLogs(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListProviders(ctx context.Context, params *ListProvidersParams, ...) (*http.Response, error)
- func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PlanConfig(ctx context.Context, body PlanConfigJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PlanConfigWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RefreshQuota(ctx context.Context, body RefreshQuotaJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RefreshQuotaWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResetAccountCooldown(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetAccountStrategy(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetAccountStrategyWithBody(ctx context.Context, provider string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartAccountLogin(ctx context.Context, body StartAccountLoginJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartAccountLoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TestProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAccount(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAccountWithBody(ctx context.Context, id AccountId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateAlias(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAliasWithBody(ctx context.Context, name AliasName, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateKey(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateKeyWithBody(ctx context.Context, id KeyId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateProvider(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateProviderWithBody(ctx context.Context, name ProviderName, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ApplyConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApplyConfigResponse, error)
- func (c *ClientWithResponses) ApplyConfigWithResponse(ctx context.Context, body ApplyConfigJSONRequestBody, ...) (*ApplyConfigResponse, error)
- func (c *ClientWithResponses) CancelAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*CancelAccountLoginResponse, error)
- func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ChangePasswordResponse, error)
- func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*ChangePasswordResponse, error)
- func (c *ClientWithResponses) CompileAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CompileAliasResponse, error)
- func (c *ClientWithResponses) CompileAliasWithResponse(ctx context.Context, body CompileAliasJSONRequestBody, ...) (*CompileAliasResponse, error)
- func (c *ClientWithResponses) CompleteAccountLoginWithBodyWithResponse(ctx context.Context, state LoginState, contentType string, body io.Reader, ...) (*CompleteAccountLoginResponse, error)
- func (c *ClientWithResponses) CompleteAccountLoginWithResponse(ctx context.Context, state LoginState, ...) (*CompleteAccountLoginResponse, error)
- func (c *ClientWithResponses) CreateAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAliasResponse, error)
- func (c *ClientWithResponses) CreateAliasWithResponse(ctx context.Context, body CreateAliasJSONRequestBody, ...) (*CreateAliasResponse, error)
- func (c *ClientWithResponses) CreateApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApiTokenResponse, error)
- func (c *ClientWithResponses) CreateApiTokenWithResponse(ctx context.Context, body CreateApiTokenJSONRequestBody, ...) (*CreateApiTokenResponse, error)
- func (c *ClientWithResponses) CreateKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateKeyResponse, error)
- func (c *ClientWithResponses) CreateKeyWithResponse(ctx context.Context, body CreateKeyJSONRequestBody, ...) (*CreateKeyResponse, error)
- func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateProviderResponse, error)
- func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, body CreateProviderJSONRequestBody, ...) (*CreateProviderResponse, error)
- func (c *ClientWithResponses) DeleteAccountWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*DeleteAccountResponse, error)
- func (c *ClientWithResponses) DeleteAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*DeleteAliasResponse, error)
- func (c *ClientWithResponses) DeleteApiTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error)
- func (c *ClientWithResponses) DeleteKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*DeleteKeyResponse, error)
- func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error)
- func (c *ClientWithResponses) ExportConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportConfigResponse, error)
- func (c *ClientWithResponses) GetAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*GetAccountLoginResponse, error)
- func (c *ClientWithResponses) GetAccountPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPoolResponse, error)
- func (c *ClientWithResponses) GetAliasChainWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasChainResponse, error)
- func (c *ClientWithResponses) GetAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetKeyUsageWithResponse(ctx context.Context, id KeyId, params *GetKeyUsageParams, ...) (*GetKeyUsageResponse, error)
- func (c *ClientWithResponses) GetKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*GetKeyResponse, error)
- func (c *ClientWithResponses) GetLogWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogResponse, error)
- func (c *ClientWithResponses) GetProviderModelsWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderModelsResponse, error)
- func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderResponse, error)
- func (c *ClientWithResponses) GetQuotaWithResponse(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
- func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
- func (c *ClientWithResponses) GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
- func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
- func (c *ClientWithResponses) ImportAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ImportAccountResponse, error)
- func (c *ClientWithResponses) ImportAccountWithResponse(ctx context.Context, body ImportAccountJSONRequestBody, ...) (*ImportAccountResponse, error)
- func (c *ClientWithResponses) ListAccountStrategiesWithResponse(ctx context.Context, params *ListAccountStrategiesParams, ...) (*ListAccountStrategiesResponse, error)
- func (c *ClientWithResponses) ListAccountsWithResponse(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*ListAccountsResponse, error)
- func (c *ClientWithResponses) ListAliasesWithResponse(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*ListAliasesResponse, error)
- func (c *ClientWithResponses) ListApiTokensWithResponse(ctx context.Context, params *ListApiTokensParams, ...) (*ListApiTokensResponse, error)
- func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
- func (c *ClientWithResponses) ListCoolingWithResponse(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*ListCoolingResponse, error)
- func (c *ClientWithResponses) ListKeysWithResponse(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*ListKeysResponse, error)
- func (c *ClientWithResponses) ListLogsWithResponse(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*ListLogsResponse, error)
- func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, params *ListProvidersParams, ...) (*ListProvidersResponse, error)
- func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error)
- func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
- func (c *ClientWithResponses) PlanConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PlanConfigResponse, error)
- func (c *ClientWithResponses) PlanConfigWithResponse(ctx context.Context, body PlanConfigJSONRequestBody, ...) (*PlanConfigResponse, error)
- func (c *ClientWithResponses) RefreshQuotaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshQuotaResponse, error)
- func (c *ClientWithResponses) RefreshQuotaWithResponse(ctx context.Context, body RefreshQuotaJSONRequestBody, ...) (*RefreshQuotaResponse, error)
- func (c *ClientWithResponses) ResetAccountCooldownWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*ResetAccountCooldownResponse, error)
- func (c *ClientWithResponses) SetAccountStrategyWithBodyWithResponse(ctx context.Context, provider string, contentType string, body io.Reader, ...) (*SetAccountStrategyResponse, error)
- func (c *ClientWithResponses) SetAccountStrategyWithResponse(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, ...) (*SetAccountStrategyResponse, error)
- func (c *ClientWithResponses) StartAccountLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartAccountLoginResponse, error)
- func (c *ClientWithResponses) StartAccountLoginWithResponse(ctx context.Context, body StartAccountLoginJSONRequestBody, ...) (*StartAccountLoginResponse, error)
- func (c *ClientWithResponses) TestProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*TestProviderResponse, error)
- func (c *ClientWithResponses) UpdateAccountWithBodyWithResponse(ctx context.Context, id AccountId, contentType string, body io.Reader, ...) (*UpdateAccountResponse, error)
- func (c *ClientWithResponses) UpdateAccountWithResponse(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, ...) (*UpdateAccountResponse, error)
- func (c *ClientWithResponses) UpdateAliasWithBodyWithResponse(ctx context.Context, name AliasName, contentType string, body io.Reader, ...) (*UpdateAliasResponse, error)
- func (c *ClientWithResponses) UpdateAliasWithResponse(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, ...) (*UpdateAliasResponse, error)
- func (c *ClientWithResponses) UpdateKeyWithBodyWithResponse(ctx context.Context, id KeyId, contentType string, body io.Reader, ...) (*UpdateKeyResponse, error)
- func (c *ClientWithResponses) UpdateKeyWithResponse(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, ...) (*UpdateKeyResponse, error)
- func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, name ProviderName, contentType string, body io.Reader, ...) (*UpdateProviderResponse, error)
- func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, ...) (*UpdateProviderResponse, error)
- type ClientWithResponsesInterface
- type CompileAlias200JSONResponse
- type CompileAliasJSONRequestBody
- type CompileAliasRequestObject
- type CompileAliasResponse
- type CompileAliasResponseObject
- type CompileAliasdefaultJSONResponse
- type CompleteAccountLogin202Response
- type CompleteAccountLoginJSONRequestBody
- type CompleteAccountLoginRequestObject
- type CompleteAccountLoginResponse
- type CompleteAccountLoginResponseObject
- type CompleteAccountLogindefaultJSONResponse
- type ConfigChanges
- type ConfigRequest
- type Cooling
- type CoolingList
- type CreateAlias201JSONResponse
- type CreateAliasJSONRequestBody
- type CreateAliasRequestObject
- type CreateAliasResponse
- type CreateAliasResponseObject
- type CreateAliasdefaultJSONResponse
- type CreateApiToken201JSONResponse
- type CreateApiTokenJSONRequestBody
- type CreateApiTokenRequestObject
- type CreateApiTokenResponse
- func (r CreateApiTokenResponse) ContentType() string
- func (r CreateApiTokenResponse) GetBody() []byte
- func (r CreateApiTokenResponse) GetJSON201() *ApiTokenCreated
- func (r CreateApiTokenResponse) GetJSONDefault() *Error
- func (r CreateApiTokenResponse) Status() string
- func (r CreateApiTokenResponse) StatusCode() int
- type CreateApiTokenResponseObject
- type CreateApiTokendefaultJSONResponse
- type CreateKey201JSONResponse
- type CreateKeyJSONRequestBody
- type CreateKeyRequestObject
- type CreateKeyResponse
- type CreateKeyResponseObject
- type CreateKeydefaultJSONResponse
- type CreateProvider201JSONResponse
- type CreateProviderJSONRequestBody
- type CreateProviderRequestObject
- type CreateProviderResponse
- func (r CreateProviderResponse) ContentType() string
- func (r CreateProviderResponse) GetBody() []byte
- func (r CreateProviderResponse) GetJSON201() *Provider
- func (r CreateProviderResponse) GetJSONDefault() *Error
- func (r CreateProviderResponse) Status() string
- func (r CreateProviderResponse) StatusCode() int
- type CreateProviderResponseObject
- type CreateProviderdefaultJSONResponse
- type DeleteAccount204Response
- type DeleteAccountRequestObject
- type DeleteAccountResponse
- type DeleteAccountResponseObject
- type DeleteAccountdefaultJSONResponse
- type DeleteAlias204Response
- type DeleteAliasRequestObject
- type DeleteAliasResponse
- type DeleteAliasResponseObject
- type DeleteAliasdefaultJSONResponse
- type DeleteApiToken204Response
- type DeleteApiTokenRequestObject
- type DeleteApiTokenResponse
- type DeleteApiTokenResponseObject
- type DeleteApiTokendefaultJSONResponse
- type DeleteKey204Response
- type DeleteKeyRequestObject
- type DeleteKeyResponse
- type DeleteKeyResponseObject
- type DeleteKeydefaultJSONResponse
- type DeleteProvider204Response
- type DeleteProviderRequestObject
- type DeleteProviderResponse
- type DeleteProviderResponseObject
- type DeleteProviderdefaultJSONResponse
- type EngineTimeout
- type EngineTimeoutJSONResponse
- type EngineVersion
- type Error
- type ErrorDetail
- type ErrorJSONResponse
- type ExportConfig200ApplicationyamlResponse
- type ExportConfig200ResponseHeaders
- type ExportConfigRequestObject
- type ExportConfigResponse
- type ExportConfigResponse200Headers
- type ExportConfigResponseObject
- type ExportConfigdefaultJSONResponse
- type From
- type GetAccountLogin200JSONResponse
- type GetAccountLoginRequestObject
- type GetAccountLoginResponse
- func (r GetAccountLoginResponse) ContentType() string
- func (r GetAccountLoginResponse) GetBody() []byte
- func (r GetAccountLoginResponse) GetJSON200() *AccountLoginStatus
- func (r GetAccountLoginResponse) GetJSONDefault() *Error
- func (r GetAccountLoginResponse) Status() string
- func (r GetAccountLoginResponse) StatusCode() int
- type GetAccountLoginResponseObject
- type GetAccountLogindefaultJSONResponse
- type GetAccountPool200JSONResponse
- type GetAccountPoolRequestObject
- type GetAccountPoolResponse
- func (r GetAccountPoolResponse) ContentType() string
- func (r GetAccountPoolResponse) GetBody() []byte
- func (r GetAccountPoolResponse) GetJSON200() *[]AccountPool
- func (r GetAccountPoolResponse) GetJSONDefault() *Error
- func (r GetAccountPoolResponse) Status() string
- func (r GetAccountPoolResponse) StatusCode() int
- type GetAccountPoolResponseObject
- type GetAccountPooldefaultJSONResponse
- type GetAlias200JSONResponse
- type GetAliasChain200JSONResponse
- type GetAliasChainRequestObject
- type GetAliasChainResponse
- func (r GetAliasChainResponse) ContentType() string
- func (r GetAliasChainResponse) GetBody() []byte
- func (r GetAliasChainResponse) GetJSON200() *AliasChain
- func (r GetAliasChainResponse) GetJSONDefault() *Error
- func (r GetAliasChainResponse) Status() string
- func (r GetAliasChainResponse) StatusCode() int
- type GetAliasChainResponseObject
- type GetAliasChaindefaultJSONResponse
- type GetAliasRequestObject
- type GetAliasResponse
- type GetAliasResponseObject
- type GetAliasdefaultJSONResponse
- type GetHealth200JSONResponse
- type GetHealthRequestObject
- type GetHealthResponse
- type GetHealthResponseObject
- type GetHealthdefaultJSONResponse
- type GetKey200JSONResponse
- type GetKeyRequestObject
- type GetKeyResponse
- type GetKeyResponseObject
- type GetKeyUsage200JSONResponse
- type GetKeyUsage503JSONResponse
- type GetKeyUsageParams
- type GetKeyUsageRequestObject
- type GetKeyUsageResponse
- func (r GetKeyUsageResponse) ContentType() string
- func (r GetKeyUsageResponse) GetBody() []byte
- func (r GetKeyUsageResponse) GetJSON200() *Stats
- func (r GetKeyUsageResponse) GetJSON503() *StatsUnavailable
- func (r GetKeyUsageResponse) GetJSONDefault() *Error
- func (r GetKeyUsageResponse) Status() string
- func (r GetKeyUsageResponse) StatusCode() int
- type GetKeyUsageResponseObject
- type GetKeyUsagedefaultJSONResponse
- type GetKeydefaultJSONResponse
- type GetLog200JSONResponse
- type GetLog504JSONResponse
- type GetLogRequestObject
- type GetLogResponse
- func (r GetLogResponse) ContentType() string
- func (r GetLogResponse) GetBody() []byte
- func (r GetLogResponse) GetJSON200() *LogDetail
- func (r GetLogResponse) GetJSON504() *EngineTimeout
- func (r GetLogResponse) GetJSONDefault() *Error
- func (r GetLogResponse) Status() string
- func (r GetLogResponse) StatusCode() int
- type GetLogResponseObject
- type GetLogdefaultJSONResponse
- type GetProvider200JSONResponse
- type GetProviderModels200JSONResponse
- type GetProviderModels404JSONResponse
- type GetProviderModelsRequestObject
- type GetProviderModelsResponse
- func (r GetProviderModelsResponse) ContentType() string
- func (r GetProviderModelsResponse) GetBody() []byte
- func (r GetProviderModelsResponse) GetJSON200() ...
- func (r GetProviderModelsResponse) GetJSON404() *Error
- func (r GetProviderModelsResponse) GetJSONDefault() *Error
- func (r GetProviderModelsResponse) Status() string
- func (r GetProviderModelsResponse) StatusCode() int
- type GetProviderModelsResponseObject
- type GetProviderModelsdefaultJSONResponse
- type GetProviderRequestObject
- type GetProviderResponse
- type GetProviderResponseObject
- type GetProviderdefaultJSONResponse
- type GetQuota200JSONResponse
- type GetQuotaParams
- type GetQuotaRequestObject
- type GetQuotaResponse
- type GetQuotaResponseObject
- type GetQuotadefaultJSONResponse
- type GetSession200JSONResponse
- type GetSessionRequestObject
- type GetSessionResponse
- type GetSessionResponseObject
- type GetSessiondefaultJSONResponse
- type GetStats200JSONResponse
- type GetStats503JSONResponse
- type GetStatsParams
- type GetStatsParamsGroupBy
- type GetStatsRequestObject
- type GetStatsResponse
- func (r GetStatsResponse) ContentType() string
- func (r GetStatsResponse) GetBody() []byte
- func (r GetStatsResponse) GetJSON200() *Stats
- func (r GetStatsResponse) GetJSON503() *StatsUnavailable
- func (r GetStatsResponse) GetJSONDefault() *Error
- func (r GetStatsResponse) Status() string
- func (r GetStatsResponse) StatusCode() int
- type GetStatsResponseObject
- type GetStatsdefaultJSONResponse
- type GetVersion200JSONResponse
- type GetVersionRequestObject
- type GetVersionResponse
- type GetVersionResponseObject
- type GetVersiondefaultJSONResponse
- type Health
- type HealthEngines
- type HealthStatus
- type HttpRequestDoer
- type ImportAccount201JSONResponse
- type ImportAccountJSONRequestBody
- type ImportAccountRequestObject
- type ImportAccountResponse
- func (r ImportAccountResponse) ContentType() string
- func (r ImportAccountResponse) GetBody() []byte
- func (r ImportAccountResponse) GetJSON201() *Account
- func (r ImportAccountResponse) GetJSONDefault() *Error
- func (r ImportAccountResponse) Status() string
- func (r ImportAccountResponse) StatusCode() int
- type ImportAccountResponseObject
- type ImportAccountdefaultJSONResponse
- type InvalidParamFormatError
- type Key
- type KeyCreate
- type KeyCreated
- type KeyFilter
- type KeyId
- type KeyList
- type KeyUpdate
- type Limit
- type ListAccountStrategies200JSONResponse
- type ListAccountStrategiesParams
- type ListAccountStrategiesRequestObject
- type ListAccountStrategiesResponse
- func (r ListAccountStrategiesResponse) ContentType() string
- func (r ListAccountStrategiesResponse) GetBody() []byte
- func (r ListAccountStrategiesResponse) GetJSON200() *AccountStrategyList
- func (r ListAccountStrategiesResponse) GetJSONDefault() *Error
- func (r ListAccountStrategiesResponse) Status() string
- func (r ListAccountStrategiesResponse) StatusCode() int
- type ListAccountStrategiesResponseObject
- type ListAccountStrategiesdefaultJSONResponse
- type ListAccounts200JSONResponse
- type ListAccountsParams
- type ListAccountsRequestObject
- type ListAccountsResponse
- func (r ListAccountsResponse) ContentType() string
- func (r ListAccountsResponse) GetBody() []byte
- func (r ListAccountsResponse) GetJSON200() *AccountList
- func (r ListAccountsResponse) GetJSONDefault() *Error
- func (r ListAccountsResponse) Status() string
- func (r ListAccountsResponse) StatusCode() int
- type ListAccountsResponseObject
- type ListAccountsdefaultJSONResponse
- type ListAliases200JSONResponse
- type ListAliasesParams
- type ListAliasesRequestObject
- type ListAliasesResponse
- type ListAliasesResponseObject
- type ListAliasesdefaultJSONResponse
- type ListApiTokens200JSONResponse
- type ListApiTokensParams
- type ListApiTokensRequestObject
- type ListApiTokensResponse
- func (r ListApiTokensResponse) ContentType() string
- func (r ListApiTokensResponse) GetBody() []byte
- func (r ListApiTokensResponse) GetJSON200() *ApiTokenList
- func (r ListApiTokensResponse) GetJSONDefault() *Error
- func (r ListApiTokensResponse) Status() string
- func (r ListApiTokensResponse) StatusCode() int
- type ListApiTokensResponseObject
- type ListApiTokensdefaultJSONResponse
- type ListAudit200JSONResponse
- type ListAuditParams
- type ListAuditRequestObject
- type ListAuditResponse
- type ListAuditResponseObject
- type ListAuditdefaultJSONResponse
- type ListCooling200JSONResponse
- type ListCoolingParams
- type ListCoolingRequestObject
- type ListCoolingResponse
- type ListCoolingResponseObject
- type ListCoolingdefaultJSONResponse
- type ListKeys200JSONResponse
- type ListKeysParams
- type ListKeysRequestObject
- type ListKeysResponse
- type ListKeysResponseObject
- type ListKeysdefaultJSONResponse
- type ListLogs200JSONResponse
- type ListLogs504JSONResponse
- type ListLogsParams
- type ListLogsParamsStatus
- type ListLogsRequestObject
- type ListLogsResponse
- func (r ListLogsResponse) ContentType() string
- func (r ListLogsResponse) GetBody() []byte
- func (r ListLogsResponse) GetJSON200() *LogList
- func (r ListLogsResponse) GetJSON504() *EngineTimeout
- func (r ListLogsResponse) GetJSONDefault() *Error
- func (r ListLogsResponse) Status() string
- func (r ListLogsResponse) StatusCode() int
- type ListLogsResponseObject
- type ListLogsdefaultJSONResponse
- type ListProviders200JSONResponse
- type ListProvidersParams
- type ListProvidersRequestObject
- type ListProvidersResponse
- func (r ListProvidersResponse) ContentType() string
- func (r ListProvidersResponse) GetBody() []byte
- func (r ListProvidersResponse) GetJSON200() *ProviderList
- func (r ListProvidersResponse) GetJSONDefault() *Error
- func (r ListProvidersResponse) Status() string
- func (r ListProvidersResponse) StatusCode() int
- type ListProvidersResponseObject
- type ListProvidersdefaultJSONResponse
- type LogDetail
- type LogDetailStatus
- type LogEntry
- type LogEntryStatus
- type LogList
- type Login204Response
- type Login204ResponseHeaders
- type LoginJSONRequestBody
- type LoginRequest
- type LoginRequestObject
- type LoginResponse
- type LoginResponse204Headers
- type LoginResponseObject
- type LoginState
- type LogindefaultJSONResponse
- type Logout204Response
- type Logout204ResponseHeaders
- type LogoutRequestObject
- type LogoutResponse
- type LogoutResponse204Headers
- type LogoutResponseObject
- type LogoutdefaultJSONResponse
- type MiddlewareFunc
- type Offset
- type PasswordChange
- type PlanConfig200JSONResponse
- type PlanConfigJSONRequestBody
- type PlanConfigRequestObject
- type PlanConfigResponse
- type PlanConfigResponseObject
- type PlanConfigdefaultJSONResponse
- type PoolAccount
- type Provider
- type ProviderFilter
- type ProviderKey
- type ProviderKind
- type ProviderList
- type ProviderName
- type ProviderStatus
- type ProviderTestResult
- type Query
- type QuotaAccount
- type QuotaList
- type QuotaProvider
- type QuotaRefresh
- type QuotaRefreshResult
- type QuotaSnapshot
- type QuotaSnapshotSource
- type QuotaWindow
- type RefreshQuota202JSONResponse
- type RefreshQuotaJSONRequestBody
- type RefreshQuotaRequestObject
- type RefreshQuotaResponse
- func (r RefreshQuotaResponse) ContentType() string
- func (r RefreshQuotaResponse) GetBody() []byte
- func (r RefreshQuotaResponse) GetJSON202() *QuotaRefreshResult
- func (r RefreshQuotaResponse) GetJSONDefault() *Error
- func (r RefreshQuotaResponse) Status() string
- func (r RefreshQuotaResponse) StatusCode() int
- type RefreshQuotaResponseObject
- type RefreshQuotadefaultJSONResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ResetAccountCooldown204Response
- type ResetAccountCooldownRequestObject
- type ResetAccountCooldownResponse
- type ResetAccountCooldownResponseObject
- type ResetAccountCooldowndefaultJSONResponse
- type RoutingStrategy
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) ApplyConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CancelAccountLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CompileAlias(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CompleteAccountLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAlias(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateApiToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAccount(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAlias(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteApiToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExportConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAccountLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAccountPool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAlias(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAliasChain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetKeyUsage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLog(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProviderModels(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetQuota(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStats(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ImportAccount(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAccountStrategies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAccounts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAliases(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListApiTokens(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAudit(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListCooling(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PlanConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RefreshQuota(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ResetAccountCooldown(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetAccountStrategy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartAccountLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TestProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAccount(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAlias(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request)
- type Session
- type SessionVia
- type SetAccountStrategy200JSONResponse
- type SetAccountStrategyJSONBody
- type SetAccountStrategyJSONRequestBody
- type SetAccountStrategyRequestObject
- type SetAccountStrategyResponse
- func (r SetAccountStrategyResponse) ContentType() string
- func (r SetAccountStrategyResponse) GetBody() []byte
- func (r SetAccountStrategyResponse) GetJSON200() *AccountStrategy
- func (r SetAccountStrategyResponse) GetJSONDefault() *Error
- func (r SetAccountStrategyResponse) Status() string
- func (r SetAccountStrategyResponse) StatusCode() int
- type SetAccountStrategyResponseObject
- type SetAccountStrategydefaultJSONResponse
- type StartAccountLogin201JSONResponse
- type StartAccountLoginJSONRequestBody
- type StartAccountLoginRequestObject
- type StartAccountLoginResponse
- func (r StartAccountLoginResponse) ContentType() string
- func (r StartAccountLoginResponse) GetBody() []byte
- func (r StartAccountLoginResponse) GetJSON201() *AccountLogin
- func (r StartAccountLoginResponse) GetJSONDefault() *Error
- func (r StartAccountLoginResponse) Status() string
- func (r StartAccountLoginResponse) StatusCode() int
- type StartAccountLoginResponseObject
- type StartAccountLogindefaultJSONResponse
- type Stats
- type StatsGroup
- type StatsPoint
- type StatsSummary
- type StatsUnavailable
- type StatsUnavailableJSONResponse
- type StatusFilter
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TestProvider200JSONResponse
- type TestProviderRequestObject
- type TestProviderResponse
- func (r TestProviderResponse) ContentType() string
- func (r TestProviderResponse) GetBody() []byte
- func (r TestProviderResponse) GetJSON200() *ProviderTestResult
- func (r TestProviderResponse) GetJSONDefault() *Error
- func (r TestProviderResponse) Status() string
- func (r TestProviderResponse) StatusCode() int
- type TestProviderResponseObject
- type TestProviderdefaultJSONResponse
- type To
- type TokenUsage
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateAccount200JSONResponse
- type UpdateAccountJSONRequestBody
- type UpdateAccountRequestObject
- type UpdateAccountResponse
- func (r UpdateAccountResponse) ContentType() string
- func (r UpdateAccountResponse) GetBody() []byte
- func (r UpdateAccountResponse) GetJSON200() *Account
- func (r UpdateAccountResponse) GetJSONDefault() *Error
- func (r UpdateAccountResponse) Status() string
- func (r UpdateAccountResponse) StatusCode() int
- type UpdateAccountResponseObject
- type UpdateAccountdefaultJSONResponse
- type UpdateAlias200JSONResponse
- type UpdateAliasJSONRequestBody
- type UpdateAliasRequestObject
- type UpdateAliasResponse
- type UpdateAliasResponseObject
- type UpdateAliasdefaultJSONResponse
- type UpdateKey200JSONResponse
- type UpdateKeyJSONRequestBody
- type UpdateKeyRequestObject
- type UpdateKeyResponse
- type UpdateKeyResponseObject
- type UpdateKeydefaultJSONResponse
- type UpdateProvider200JSONResponse
- type UpdateProviderJSONRequestBody
- type UpdateProviderRequestObject
- type UpdateProviderResponse
- func (r UpdateProviderResponse) ContentType() string
- func (r UpdateProviderResponse) GetBody() []byte
- func (r UpdateProviderResponse) GetJSON200() *Provider
- func (r UpdateProviderResponse) GetJSONDefault() *Error
- func (r UpdateProviderResponse) Status() string
- func (r UpdateProviderResponse) StatusCode() int
- type UpdateProviderResponseObject
- type UpdateProviderdefaultJSONResponse
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewApplyConfigRequest ¶
func NewApplyConfigRequest(server string, body ApplyConfigJSONRequestBody) (*http.Request, error)
NewApplyConfigRequest calls the generic ApplyConfig builder with application/json body
func NewApplyConfigRequestWithBody ¶
func NewApplyConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApplyConfigRequestWithBody constructs an http.Request for the ApplyConfig method, with any body, and a specified content type
func NewCancelAccountLoginRequest ¶
func NewCancelAccountLoginRequest(server string, state LoginState) (*http.Request, error)
NewCancelAccountLoginRequest constructs an http.Request for the CancelAccountLogin method
func NewChangePasswordRequest ¶
func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
NewChangePasswordRequest calls the generic ChangePassword builder with application/json body
func NewChangePasswordRequestWithBody ¶
func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewChangePasswordRequestWithBody constructs an http.Request for the ChangePassword method, with any body, and a specified content type
func NewCompileAliasRequest ¶
func NewCompileAliasRequest(server string, body CompileAliasJSONRequestBody) (*http.Request, error)
NewCompileAliasRequest calls the generic CompileAlias builder with application/json body
func NewCompileAliasRequestWithBody ¶
func NewCompileAliasRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCompileAliasRequestWithBody constructs an http.Request for the CompileAlias method, with any body, and a specified content type
func NewCompleteAccountLoginRequest ¶
func NewCompleteAccountLoginRequest(server string, state LoginState, body CompleteAccountLoginJSONRequestBody) (*http.Request, error)
NewCompleteAccountLoginRequest calls the generic CompleteAccountLogin builder with application/json body
func NewCompleteAccountLoginRequestWithBody ¶
func NewCompleteAccountLoginRequestWithBody(server string, state LoginState, contentType string, body io.Reader) (*http.Request, error)
NewCompleteAccountLoginRequestWithBody constructs an http.Request for the CompleteAccountLogin method, with any body, and a specified content type
func NewCreateAliasRequest ¶
func NewCreateAliasRequest(server string, body CreateAliasJSONRequestBody) (*http.Request, error)
NewCreateAliasRequest calls the generic CreateAlias builder with application/json body
func NewCreateAliasRequestWithBody ¶
func NewCreateAliasRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAliasRequestWithBody constructs an http.Request for the CreateAlias method, with any body, and a specified content type
func NewCreateApiTokenRequest ¶
func NewCreateApiTokenRequest(server string, body CreateApiTokenJSONRequestBody) (*http.Request, error)
NewCreateApiTokenRequest calls the generic CreateApiToken builder with application/json body
func NewCreateApiTokenRequestWithBody ¶
func NewCreateApiTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApiTokenRequestWithBody constructs an http.Request for the CreateApiToken method, with any body, and a specified content type
func NewCreateKeyRequest ¶
func NewCreateKeyRequest(server string, body CreateKeyJSONRequestBody) (*http.Request, error)
NewCreateKeyRequest calls the generic CreateKey builder with application/json body
func NewCreateKeyRequestWithBody ¶
func NewCreateKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateKeyRequestWithBody constructs an http.Request for the CreateKey method, with any body, and a specified content type
func NewCreateProviderRequest ¶
func NewCreateProviderRequest(server string, body CreateProviderJSONRequestBody) (*http.Request, error)
NewCreateProviderRequest calls the generic CreateProvider builder with application/json body
func NewCreateProviderRequestWithBody ¶
func NewCreateProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateProviderRequestWithBody constructs an http.Request for the CreateProvider method, with any body, and a specified content type
func NewDeleteAccountRequest ¶
NewDeleteAccountRequest constructs an http.Request for the DeleteAccount method
func NewDeleteAliasRequest ¶
NewDeleteAliasRequest constructs an http.Request for the DeleteAlias method
func NewDeleteApiTokenRequest ¶
NewDeleteApiTokenRequest constructs an http.Request for the DeleteApiToken method
func NewDeleteKeyRequest ¶
NewDeleteKeyRequest constructs an http.Request for the DeleteKey method
func NewDeleteProviderRequest ¶
func NewDeleteProviderRequest(server string, name ProviderName) (*http.Request, error)
NewDeleteProviderRequest constructs an http.Request for the DeleteProvider method
func NewExportConfigRequest ¶
NewExportConfigRequest constructs an http.Request for the ExportConfig method
func NewGetAccountLoginRequest ¶
func NewGetAccountLoginRequest(server string, state LoginState) (*http.Request, error)
NewGetAccountLoginRequest constructs an http.Request for the GetAccountLogin method
func NewGetAccountPoolRequest ¶ added in v0.2.1
NewGetAccountPoolRequest constructs an http.Request for the GetAccountPool method
func NewGetAliasChainRequest ¶
NewGetAliasChainRequest constructs an http.Request for the GetAliasChain method
func NewGetAliasRequest ¶
NewGetAliasRequest constructs an http.Request for the GetAlias method
func NewGetHealthRequest ¶
NewGetHealthRequest constructs an http.Request for the GetHealth method
func NewGetKeyRequest ¶
NewGetKeyRequest constructs an http.Request for the GetKey method
func NewGetKeyUsageRequest ¶
func NewGetKeyUsageRequest(server string, id KeyId, params *GetKeyUsageParams) (*http.Request, error)
NewGetKeyUsageRequest constructs an http.Request for the GetKeyUsage method
func NewGetLogRequest ¶
NewGetLogRequest constructs an http.Request for the GetLog method
func NewGetProviderModelsRequest ¶ added in v0.7.0
func NewGetProviderModelsRequest(server string, name ProviderName) (*http.Request, error)
NewGetProviderModelsRequest constructs an http.Request for the GetProviderModels method
func NewGetProviderRequest ¶
func NewGetProviderRequest(server string, name ProviderName) (*http.Request, error)
NewGetProviderRequest constructs an http.Request for the GetProvider method
func NewGetQuotaRequest ¶ added in v0.3.0
func NewGetQuotaRequest(server string, params *GetQuotaParams) (*http.Request, error)
NewGetQuotaRequest constructs an http.Request for the GetQuota method
func NewGetSessionRequest ¶
NewGetSessionRequest constructs an http.Request for the GetSession method
func NewGetStatsRequest ¶
func NewGetStatsRequest(server string, params *GetStatsParams) (*http.Request, error)
NewGetStatsRequest constructs an http.Request for the GetStats method
func NewGetVersionRequest ¶
NewGetVersionRequest constructs an http.Request for the GetVersion method
func NewImportAccountRequest ¶
func NewImportAccountRequest(server string, body ImportAccountJSONRequestBody) (*http.Request, error)
NewImportAccountRequest calls the generic ImportAccount builder with application/json body
func NewImportAccountRequestWithBody ¶
func NewImportAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewImportAccountRequestWithBody constructs an http.Request for the ImportAccount method, with any body, and a specified content type
func NewListAccountStrategiesRequest ¶ added in v0.3.0
func NewListAccountStrategiesRequest(server string, params *ListAccountStrategiesParams) (*http.Request, error)
NewListAccountStrategiesRequest constructs an http.Request for the ListAccountStrategies method
func NewListAccountsRequest ¶
func NewListAccountsRequest(server string, params *ListAccountsParams) (*http.Request, error)
NewListAccountsRequest constructs an http.Request for the ListAccounts method
func NewListAliasesRequest ¶
func NewListAliasesRequest(server string, params *ListAliasesParams) (*http.Request, error)
NewListAliasesRequest constructs an http.Request for the ListAliases method
func NewListApiTokensRequest ¶
func NewListApiTokensRequest(server string, params *ListApiTokensParams) (*http.Request, error)
NewListApiTokensRequest constructs an http.Request for the ListApiTokens method
func NewListAuditRequest ¶ added in v0.7.0
func NewListAuditRequest(server string, params *ListAuditParams) (*http.Request, error)
NewListAuditRequest constructs an http.Request for the ListAudit method
func NewListCoolingRequest ¶
func NewListCoolingRequest(server string, params *ListCoolingParams) (*http.Request, error)
NewListCoolingRequest constructs an http.Request for the ListCooling method
func NewListKeysRequest ¶
func NewListKeysRequest(server string, params *ListKeysParams) (*http.Request, error)
NewListKeysRequest constructs an http.Request for the ListKeys method
func NewListLogsRequest ¶
func NewListLogsRequest(server string, params *ListLogsParams) (*http.Request, error)
NewListLogsRequest constructs an http.Request for the ListLogs method
func NewListProvidersRequest ¶
func NewListProvidersRequest(server string, params *ListProvidersParams) (*http.Request, error)
NewListProvidersRequest constructs an http.Request for the ListProviders method
func NewLoginRequest ¶
func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
NewLoginRequest calls the generic Login builder with application/json body
func NewLoginRequestWithBody ¶
func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLoginRequestWithBody constructs an http.Request for the Login method, with any body, and a specified content type
func NewLogoutRequest ¶
NewLogoutRequest constructs an http.Request for the Logout method
func NewPlanConfigRequest ¶
func NewPlanConfigRequest(server string, body PlanConfigJSONRequestBody) (*http.Request, error)
NewPlanConfigRequest calls the generic PlanConfig builder with application/json body
func NewPlanConfigRequestWithBody ¶
func NewPlanConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPlanConfigRequestWithBody constructs an http.Request for the PlanConfig method, with any body, and a specified content type
func NewRefreshQuotaRequest ¶ added in v0.3.0
func NewRefreshQuotaRequest(server string, body RefreshQuotaJSONRequestBody) (*http.Request, error)
NewRefreshQuotaRequest calls the generic RefreshQuota builder with application/json body
func NewRefreshQuotaRequestWithBody ¶ added in v0.3.0
func NewRefreshQuotaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRefreshQuotaRequestWithBody constructs an http.Request for the RefreshQuota method, with any body, and a specified content type
func NewResetAccountCooldownRequest ¶
NewResetAccountCooldownRequest constructs an http.Request for the ResetAccountCooldown method
func NewSetAccountStrategyRequest ¶ added in v0.3.0
func NewSetAccountStrategyRequest(server string, provider string, body SetAccountStrategyJSONRequestBody) (*http.Request, error)
NewSetAccountStrategyRequest calls the generic SetAccountStrategy builder with application/json body
func NewSetAccountStrategyRequestWithBody ¶ added in v0.3.0
func NewSetAccountStrategyRequestWithBody(server string, provider string, contentType string, body io.Reader) (*http.Request, error)
NewSetAccountStrategyRequestWithBody constructs an http.Request for the SetAccountStrategy method, with any body, and a specified content type
func NewStartAccountLoginRequest ¶
func NewStartAccountLoginRequest(server string, body StartAccountLoginJSONRequestBody) (*http.Request, error)
NewStartAccountLoginRequest calls the generic StartAccountLogin builder with application/json body
func NewStartAccountLoginRequestWithBody ¶
func NewStartAccountLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartAccountLoginRequestWithBody constructs an http.Request for the StartAccountLogin method, with any body, and a specified content type
func NewTestProviderRequest ¶
func NewTestProviderRequest(server string, name ProviderName) (*http.Request, error)
NewTestProviderRequest constructs an http.Request for the TestProvider method
func NewUpdateAccountRequest ¶
func NewUpdateAccountRequest(server string, id AccountId, body UpdateAccountJSONRequestBody) (*http.Request, error)
NewUpdateAccountRequest calls the generic UpdateAccount builder with application/json body
func NewUpdateAccountRequestWithBody ¶
func NewUpdateAccountRequestWithBody(server string, id AccountId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAccountRequestWithBody constructs an http.Request for the UpdateAccount method, with any body, and a specified content type
func NewUpdateAliasRequest ¶
func NewUpdateAliasRequest(server string, name AliasName, body UpdateAliasJSONRequestBody) (*http.Request, error)
NewUpdateAliasRequest calls the generic UpdateAlias builder with application/json body
func NewUpdateAliasRequestWithBody ¶
func NewUpdateAliasRequestWithBody(server string, name AliasName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAliasRequestWithBody constructs an http.Request for the UpdateAlias method, with any body, and a specified content type
func NewUpdateKeyRequest ¶
func NewUpdateKeyRequest(server string, id KeyId, body UpdateKeyJSONRequestBody) (*http.Request, error)
NewUpdateKeyRequest calls the generic UpdateKey builder with application/json body
func NewUpdateKeyRequestWithBody ¶
func NewUpdateKeyRequestWithBody(server string, id KeyId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateKeyRequestWithBody constructs an http.Request for the UpdateKey method, with any body, and a specified content type
func NewUpdateProviderRequest ¶
func NewUpdateProviderRequest(server string, name ProviderName, body UpdateProviderJSONRequestBody) (*http.Request, error)
NewUpdateProviderRequest calls the generic UpdateProvider builder with application/json body
func NewUpdateProviderRequestWithBody ¶
func NewUpdateProviderRequestWithBody(server string, name ProviderName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateProviderRequestWithBody constructs an http.Request for the UpdateProvider method, with any body, and a specified content type
Types ¶
type Account ¶
type Account struct {
CooldownUntil *time.Time `json:"cooldown_until,omitempty"`
Email *string `json:"email,omitempty"`
Enabled bool `json:"enabled"`
Id string `json:"id"`
Message *string `json:"message,omitempty"`
Models []string `json:"models"`
// Priority Higher is tried first under the provider's `priority` and `fill-first` strategies; default 0.
Priority int `json:"priority"`
Provider string `json:"provider"`
Quota []AccountQuota `json:"quota"`
Status string `json:"status"`
}
Account defines model for Account.
type AccountImport ¶
type AccountImport struct {
// Credential The provider's OAuth credential file, as JSON.
Credential map[string]any `json:"credential"`
Provider string `json:"provider"`
}
AccountImport defines model for AccountImport.
type AccountList ¶
AccountList defines model for AccountList.
type AccountLogin ¶
type AccountLogin struct {
State string `json:"state"`
// Url The sign-in page, or with `user_code` the device flow's verification page.
Url string `json:"url"`
UserCode *string `json:"user_code,omitempty"`
}
AccountLogin defines model for AccountLogin.
type AccountLoginComplete ¶
type AccountLoginComplete struct {
RedirectUrl string `json:"redirect_url"`
}
AccountLoginComplete defines model for AccountLoginComplete.
type AccountLoginStart ¶
type AccountLoginStart struct {
Provider string `json:"provider"`
}
AccountLoginStart defines model for AccountLoginStart.
type AccountLoginStatus ¶
type AccountLoginStatus struct {
Message *string `json:"message,omitempty"`
Status AccountLoginStatusStatus `json:"status"`
}
AccountLoginStatus defines model for AccountLoginStatus.
type AccountLoginStatusStatus ¶
type AccountLoginStatusStatus string
AccountLoginStatusStatus defines model for AccountLoginStatus.Status.
const ( AccountLoginStatusStatusError AccountLoginStatusStatus = "error" AccountLoginStatusStatusOk AccountLoginStatusStatus = "ok" AccountLoginStatusStatusWait AccountLoginStatusStatus = "wait" )
Defines values for AccountLoginStatusStatus.
func (AccountLoginStatusStatus) Valid ¶
func (e AccountLoginStatusStatus) Valid() bool
Valid indicates whether the value is a known member of the AccountLoginStatusStatus enum.
type AccountPool ¶ added in v0.2.1
type AccountPool struct {
// Enabled Enabled accounts of the provider.
Enabled int `json:"enabled"`
Out []PoolAccount `json:"out"`
Provider string `json:"provider"`
}
AccountPool defines model for AccountPool.
type AccountQuota ¶
type AccountQuota struct {
Model *string `json:"model,omitempty"`
RemainingFraction *float64 `json:"remaining_fraction,omitempty"`
ResetAt *time.Time `json:"reset_at,omitempty"`
}
AccountQuota defines model for AccountQuota.
type AccountStrategy ¶ added in v0.3.0
type AccountStrategy struct {
Provider string `json:"provider"`
// Strategy Which member (alias) or account (subscription provider) a request tries first; "busy" counts the requests started in the last 60 seconds, and ties go to declared order. `priority`: the first live member in order / the highest priority tier, rotating inside it. `fill-first`: the same as priority for an alias / one account at a time, priority high first, then oldest. `round-robin`: a rotation over the live members / accounts. `random`: uniform over the live members / accounts. `p2c`: two live members / accounts at random, the less busy one wins. `least-used`: the least busy live member / account. An alias without a strategy is `priority`; it is always set in an answer.
Strategy RoutingStrategy `json:"strategy"`
}
AccountStrategy defines model for AccountStrategy.
type AccountStrategyList ¶ added in v0.3.0
type AccountStrategyList struct {
Items []AccountStrategy `json:"items"`
Total int `json:"total"`
}
AccountStrategyList defines model for AccountStrategyList.
type AccountUpdate ¶
type AccountUpdate struct {
Enabled *bool `json:"enabled,omitempty"`
Priority *int `json:"priority,omitempty"`
}
AccountUpdate defines model for AccountUpdate.
type Alias ¶
type Alias struct {
// Capabilities Advertised supported parameters, e.g. `tools`, `structured_outputs`.
Capabilities []string `json:"capabilities"`
ContextWindow *int `json:"context_window,omitempty"`
Kind AliasKind `json:"kind"`
// Members Alias names or `<provider>/<model>` references, in fallback order. A subscription model may end in a thinking level, `(minimal)`, `(low)`, `(medium)`, `(high)`, or a token budget such as `(1024)` (`(0)` turns thinking off); it overrides the client's `reasoning_effort` for that member.
Members []string `json:"members"`
Name string `json:"name"`
// Strategy Which member (alias) or account (subscription provider) a request tries first; "busy" counts the requests started in the last 60 seconds, and ties go to declared order. `priority`: the first live member in order / the highest priority tier, rotating inside it. `fill-first`: the same as priority for an alias / one account at a time, priority high first, then oldest. `round-robin`: a rotation over the live members / accounts. `random`: uniform over the live members / accounts. `p2c`: two live members / accounts at random, the less busy one wins. `least-used`: the least busy live member / account. An alias without a strategy is `priority`; it is always set in an answer.
Strategy *RoutingStrategy `json:"strategy,omitempty"`
}
Alias defines model for Alias.
type AliasChain ¶
type AliasChain struct {
Targets []ChainTarget `json:"targets"`
}
AliasChain defines model for AliasChain.
type AliasKind ¶
type AliasKind string
AliasKind defines model for AliasKind.
type ApiToken ¶
type ApiToken struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id string `json:"id"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Scope *ApiTokenScope `json:"scope,omitempty"`
}
ApiToken defines model for ApiToken.
type ApiTokenCreate ¶
type ApiTokenCreate struct {
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Name string `json:"name"`
Scope *ApiTokenScope `json:"scope,omitempty"`
}
ApiTokenCreate defines model for ApiTokenCreate.
type ApiTokenCreated ¶
type ApiTokenCreated struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id string `json:"id"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Scope *ApiTokenScope `json:"scope,omitempty"`
// Value The token's value, returned only when it is created.
Value string `json:"value"`
}
ApiTokenCreated defines model for ApiTokenCreated.
type ApiTokenList ¶
ApiTokenList defines model for ApiTokenList.
type ApiTokenScope ¶ added in v0.7.0
type ApiTokenScope string
ApiTokenScope defines model for ApiTokenScope.
const ( Admin ApiTokenScope = "admin" Operate ApiTokenScope = "operate" Read ApiTokenScope = "read" )
Defines values for ApiTokenScope.
func (ApiTokenScope) Valid ¶ added in v0.7.0
func (e ApiTokenScope) Valid() bool
Valid indicates whether the value is a known member of the ApiTokenScope enum.
type ApplyConfig200JSONResponse ¶
type ApplyConfig200JSONResponse ConfigChanges
func (ApplyConfig200JSONResponse) VisitApplyConfigResponse ¶
func (response ApplyConfig200JSONResponse) VisitApplyConfigResponse(w http.ResponseWriter) error
type ApplyConfig412JSONResponse ¶ added in v0.3.0
type ApplyConfig412JSONResponse ConfigChanges
func (ApplyConfig412JSONResponse) VisitApplyConfigResponse ¶ added in v0.3.0
func (response ApplyConfig412JSONResponse) VisitApplyConfigResponse(w http.ResponseWriter) error
type ApplyConfigJSONRequestBody ¶
type ApplyConfigJSONRequestBody = ConfigRequest
ApplyConfigJSONRequestBody defines body for ApplyConfig for application/json ContentType.
type ApplyConfigRequestObject ¶
type ApplyConfigRequestObject struct {
Body *ApplyConfigJSONRequestBody
}
type ApplyConfigResponse ¶
type ApplyConfigResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConfigChanges
// JSON412 the response for an HTTP 412 `application/json` response
JSON412 *ConfigChanges
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseApplyConfigResponse ¶
func ParseApplyConfigResponse(rsp *http.Response) (*ApplyConfigResponse, error)
ParseApplyConfigResponse parses an HTTP response from a ApplyConfigWithResponse call
func (ApplyConfigResponse) ContentType ¶
func (r ApplyConfigResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ApplyConfigResponse) GetBody ¶
func (r ApplyConfigResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ApplyConfigResponse) GetJSON200 ¶
func (r ApplyConfigResponse) GetJSON200() *ConfigChanges
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ApplyConfigResponse) GetJSON412 ¶ added in v0.3.0
func (r ApplyConfigResponse) GetJSON412() *ConfigChanges
GetJSON412 returns the response for an HTTP 412 `application/json` response
func (ApplyConfigResponse) GetJSONDefault ¶
func (r ApplyConfigResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ApplyConfigResponse) Status ¶
func (r ApplyConfigResponse) Status() string
Status returns HTTPResponse.Status
func (ApplyConfigResponse) StatusCode ¶
func (r ApplyConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApplyConfigResponseObject ¶
type ApplyConfigResponseObject interface {
VisitApplyConfigResponse(w http.ResponseWriter) error
}
type ApplyConfigdefaultJSONResponse ¶
func (ApplyConfigdefaultJSONResponse) VisitApplyConfigResponse ¶
func (response ApplyConfigdefaultJSONResponse) VisitApplyConfigResponse(w http.ResponseWriter) error
type AuditEntry ¶ added in v0.7.0
type AuditEntry struct {
At time.Time `json:"at"`
// Diff Target and submitted changes where applicable. Secrets are masked as `[set]`.
Diff map[string]any `json:"diff"`
Id int64 `json:"id"`
// OperationId The OpenAPI operationId of the action.
OperationId string `json:"operation_id"`
Principal AuditEntryPrincipal `json:"principal"`
// TokenId Present for a token principal.
TokenId *string `json:"token_id,omitempty"`
// TokenName The token name at the time of the action.
TokenName *string `json:"token_name,omitempty"`
}
AuditEntry defines model for AuditEntry.
type AuditEntryPrincipal ¶ added in v0.7.0
type AuditEntryPrincipal string
AuditEntryPrincipal defines model for AuditEntry.Principal.
const ( AuditEntryPrincipalSession AuditEntryPrincipal = "session" AuditEntryPrincipalToken AuditEntryPrincipal = "token" )
Defines values for AuditEntryPrincipal.
func (AuditEntryPrincipal) Valid ¶ added in v0.7.0
func (e AuditEntryPrincipal) Valid() bool
Valid indicates whether the value is a known member of the AuditEntryPrincipal enum.
type AuditList ¶ added in v0.7.0
type AuditList struct {
Items []AuditEntry `json:"items"`
Total int `json:"total"`
}
AuditList defines model for AuditList.
type CancelAccountLogin204Response ¶
type CancelAccountLogin204Response struct {
}
func (CancelAccountLogin204Response) VisitCancelAccountLoginResponse ¶
func (response CancelAccountLogin204Response) VisitCancelAccountLoginResponse(w http.ResponseWriter) error
type CancelAccountLoginRequestObject ¶
type CancelAccountLoginRequestObject struct {
State LoginState `json:"state"`
}
type CancelAccountLoginResponse ¶
type CancelAccountLoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCancelAccountLoginResponse ¶
func ParseCancelAccountLoginResponse(rsp *http.Response) (*CancelAccountLoginResponse, error)
ParseCancelAccountLoginResponse parses an HTTP response from a CancelAccountLoginWithResponse call
func (CancelAccountLoginResponse) ContentType ¶
func (r CancelAccountLoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelAccountLoginResponse) GetBody ¶
func (r CancelAccountLoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelAccountLoginResponse) GetJSONDefault ¶
func (r CancelAccountLoginResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CancelAccountLoginResponse) Status ¶
func (r CancelAccountLoginResponse) Status() string
Status returns HTTPResponse.Status
func (CancelAccountLoginResponse) StatusCode ¶
func (r CancelAccountLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelAccountLoginResponseObject ¶
type CancelAccountLoginResponseObject interface {
VisitCancelAccountLoginResponse(w http.ResponseWriter) error
}
type CancelAccountLogindefaultJSONResponse ¶
func (CancelAccountLogindefaultJSONResponse) VisitCancelAccountLoginResponse ¶
func (response CancelAccountLogindefaultJSONResponse) VisitCancelAccountLoginResponse(w http.ResponseWriter) error
type ChainTarget ¶
type ChainTarget struct {
CoolingUntil *time.Time `json:"cooling_until,omitempty"`
Model string `json:"model"`
Provider string `json:"provider"`
}
ChainTarget defines model for ChainTarget.
type Change ¶
type Change struct {
// Fields The fields an update changes; empty for create and delete.
Fields []string `json:"fields"`
Kind ChangeKind `json:"kind"`
Name string `json:"name"`
Op ChangeOp `json:"op"`
// Value A client key value apply generated for a new key whose document gives none. Shown once, only in the answer of apply.
Value *string `json:"value,omitempty"`
}
Change defines model for Change.
type ChangeKind ¶
type ChangeKind string
ChangeKind defines model for Change.Kind.
const ( ChangeKindAccountStrategy ChangeKind = "account_strategy" ChangeKindAlias ChangeKind = "alias" ChangeKindKey ChangeKind = "key" ChangeKindProvider ChangeKind = "provider" )
Defines values for ChangeKind.
func (ChangeKind) Valid ¶
func (e ChangeKind) Valid() bool
Valid indicates whether the value is a known member of the ChangeKind enum.
type ChangeOp ¶
type ChangeOp string
ChangeOp defines model for Change.Op.
Defines values for ChangeOp.
type ChangePassword204Response ¶
type ChangePassword204Response struct {
}
func (ChangePassword204Response) VisitChangePasswordResponse ¶
func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = PasswordChange
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordRequestObject ¶
type ChangePasswordRequestObject struct {
Body *ChangePasswordJSONRequestBody
}
type ChangePasswordResponse ¶
type ChangePasswordResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseChangePasswordResponse ¶
func ParseChangePasswordResponse(rsp *http.Response) (*ChangePasswordResponse, error)
ParseChangePasswordResponse parses an HTTP response from a ChangePasswordWithResponse call
func (ChangePasswordResponse) ContentType ¶
func (r ChangePasswordResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ChangePasswordResponse) GetBody ¶
func (r ChangePasswordResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ChangePasswordResponse) GetJSONDefault ¶
func (r ChangePasswordResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ChangePasswordResponse) Status ¶
func (r ChangePasswordResponse) Status() string
Status returns HTTPResponse.Status
func (ChangePasswordResponse) StatusCode ¶
func (r ChangePasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ChangePasswordResponseObject ¶
type ChangePasswordResponseObject interface {
VisitChangePasswordResponse(w http.ResponseWriter) error
}
type ChangePassworddefaultJSONResponse ¶
func (ChangePassworddefaultJSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassworddefaultJSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ApplyConfig ¶
func (c *Client) ApplyConfig(ctx context.Context, body ApplyConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyConfig Make the store match a `remora.yaml` document.
Takes a body of the `application/json` content type.
Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
func (*Client) ApplyConfigWithBody ¶
func (c *Client) ApplyConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyConfigWithBody Make the store match a `remora.yaml` document.
Takes any type of body and a specified content type.
Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
func (*Client) CancelAccountLogin ¶
func (c *Client) CancelAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelAccountLogin Cancel a login that has not finished.
Corresponds with DELETE /api/accounts/logins/{state} (the `CancelAccountLogin` operationId).
func (*Client) ChangePassword ¶
func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangePassword Change the admin password.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
func (*Client) ChangePasswordWithBody ¶
func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangePasswordWithBody Change the admin password.
Takes any type of body and a specified content type.
Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
func (*Client) CompileAlias ¶
func (c *Client) CompileAlias(ctx context.Context, body CompileAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CompileAlias Compile an unsaved alias into its chain of targets; nothing is stored.
Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
Takes a body of the `application/json` content type.
Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
func (*Client) CompileAliasWithBody ¶
func (c *Client) CompileAliasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CompileAliasWithBody Compile an unsaved alias into its chain of targets; nothing is stored.
Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
Takes any type of body and a specified content type.
Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
func (*Client) CompleteAccountLogin ¶
func (c *Client) CompleteAccountLogin(ctx context.Context, state LoginState, body CompleteAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteAccountLogin Complete a login with the redirect URL the user pasted from the browser.
Takes a body of the `application/json` content type.
Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
func (*Client) CompleteAccountLoginWithBody ¶
func (c *Client) CompleteAccountLoginWithBody(ctx context.Context, state LoginState, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteAccountLoginWithBody Complete a login with the redirect URL the user pasted from the browser.
Takes any type of body and a specified content type.
Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
func (*Client) CreateAlias ¶
func (c *Client) CreateAlias(ctx context.Context, body CreateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlias Create an alias.
Takes a body of the `application/json` content type.
Corresponds with POST /api/aliases (the `CreateAlias` operationId).
func (*Client) CreateAliasWithBody ¶
func (c *Client) CreateAliasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAliasWithBody Create an alias.
Takes any type of body and a specified content type.
Corresponds with POST /api/aliases (the `CreateAlias` operationId).
func (*Client) CreateApiToken ¶
func (c *Client) CreateApiToken(ctx context.Context, body CreateApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApiToken Create an API token. The value is returned only here.
Takes a body of the `application/json` content type.
Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
func (*Client) CreateApiTokenWithBody ¶
func (c *Client) CreateApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApiTokenWithBody Create an API token. The value is returned only here.
Takes any type of body and a specified content type.
Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
func (*Client) CreateKey ¶
func (c *Client) CreateKey(ctx context.Context, body CreateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateKey Create a client key. The value is returned only here.
Takes a body of the `application/json` content type.
Corresponds with POST /api/keys (the `CreateKey` operationId).
func (*Client) CreateKeyWithBody ¶
func (c *Client) CreateKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateKeyWithBody Create a client key. The value is returned only here.
Takes any type of body and a specified content type.
Corresponds with POST /api/keys (the `CreateKey` operationId).
func (*Client) CreateProvider ¶
func (c *Client) CreateProvider(ctx context.Context, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateProvider Create a provider.
Takes a body of the `application/json` content type.
Corresponds with POST /api/providers (the `CreateProvider` operationId).
func (*Client) CreateProviderWithBody ¶
func (c *Client) CreateProviderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateProviderWithBody Create a provider.
Takes any type of body and a specified content type.
Corresponds with POST /api/providers (the `CreateProvider` operationId).
func (*Client) DeleteAccount ¶
func (c *Client) DeleteAccount(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAccount Delete an account.
Corresponds with DELETE /api/accounts/{id} (the `DeleteAccount` operationId).
func (*Client) DeleteAlias ¶
func (c *Client) DeleteAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAlias Delete an alias.
Corresponds with DELETE /api/aliases/{name} (the `DeleteAlias` operationId).
func (*Client) DeleteApiToken ¶
func (c *Client) DeleteApiToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiToken Delete an API token.
Corresponds with DELETE /api/settings/tokens/{id} (the `DeleteApiToken` operationId).
func (*Client) DeleteKey ¶
func (c *Client) DeleteKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteKey Delete a client key.
Corresponds with DELETE /api/keys/{id} (the `DeleteKey` operationId).
func (*Client) DeleteProvider ¶
func (c *Client) DeleteProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteProvider Delete a provider.
Corresponds with DELETE /api/providers/{name} (the `DeleteProvider` operationId).
func (*Client) ExportConfig ¶
func (c *Client) ExportConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ExportConfig Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
Corresponds with GET /api/config/export (the `ExportConfig` operationId).
func (*Client) GetAccountLogin ¶
func (c *Client) GetAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccountLogin Poll the status of a login.
Corresponds with GET /api/accounts/logins/{state} (the `GetAccountLogin` operationId).
func (*Client) GetAccountPool ¶ added in v0.2.1
func (c *Client) GetAccountPool(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccountPool Enabled subscription accounts that dropped out of the pool, per provider.
An account is out when its sign-in is missing, its refresh failed for good, or the provider signed it out or refused payment. An account cooling on a rate limit or a transient error is not out. Only providers with at least one enabled account are listed.
Corresponds with GET /api/accounts/pool (the `GetAccountPool` operationId).
func (*Client) GetAlias ¶
func (c *Client) GetAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlias Get an alias.
Corresponds with GET /api/aliases/{name} (the `GetAlias` operationId).
func (*Client) GetAliasChain ¶
func (c *Client) GetAliasChain(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAliasChain Get the compiled chain of a stored alias, with cooling members marked.
Corresponds with GET /api/aliases/{name}/chain (the `GetAliasChain` operationId).
func (*Client) GetHealth ¶
func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHealth Report whether remora and its components are healthy.
Corresponds with GET /api/health (the `GetHealth` operationId).
func (*Client) GetKey ¶
func (c *Client) GetKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetKey Get a client key.
Corresponds with GET /api/keys/{id} (the `GetKey` operationId).
func (*Client) GetKeyUsage ¶
func (c *Client) GetKeyUsage(ctx context.Context, id KeyId, params *GetKeyUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetKeyUsage Get the usage of one key over a time range.
Corresponds with GET /api/keys/{id}/usage (the `GetKeyUsage` operationId).
func (*Client) GetLog ¶
func (c *Client) GetLog(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLog Get one log entry with its bodies and fallback path.
Corresponds with GET /api/logs/{id} (the `GetLog` operationId).
func (*Client) GetProvider ¶
func (c *Client) GetProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProvider Get a provider.
Corresponds with GET /api/providers/{name} (the `GetProvider` operationId).
func (*Client) GetProviderModels ¶ added in v0.7.0
func (c *Client) GetProviderModels(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProviderModels Get a provider's known models as provider/model references.
Corresponds with GET /api/providers/{name}/models (the `GetProviderModels` operationId).
func (*Client) GetQuota ¶ added in v0.3.0
func (c *Client) GetQuota(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetQuota List subscription account quotas, grouped by provider.
Paging and case-insensitive search by account label, id or plan apply to accounts, not provider summaries. Provider summaries retain their full counts even when they have no accounts on the page. A provider whose quota remora cannot read has `supported` false and its accounts carry no `quota`. A window whose number the provider did not report has `remaining` null.
Corresponds with GET /api/quota (the `GetQuota` operationId).
func (*Client) GetSession ¶
func (c *Client) GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSession Report how the caller is authenticated; 401 when it is not.
Corresponds with GET /api/auth/session (the `GetSession` operationId).
func (*Client) GetStats ¶
func (c *Client) GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStats Get volume, errors, latency, tokens and cost over a time range.
Corresponds with GET /api/stats (the `GetStats` operationId).
func (*Client) GetVersion ¶
func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVersion Report the version of remora and of each engine it runs.
Corresponds with GET /api/system/version (the `GetVersion` operationId).
func (*Client) ImportAccount ¶
func (c *Client) ImportAccount(ctx context.Context, body ImportAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ImportAccount Import an account from an existing OAuth credential.
Takes a body of the `application/json` content type.
Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
func (*Client) ImportAccountWithBody ¶
func (c *Client) ImportAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ImportAccountWithBody Import an account from an existing OAuth credential.
Takes any type of body and a specified content type.
Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
func (*Client) ListAccountStrategies ¶ added in v0.3.0
func (c *Client) ListAccountStrategies(ctx context.Context, params *ListAccountStrategiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAccountStrategies The routing strategy of every subscription provider's account pool.
Corresponds with GET /api/accounts/strategies (the `ListAccountStrategies` operationId).
func (*Client) ListAccounts ¶
func (c *Client) ListAccounts(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAccounts List subscription accounts with quota, cooldown and models.
Corresponds with GET /api/accounts (the `ListAccounts` operationId).
func (*Client) ListAliases ¶
func (c *Client) ListAliases(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAliases List aliases.
Corresponds with GET /api/aliases (the `ListAliases` operationId).
func (*Client) ListApiTokens ¶
func (c *Client) ListApiTokens(ctx context.Context, params *ListApiTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApiTokens List API tokens.
Corresponds with GET /api/settings/tokens (the `ListApiTokens` operationId).
func (*Client) ListAudit ¶ added in v0.7.0
func (c *Client) ListAudit(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAudit List audited management actions, newest recorded first.
Corresponds with GET /api/audit (the `ListAudit` operationId).
func (*Client) ListCooling ¶
func (c *Client) ListCooling(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListCooling List the alias members that are cooling down.
Corresponds with GET /api/cooling (the `ListCooling` operationId).
func (*Client) ListKeys ¶
func (c *Client) ListKeys(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListKeys List client keys.
Corresponds with GET /api/keys (the `ListKeys` operationId).
func (*Client) ListLogs ¶
func (c *Client) ListLogs(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLogs List request logs, newest first.
Corresponds with GET /api/logs (the `ListLogs` operationId).
func (*Client) ListProviders ¶
func (c *Client) ListProviders(ctx context.Context, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListProviders List providers.
Corresponds with GET /api/providers (the `ListProviders` operationId).
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Login Sign in as the admin and receive a session cookie.
Takes a body of the `application/json` content type.
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*Client) LoginWithBody ¶
func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LoginWithBody Sign in as the admin and receive a session cookie.
Takes any type of body and a specified content type.
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*Client) Logout ¶
Logout End the current session.
Corresponds with POST /api/auth/logout (the `Logout` operationId).
func (*Client) PlanConfig ¶
func (c *Client) PlanConfig(ctx context.Context, body PlanConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PlanConfig Show the changes a `remora.yaml` document would make; nothing is changed.
Takes a body of the `application/json` content type.
Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
func (*Client) PlanConfigWithBody ¶
func (c *Client) PlanConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PlanConfigWithBody Show the changes a `remora.yaml` document would make; nothing is changed.
Takes any type of body and a specified content type.
Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
func (*Client) RefreshQuota ¶ added in v0.3.0
func (c *Client) RefreshQuota(ctx context.Context, body RefreshQuotaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshQuota Queue quota checks of one account or of every enabled account of one provider.
Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
Takes a body of the `application/json` content type.
Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
func (*Client) RefreshQuotaWithBody ¶ added in v0.3.0
func (c *Client) RefreshQuotaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshQuotaWithBody Queue quota checks of one account or of every enabled account of one provider.
Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
Takes any type of body and a specified content type.
Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
func (*Client) ResetAccountCooldown ¶
func (c *Client) ResetAccountCooldown(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetAccountCooldown Clear an account's cooldown so it serves requests again.
Corresponds with POST /api/accounts/{id}/reset-cooldown (the `ResetAccountCooldown` operationId).
func (*Client) SetAccountStrategy ¶ added in v0.3.0
func (c *Client) SetAccountStrategy(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetAccountStrategy Set which account of a subscription provider serves a request.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
func (*Client) SetAccountStrategyWithBody ¶ added in v0.3.0
func (c *Client) SetAccountStrategyWithBody(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetAccountStrategyWithBody Set which account of a subscription provider serves a request.
Takes any type of body and a specified content type.
Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
func (*Client) StartAccountLogin ¶
func (c *Client) StartAccountLogin(ctx context.Context, body StartAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
StartAccountLogin Start an OAuth login for a subscription provider.
Takes a body of the `application/json` content type.
Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
func (*Client) StartAccountLoginWithBody ¶
func (c *Client) StartAccountLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartAccountLoginWithBody Start an OAuth login for a subscription provider.
Takes any type of body and a specified content type.
Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
func (*Client) TestProvider ¶
func (c *Client) TestProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
TestProvider Send a small request to the provider and report the result.
Corresponds with POST /api/providers/{name}/test (the `TestProvider` operationId).
func (*Client) UpdateAccount ¶
func (c *Client) UpdateAccount(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAccount Enable or disable an account, or set its priority.
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
func (*Client) UpdateAccountWithBody ¶
func (c *Client) UpdateAccountWithBody(ctx context.Context, id AccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAccountWithBody Enable or disable an account, or set its priority.
Takes any type of body and a specified content type.
Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
func (*Client) UpdateAlias ¶
func (c *Client) UpdateAlias(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAlias Replace an alias.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
func (*Client) UpdateAliasWithBody ¶
func (c *Client) UpdateAliasWithBody(ctx context.Context, name AliasName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAliasWithBody Replace an alias.
Takes any type of body and a specified content type.
Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
func (*Client) UpdateKey ¶
func (c *Client) UpdateKey(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateKey Rename a key, change its allowlist, or enable or disable it.
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
func (*Client) UpdateKeyWithBody ¶
func (c *Client) UpdateKeyWithBody(ctx context.Context, id KeyId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateKeyWithBody Rename a key, change its allowlist, or enable or disable it.
Takes any type of body and a specified content type.
Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
func (*Client) UpdateProvider ¶
func (c *Client) UpdateProvider(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateProvider Replace a provider. Keys sent without a value keep their stored secret.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
func (*Client) UpdateProviderWithBody ¶
func (c *Client) UpdateProviderWithBody(ctx context.Context, name ProviderName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateProviderWithBody Replace a provider. Keys sent without a value keep their stored secret.
Takes any type of body and a specified content type.
Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListAccounts List subscription accounts with quota, cooldown and models.
//
// Corresponds with GET /api/accounts (the `ListAccounts` operationId).
ListAccounts(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportAccountWithBody Import an account from an existing OAuth credential.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
ImportAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportAccount Import an account from an existing OAuth credential.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
ImportAccount(ctx context.Context, body ImportAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartAccountLoginWithBody Start an OAuth login for a subscription provider.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
StartAccountLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartAccountLogin Start an OAuth login for a subscription provider.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
StartAccountLogin(ctx context.Context, body StartAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelAccountLogin Cancel a login that has not finished.
//
// Corresponds with DELETE /api/accounts/logins/{state} (the `CancelAccountLogin` operationId).
CancelAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountLogin Poll the status of a login.
//
// Corresponds with GET /api/accounts/logins/{state} (the `GetAccountLogin` operationId).
GetAccountLogin(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteAccountLoginWithBody Complete a login with the redirect URL the user pasted from the browser.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
CompleteAccountLoginWithBody(ctx context.Context, state LoginState, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteAccountLogin Complete a login with the redirect URL the user pasted from the browser.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
CompleteAccountLogin(ctx context.Context, state LoginState, body CompleteAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountPool Enabled subscription accounts that dropped out of the pool, per provider.
//
// An account is out when its sign-in is missing, its refresh failed for good, or the provider signed it out or refused payment. An account cooling on a rate limit or a transient error is not out. Only providers with at least one enabled account are listed.
//
// Corresponds with GET /api/accounts/pool (the `GetAccountPool` operationId).
GetAccountPool(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAccountStrategies The routing strategy of every subscription provider's account pool.
//
// Corresponds with GET /api/accounts/strategies (the `ListAccountStrategies` operationId).
ListAccountStrategies(ctx context.Context, params *ListAccountStrategiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetAccountStrategyWithBody Set which account of a subscription provider serves a request.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
SetAccountStrategyWithBody(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetAccountStrategy Set which account of a subscription provider serves a request.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
SetAccountStrategy(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAccount Delete an account.
//
// Corresponds with DELETE /api/accounts/{id} (the `DeleteAccount` operationId).
DeleteAccount(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAccountWithBody Enable or disable an account, or set its priority.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
UpdateAccountWithBody(ctx context.Context, id AccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAccount Enable or disable an account, or set its priority.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
UpdateAccount(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetAccountCooldown Clear an account's cooldown so it serves requests again.
//
// Corresponds with POST /api/accounts/{id}/reset-cooldown (the `ResetAccountCooldown` operationId).
ResetAccountCooldown(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAliases List aliases.
//
// Corresponds with GET /api/aliases (the `ListAliases` operationId).
ListAliases(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAliasWithBody Create an alias.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/aliases (the `CreateAlias` operationId).
CreateAliasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlias Create an alias.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/aliases (the `CreateAlias` operationId).
CreateAlias(ctx context.Context, body CreateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompileAliasWithBody Compile an unsaved alias into its chain of targets; nothing is stored.
//
// Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
CompileAliasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompileAlias Compile an unsaved alias into its chain of targets; nothing is stored.
//
// Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
CompileAlias(ctx context.Context, body CompileAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAlias Delete an alias.
//
// Corresponds with DELETE /api/aliases/{name} (the `DeleteAlias` operationId).
DeleteAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlias Get an alias.
//
// Corresponds with GET /api/aliases/{name} (the `GetAlias` operationId).
GetAlias(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAliasWithBody Replace an alias.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
UpdateAliasWithBody(ctx context.Context, name AliasName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAlias Replace an alias.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
UpdateAlias(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAliasChain Get the compiled chain of a stored alias, with cooling members marked.
//
// Corresponds with GET /api/aliases/{name}/chain (the `GetAliasChain` operationId).
GetAliasChain(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAudit List audited management actions, newest recorded first.
//
// Corresponds with GET /api/audit (the `ListAudit` operationId).
ListAudit(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// LoginWithBody Sign in as the admin and receive a session cookie.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Login Sign in as the admin and receive a session cookie.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Logout End the current session.
//
// Corresponds with POST /api/auth/logout (the `Logout` operationId).
Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSession Report how the caller is authenticated; 401 when it is not.
//
// Corresponds with GET /api/auth/session (the `GetSession` operationId).
GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyConfigWithBody Make the store match a `remora.yaml` document.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
ApplyConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyConfig Make the store match a `remora.yaml` document.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
ApplyConfig(ctx context.Context, body ApplyConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExportConfig Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
//
// Corresponds with GET /api/config/export (the `ExportConfig` operationId).
ExportConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PlanConfigWithBody Show the changes a `remora.yaml` document would make; nothing is changed.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
PlanConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PlanConfig Show the changes a `remora.yaml` document would make; nothing is changed.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
PlanConfig(ctx context.Context, body PlanConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCooling List the alias members that are cooling down.
//
// Corresponds with GET /api/cooling (the `ListCooling` operationId).
ListCooling(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealth Report whether remora and its components are healthy.
//
// Corresponds with GET /api/health (the `GetHealth` operationId).
GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListKeys List client keys.
//
// Corresponds with GET /api/keys (the `ListKeys` operationId).
ListKeys(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateKeyWithBody Create a client key. The value is returned only here.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/keys (the `CreateKey` operationId).
CreateKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateKey Create a client key. The value is returned only here.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/keys (the `CreateKey` operationId).
CreateKey(ctx context.Context, body CreateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteKey Delete a client key.
//
// Corresponds with DELETE /api/keys/{id} (the `DeleteKey` operationId).
DeleteKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetKey Get a client key.
//
// Corresponds with GET /api/keys/{id} (the `GetKey` operationId).
GetKey(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateKeyWithBody Rename a key, change its allowlist, or enable or disable it.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
UpdateKeyWithBody(ctx context.Context, id KeyId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateKey Rename a key, change its allowlist, or enable or disable it.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
UpdateKey(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetKeyUsage Get the usage of one key over a time range.
//
// Corresponds with GET /api/keys/{id}/usage (the `GetKeyUsage` operationId).
GetKeyUsage(ctx context.Context, id KeyId, params *GetKeyUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLogs List request logs, newest first.
//
// Corresponds with GET /api/logs (the `ListLogs` operationId).
ListLogs(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLog Get one log entry with its bodies and fallback path.
//
// Corresponds with GET /api/logs/{id} (the `GetLog` operationId).
GetLog(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListProviders List providers.
//
// Corresponds with GET /api/providers (the `ListProviders` operationId).
ListProviders(ctx context.Context, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateProviderWithBody Create a provider.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/providers (the `CreateProvider` operationId).
CreateProviderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateProvider Create a provider.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/providers (the `CreateProvider` operationId).
CreateProvider(ctx context.Context, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteProvider Delete a provider.
//
// Corresponds with DELETE /api/providers/{name} (the `DeleteProvider` operationId).
DeleteProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProvider Get a provider.
//
// Corresponds with GET /api/providers/{name} (the `GetProvider` operationId).
GetProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateProviderWithBody Replace a provider. Keys sent without a value keep their stored secret.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
UpdateProviderWithBody(ctx context.Context, name ProviderName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateProvider Replace a provider. Keys sent without a value keep their stored secret.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
UpdateProvider(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProviderModels Get a provider's known models as provider/model references.
//
// Corresponds with GET /api/providers/{name}/models (the `GetProviderModels` operationId).
GetProviderModels(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestProvider Send a small request to the provider and report the result.
//
// Corresponds with POST /api/providers/{name}/test (the `TestProvider` operationId).
TestProvider(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQuota List subscription account quotas, grouped by provider.
//
// Paging and case-insensitive search by account label, id or plan apply to accounts, not provider summaries. Provider summaries retain their full counts even when they have no accounts on the page. A provider whose quota remora cannot read has `supported` false and its accounts carry no `quota`. A window whose number the provider did not report has `remaining` null.
//
// Corresponds with GET /api/quota (the `GetQuota` operationId).
GetQuota(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshQuotaWithBody Queue quota checks of one account or of every enabled account of one provider.
//
// Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
RefreshQuotaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshQuota Queue quota checks of one account or of every enabled account of one provider.
//
// Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
RefreshQuota(ctx context.Context, body RefreshQuotaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangePasswordWithBody Change the admin password.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangePassword Change the admin password.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApiTokens List API tokens.
//
// Corresponds with GET /api/settings/tokens (the `ListApiTokens` operationId).
ListApiTokens(ctx context.Context, params *ListApiTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApiTokenWithBody Create an API token. The value is returned only here.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
CreateApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApiToken Create an API token. The value is returned only here.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
CreateApiToken(ctx context.Context, body CreateApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiToken Delete an API token.
//
// Corresponds with DELETE /api/settings/tokens/{id} (the `DeleteApiToken` operationId).
DeleteApiToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStats Get volume, errors, latency, tokens and cost over a time range.
//
// Corresponds with GET /api/stats (the `GetStats` operationId).
GetStats(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVersion Report the version of remora and of each engine it runs.
//
// Corresponds with GET /api/system/version (the `GetVersion` operationId).
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ApplyConfigWithBodyWithResponse ¶
func (c *ClientWithResponses) ApplyConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyConfigResponse, error)
ApplyConfigWithBodyWithResponse Make the store match a `remora.yaml` document.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
func (*ClientWithResponses) ApplyConfigWithResponse ¶
func (c *ClientWithResponses) ApplyConfigWithResponse(ctx context.Context, body ApplyConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyConfigResponse, error)
ApplyConfigWithResponse Make the store match a `remora.yaml` document.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
func (*ClientWithResponses) CancelAccountLoginWithResponse ¶
func (c *ClientWithResponses) CancelAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*CancelAccountLoginResponse, error)
CancelAccountLoginWithResponse Cancel a login that has not finished.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/accounts/logins/{state} (the `CancelAccountLogin` operationId).
func (*ClientWithResponses) ChangePasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
ChangePasswordWithBodyWithResponse Change the admin password.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
func (*ClientWithResponses) ChangePasswordWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
ChangePasswordWithResponse Change the admin password.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
func (*ClientWithResponses) CompileAliasWithBodyWithResponse ¶
func (c *ClientWithResponses) CompileAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompileAliasResponse, error)
CompileAliasWithBodyWithResponse Compile an unsaved alias into its chain of targets; nothing is stored.
Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
func (*ClientWithResponses) CompileAliasWithResponse ¶
func (c *ClientWithResponses) CompileAliasWithResponse(ctx context.Context, body CompileAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*CompileAliasResponse, error)
CompileAliasWithResponse Compile an unsaved alias into its chain of targets; nothing is stored.
Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
func (*ClientWithResponses) CompleteAccountLoginWithBodyWithResponse ¶
func (c *ClientWithResponses) CompleteAccountLoginWithBodyWithResponse(ctx context.Context, state LoginState, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountLoginResponse, error)
CompleteAccountLoginWithBodyWithResponse Complete a login with the redirect URL the user pasted from the browser.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
func (*ClientWithResponses) CompleteAccountLoginWithResponse ¶
func (c *ClientWithResponses) CompleteAccountLoginWithResponse(ctx context.Context, state LoginState, body CompleteAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountLoginResponse, error)
CompleteAccountLoginWithResponse Complete a login with the redirect URL the user pasted from the browser.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
func (*ClientWithResponses) CreateAliasWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAliasResponse, error)
CreateAliasWithBodyWithResponse Create an alias.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/aliases (the `CreateAlias` operationId).
func (*ClientWithResponses) CreateAliasWithResponse ¶
func (c *ClientWithResponses) CreateAliasWithResponse(ctx context.Context, body CreateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAliasResponse, error)
CreateAliasWithResponse Create an alias.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/aliases (the `CreateAlias` operationId).
func (*ClientWithResponses) CreateApiTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiTokenResponse, error)
CreateApiTokenWithBodyWithResponse Create an API token. The value is returned only here.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
func (*ClientWithResponses) CreateApiTokenWithResponse ¶
func (c *ClientWithResponses) CreateApiTokenWithResponse(ctx context.Context, body CreateApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiTokenResponse, error)
CreateApiTokenWithResponse Create an API token. The value is returned only here.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
func (*ClientWithResponses) CreateKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKeyResponse, error)
CreateKeyWithBodyWithResponse Create a client key. The value is returned only here.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/keys (the `CreateKey` operationId).
func (*ClientWithResponses) CreateKeyWithResponse ¶
func (c *ClientWithResponses) CreateKeyWithResponse(ctx context.Context, body CreateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeyResponse, error)
CreateKeyWithResponse Create a client key. The value is returned only here.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/keys (the `CreateKey` operationId).
func (*ClientWithResponses) CreateProviderWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error)
CreateProviderWithBodyWithResponse Create a provider.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/providers (the `CreateProvider` operationId).
func (*ClientWithResponses) CreateProviderWithResponse ¶
func (c *ClientWithResponses) CreateProviderWithResponse(ctx context.Context, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error)
CreateProviderWithResponse Create a provider.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/providers (the `CreateProvider` operationId).
func (*ClientWithResponses) DeleteAccountWithResponse ¶
func (c *ClientWithResponses) DeleteAccountWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*DeleteAccountResponse, error)
DeleteAccountWithResponse Delete an account.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/accounts/{id} (the `DeleteAccount` operationId).
func (*ClientWithResponses) DeleteAliasWithResponse ¶
func (c *ClientWithResponses) DeleteAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*DeleteAliasResponse, error)
DeleteAliasWithResponse Delete an alias.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/aliases/{name} (the `DeleteAlias` operationId).
func (*ClientWithResponses) DeleteApiTokenWithResponse ¶
func (c *ClientWithResponses) DeleteApiTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error)
DeleteApiTokenWithResponse Delete an API token.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/settings/tokens/{id} (the `DeleteApiToken` operationId).
func (*ClientWithResponses) DeleteKeyWithResponse ¶
func (c *ClientWithResponses) DeleteKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*DeleteKeyResponse, error)
DeleteKeyWithResponse Delete a client key.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/keys/{id} (the `DeleteKey` operationId).
func (*ClientWithResponses) DeleteProviderWithResponse ¶
func (c *ClientWithResponses) DeleteProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error)
DeleteProviderWithResponse Delete a provider.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/providers/{name} (the `DeleteProvider` operationId).
func (*ClientWithResponses) ExportConfigWithResponse ¶
func (c *ClientWithResponses) ExportConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportConfigResponse, error)
ExportConfigWithResponse Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/config/export (the `ExportConfig` operationId).
func (*ClientWithResponses) GetAccountLoginWithResponse ¶
func (c *ClientWithResponses) GetAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*GetAccountLoginResponse, error)
GetAccountLoginWithResponse Poll the status of a login.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/accounts/logins/{state} (the `GetAccountLogin` operationId).
func (*ClientWithResponses) GetAccountPoolWithResponse ¶ added in v0.2.1
func (c *ClientWithResponses) GetAccountPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPoolResponse, error)
GetAccountPoolWithResponse Enabled subscription accounts that dropped out of the pool, per provider.
An account is out when its sign-in is missing, its refresh failed for good, or the provider signed it out or refused payment. An account cooling on a rate limit or a transient error is not out. Only providers with at least one enabled account are listed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/accounts/pool (the `GetAccountPool` operationId).
func (*ClientWithResponses) GetAliasChainWithResponse ¶
func (c *ClientWithResponses) GetAliasChainWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasChainResponse, error)
GetAliasChainWithResponse Get the compiled chain of a stored alias, with cooling members marked.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/aliases/{name}/chain (the `GetAliasChain` operationId).
func (*ClientWithResponses) GetAliasWithResponse ¶
func (c *ClientWithResponses) GetAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasResponse, error)
GetAliasWithResponse Get an alias.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/aliases/{name} (the `GetAlias` operationId).
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse Report whether remora and its components are healthy.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/health (the `GetHealth` operationId).
func (*ClientWithResponses) GetKeyUsageWithResponse ¶
func (c *ClientWithResponses) GetKeyUsageWithResponse(ctx context.Context, id KeyId, params *GetKeyUsageParams, reqEditors ...RequestEditorFn) (*GetKeyUsageResponse, error)
GetKeyUsageWithResponse Get the usage of one key over a time range.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/keys/{id}/usage (the `GetKeyUsage` operationId).
func (*ClientWithResponses) GetKeyWithResponse ¶
func (c *ClientWithResponses) GetKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*GetKeyResponse, error)
GetKeyWithResponse Get a client key.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/keys/{id} (the `GetKey` operationId).
func (*ClientWithResponses) GetLogWithResponse ¶
func (c *ClientWithResponses) GetLogWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogResponse, error)
GetLogWithResponse Get one log entry with its bodies and fallback path.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/logs/{id} (the `GetLog` operationId).
func (*ClientWithResponses) GetProviderModelsWithResponse ¶ added in v0.7.0
func (c *ClientWithResponses) GetProviderModelsWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderModelsResponse, error)
GetProviderModelsWithResponse Get a provider's known models as provider/model references.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/providers/{name}/models (the `GetProviderModels` operationId).
func (*ClientWithResponses) GetProviderWithResponse ¶
func (c *ClientWithResponses) GetProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderResponse, error)
GetProviderWithResponse Get a provider.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/providers/{name} (the `GetProvider` operationId).
func (*ClientWithResponses) GetQuotaWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetQuotaWithResponse(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
GetQuotaWithResponse List subscription account quotas, grouped by provider.
Paging and case-insensitive search by account label, id or plan apply to accounts, not provider summaries. Provider summaries retain their full counts even when they have no accounts on the page. A provider whose quota remora cannot read has `supported` false and its accounts carry no `quota`. A window whose number the provider did not report has `remaining` null.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/quota (the `GetQuota` operationId).
func (*ClientWithResponses) GetSessionWithResponse ¶
func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
GetSessionWithResponse Report how the caller is authenticated; 401 when it is not.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/auth/session (the `GetSession` operationId).
func (*ClientWithResponses) GetStatsWithResponse ¶
func (c *ClientWithResponses) GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
GetStatsWithResponse Get volume, errors, latency, tokens and cost over a time range.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/stats (the `GetStats` operationId).
func (*ClientWithResponses) GetVersionWithResponse ¶
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
GetVersionWithResponse Report the version of remora and of each engine it runs.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/system/version (the `GetVersion` operationId).
func (*ClientWithResponses) ImportAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) ImportAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportAccountResponse, error)
ImportAccountWithBodyWithResponse Import an account from an existing OAuth credential.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
func (*ClientWithResponses) ImportAccountWithResponse ¶
func (c *ClientWithResponses) ImportAccountWithResponse(ctx context.Context, body ImportAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportAccountResponse, error)
ImportAccountWithResponse Import an account from an existing OAuth credential.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
func (*ClientWithResponses) ListAccountStrategiesWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) ListAccountStrategiesWithResponse(ctx context.Context, params *ListAccountStrategiesParams, reqEditors ...RequestEditorFn) (*ListAccountStrategiesResponse, error)
ListAccountStrategiesWithResponse The routing strategy of every subscription provider's account pool.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/accounts/strategies (the `ListAccountStrategies` operationId).
func (*ClientWithResponses) ListAccountsWithResponse ¶
func (c *ClientWithResponses) ListAccountsWithResponse(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*ListAccountsResponse, error)
ListAccountsWithResponse List subscription accounts with quota, cooldown and models.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/accounts (the `ListAccounts` operationId).
func (*ClientWithResponses) ListAliasesWithResponse ¶
func (c *ClientWithResponses) ListAliasesWithResponse(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*ListAliasesResponse, error)
ListAliasesWithResponse List aliases.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/aliases (the `ListAliases` operationId).
func (*ClientWithResponses) ListApiTokensWithResponse ¶
func (c *ClientWithResponses) ListApiTokensWithResponse(ctx context.Context, params *ListApiTokensParams, reqEditors ...RequestEditorFn) (*ListApiTokensResponse, error)
ListApiTokensWithResponse List API tokens.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/settings/tokens (the `ListApiTokens` operationId).
func (*ClientWithResponses) ListAuditWithResponse ¶ added in v0.7.0
func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
ListAuditWithResponse List audited management actions, newest recorded first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/audit (the `ListAudit` operationId).
func (*ClientWithResponses) ListCoolingWithResponse ¶
func (c *ClientWithResponses) ListCoolingWithResponse(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*ListCoolingResponse, error)
ListCoolingWithResponse List the alias members that are cooling down.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/cooling (the `ListCooling` operationId).
func (*ClientWithResponses) ListKeysWithResponse ¶
func (c *ClientWithResponses) ListKeysWithResponse(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*ListKeysResponse, error)
ListKeysWithResponse List client keys.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/keys (the `ListKeys` operationId).
func (*ClientWithResponses) ListLogsWithResponse ¶
func (c *ClientWithResponses) ListLogsWithResponse(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*ListLogsResponse, error)
ListLogsWithResponse List request logs, newest first.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/logs (the `ListLogs` operationId).
func (*ClientWithResponses) ListProvidersWithResponse ¶
func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
ListProvidersWithResponse List providers.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/providers (the `ListProviders` operationId).
func (*ClientWithResponses) LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithBodyWithResponse Sign in as the admin and receive a session cookie.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*ClientWithResponses) LoginWithResponse ¶
func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithResponse Sign in as the admin and receive a session cookie.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/login (the `Login` operationId).
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithResponse End the current session.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/auth/logout (the `Logout` operationId).
func (*ClientWithResponses) PlanConfigWithBodyWithResponse ¶
func (c *ClientWithResponses) PlanConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlanConfigResponse, error)
PlanConfigWithBodyWithResponse Show the changes a `remora.yaml` document would make; nothing is changed.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
func (*ClientWithResponses) PlanConfigWithResponse ¶
func (c *ClientWithResponses) PlanConfigWithResponse(ctx context.Context, body PlanConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PlanConfigResponse, error)
PlanConfigWithResponse Show the changes a `remora.yaml` document would make; nothing is changed.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
func (*ClientWithResponses) RefreshQuotaWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) RefreshQuotaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshQuotaResponse, error)
RefreshQuotaWithBodyWithResponse Queue quota checks of one account or of every enabled account of one provider.
Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
func (*ClientWithResponses) RefreshQuotaWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) RefreshQuotaWithResponse(ctx context.Context, body RefreshQuotaJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshQuotaResponse, error)
RefreshQuotaWithResponse Queue quota checks of one account or of every enabled account of one provider.
Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
func (*ClientWithResponses) ResetAccountCooldownWithResponse ¶
func (c *ClientWithResponses) ResetAccountCooldownWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*ResetAccountCooldownResponse, error)
ResetAccountCooldownWithResponse Clear an account's cooldown so it serves requests again.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/{id}/reset-cooldown (the `ResetAccountCooldown` operationId).
func (*ClientWithResponses) SetAccountStrategyWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) SetAccountStrategyWithBodyWithResponse(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAccountStrategyResponse, error)
SetAccountStrategyWithBodyWithResponse Set which account of a subscription provider serves a request.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
func (*ClientWithResponses) SetAccountStrategyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) SetAccountStrategyWithResponse(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetAccountStrategyResponse, error)
SetAccountStrategyWithResponse Set which account of a subscription provider serves a request.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
func (*ClientWithResponses) StartAccountLoginWithBodyWithResponse ¶
func (c *ClientWithResponses) StartAccountLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartAccountLoginResponse, error)
StartAccountLoginWithBodyWithResponse Start an OAuth login for a subscription provider.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
func (*ClientWithResponses) StartAccountLoginWithResponse ¶
func (c *ClientWithResponses) StartAccountLoginWithResponse(ctx context.Context, body StartAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*StartAccountLoginResponse, error)
StartAccountLoginWithResponse Start an OAuth login for a subscription provider.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
func (*ClientWithResponses) TestProviderWithResponse ¶
func (c *ClientWithResponses) TestProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*TestProviderResponse, error)
TestProviderWithResponse Send a small request to the provider and report the result.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/providers/{name}/test (the `TestProvider` operationId).
func (*ClientWithResponses) UpdateAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAccountWithBodyWithResponse(ctx context.Context, id AccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)
UpdateAccountWithBodyWithResponse Enable or disable an account, or set its priority.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
func (*ClientWithResponses) UpdateAccountWithResponse ¶
func (c *ClientWithResponses) UpdateAccountWithResponse(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)
UpdateAccountWithResponse Enable or disable an account, or set its priority.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
func (*ClientWithResponses) UpdateAliasWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAliasWithBodyWithResponse(ctx context.Context, name AliasName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAliasResponse, error)
UpdateAliasWithBodyWithResponse Replace an alias.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
func (*ClientWithResponses) UpdateAliasWithResponse ¶
func (c *ClientWithResponses) UpdateAliasWithResponse(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAliasResponse, error)
UpdateAliasWithResponse Replace an alias.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
func (*ClientWithResponses) UpdateKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateKeyWithBodyWithResponse(ctx context.Context, id KeyId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeyResponse, error)
UpdateKeyWithBodyWithResponse Rename a key, change its allowlist, or enable or disable it.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
func (*ClientWithResponses) UpdateKeyWithResponse ¶
func (c *ClientWithResponses) UpdateKeyWithResponse(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeyResponse, error)
UpdateKeyWithResponse Rename a key, change its allowlist, or enable or disable it.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
func (*ClientWithResponses) UpdateProviderWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateProviderWithBodyWithResponse(ctx context.Context, name ProviderName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error)
UpdateProviderWithBodyWithResponse Replace a provider. Keys sent without a value keep their stored secret.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
func (*ClientWithResponses) UpdateProviderWithResponse ¶
func (c *ClientWithResponses) UpdateProviderWithResponse(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error)
UpdateProviderWithResponse Replace a provider. Keys sent without a value keep their stored secret.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAccountsWithResponse List subscription accounts with quota, cooldown and models.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/accounts (the `ListAccounts` operationId).
ListAccountsWithResponse(ctx context.Context, params *ListAccountsParams, reqEditors ...RequestEditorFn) (*ListAccountsResponse, error)
// ImportAccountWithBodyWithResponse Import an account from an existing OAuth credential.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
ImportAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportAccountResponse, error)
// ImportAccountWithResponse Import an account from an existing OAuth credential.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/import (the `ImportAccount` operationId).
ImportAccountWithResponse(ctx context.Context, body ImportAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportAccountResponse, error)
// StartAccountLoginWithBodyWithResponse Start an OAuth login for a subscription provider.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
StartAccountLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartAccountLoginResponse, error)
// StartAccountLoginWithResponse Start an OAuth login for a subscription provider.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/logins (the `StartAccountLogin` operationId).
StartAccountLoginWithResponse(ctx context.Context, body StartAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*StartAccountLoginResponse, error)
// CancelAccountLoginWithResponse Cancel a login that has not finished.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/accounts/logins/{state} (the `CancelAccountLogin` operationId).
CancelAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*CancelAccountLoginResponse, error)
// GetAccountLoginWithResponse Poll the status of a login.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/accounts/logins/{state} (the `GetAccountLogin` operationId).
GetAccountLoginWithResponse(ctx context.Context, state LoginState, reqEditors ...RequestEditorFn) (*GetAccountLoginResponse, error)
// CompleteAccountLoginWithBodyWithResponse Complete a login with the redirect URL the user pasted from the browser.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
CompleteAccountLoginWithBodyWithResponse(ctx context.Context, state LoginState, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountLoginResponse, error)
// CompleteAccountLoginWithResponse Complete a login with the redirect URL the user pasted from the browser.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/logins/{state}/complete (the `CompleteAccountLogin` operationId).
CompleteAccountLoginWithResponse(ctx context.Context, state LoginState, body CompleteAccountLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountLoginResponse, error)
// GetAccountPoolWithResponse Enabled subscription accounts that dropped out of the pool, per provider.
//
// An account is out when its sign-in is missing, its refresh failed for good, or the provider signed it out or refused payment. An account cooling on a rate limit or a transient error is not out. Only providers with at least one enabled account are listed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/accounts/pool (the `GetAccountPool` operationId).
GetAccountPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPoolResponse, error)
// ListAccountStrategiesWithResponse The routing strategy of every subscription provider's account pool.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/accounts/strategies (the `ListAccountStrategies` operationId).
ListAccountStrategiesWithResponse(ctx context.Context, params *ListAccountStrategiesParams, reqEditors ...RequestEditorFn) (*ListAccountStrategiesResponse, error)
// SetAccountStrategyWithBodyWithResponse Set which account of a subscription provider serves a request.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
SetAccountStrategyWithBodyWithResponse(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAccountStrategyResponse, error)
// SetAccountStrategyWithResponse Set which account of a subscription provider serves a request.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/accounts/strategies/{provider} (the `SetAccountStrategy` operationId).
SetAccountStrategyWithResponse(ctx context.Context, provider string, body SetAccountStrategyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetAccountStrategyResponse, error)
// DeleteAccountWithResponse Delete an account.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/accounts/{id} (the `DeleteAccount` operationId).
DeleteAccountWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*DeleteAccountResponse, error)
// UpdateAccountWithBodyWithResponse Enable or disable an account, or set its priority.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
UpdateAccountWithBodyWithResponse(ctx context.Context, id AccountId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)
// UpdateAccountWithResponse Enable or disable an account, or set its priority.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/accounts/{id} (the `UpdateAccount` operationId).
UpdateAccountWithResponse(ctx context.Context, id AccountId, body UpdateAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)
// ResetAccountCooldownWithResponse Clear an account's cooldown so it serves requests again.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/accounts/{id}/reset-cooldown (the `ResetAccountCooldown` operationId).
ResetAccountCooldownWithResponse(ctx context.Context, id AccountId, reqEditors ...RequestEditorFn) (*ResetAccountCooldownResponse, error)
// ListAliasesWithResponse List aliases.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/aliases (the `ListAliases` operationId).
ListAliasesWithResponse(ctx context.Context, params *ListAliasesParams, reqEditors ...RequestEditorFn) (*ListAliasesResponse, error)
// CreateAliasWithBodyWithResponse Create an alias.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/aliases (the `CreateAlias` operationId).
CreateAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAliasResponse, error)
// CreateAliasWithResponse Create an alias.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/aliases (the `CreateAlias` operationId).
CreateAliasWithResponse(ctx context.Context, body CreateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAliasResponse, error)
// CompileAliasWithBodyWithResponse Compile an unsaved alias into its chain of targets; nothing is stored.
//
// Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
CompileAliasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompileAliasResponse, error)
// CompileAliasWithResponse Compile an unsaved alias into its chain of targets; nothing is stored.
//
// Returns 400 `invalid_request` on a cycle, a nesting depth over the limit, or an unknown member.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/aliases/compile (the `CompileAlias` operationId).
CompileAliasWithResponse(ctx context.Context, body CompileAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*CompileAliasResponse, error)
// DeleteAliasWithResponse Delete an alias.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/aliases/{name} (the `DeleteAlias` operationId).
DeleteAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*DeleteAliasResponse, error)
// GetAliasWithResponse Get an alias.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/aliases/{name} (the `GetAlias` operationId).
GetAliasWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasResponse, error)
// UpdateAliasWithBodyWithResponse Replace an alias.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
UpdateAliasWithBodyWithResponse(ctx context.Context, name AliasName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAliasResponse, error)
// UpdateAliasWithResponse Replace an alias.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/aliases/{name} (the `UpdateAlias` operationId).
UpdateAliasWithResponse(ctx context.Context, name AliasName, body UpdateAliasJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAliasResponse, error)
// GetAliasChainWithResponse Get the compiled chain of a stored alias, with cooling members marked.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/aliases/{name}/chain (the `GetAliasChain` operationId).
GetAliasChainWithResponse(ctx context.Context, name AliasName, reqEditors ...RequestEditorFn) (*GetAliasChainResponse, error)
// ListAuditWithResponse List audited management actions, newest recorded first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/audit (the `ListAudit` operationId).
ListAuditWithResponse(ctx context.Context, params *ListAuditParams, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
// LoginWithBodyWithResponse Sign in as the admin and receive a session cookie.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LoginWithResponse Sign in as the admin and receive a session cookie.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/login (the `Login` operationId).
LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LogoutWithResponse End the current session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/auth/logout (the `Logout` operationId).
LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// GetSessionWithResponse Report how the caller is authenticated; 401 when it is not.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/auth/session (the `GetSession` operationId).
GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
// ApplyConfigWithBodyWithResponse Make the store match a `remora.yaml` document.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
ApplyConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyConfigResponse, error)
// ApplyConfigWithResponse Make the store match a `remora.yaml` document.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/config/apply (the `ApplyConfig` operationId).
ApplyConfigWithResponse(ctx context.Context, body ApplyConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyConfigResponse, error)
// ExportConfigWithResponse Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/config/export (the `ExportConfig` operationId).
ExportConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportConfigResponse, error)
// PlanConfigWithBodyWithResponse Show the changes a `remora.yaml` document would make; nothing is changed.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
PlanConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlanConfigResponse, error)
// PlanConfigWithResponse Show the changes a `remora.yaml` document would make; nothing is changed.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/config/plan (the `PlanConfig` operationId).
PlanConfigWithResponse(ctx context.Context, body PlanConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PlanConfigResponse, error)
// ListCoolingWithResponse List the alias members that are cooling down.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/cooling (the `ListCooling` operationId).
ListCoolingWithResponse(ctx context.Context, params *ListCoolingParams, reqEditors ...RequestEditorFn) (*ListCoolingResponse, error)
// GetHealthWithResponse Report whether remora and its components are healthy.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/health (the `GetHealth` operationId).
GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
// ListKeysWithResponse List client keys.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/keys (the `ListKeys` operationId).
ListKeysWithResponse(ctx context.Context, params *ListKeysParams, reqEditors ...RequestEditorFn) (*ListKeysResponse, error)
// CreateKeyWithBodyWithResponse Create a client key. The value is returned only here.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/keys (the `CreateKey` operationId).
CreateKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKeyResponse, error)
// CreateKeyWithResponse Create a client key. The value is returned only here.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/keys (the `CreateKey` operationId).
CreateKeyWithResponse(ctx context.Context, body CreateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeyResponse, error)
// DeleteKeyWithResponse Delete a client key.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/keys/{id} (the `DeleteKey` operationId).
DeleteKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*DeleteKeyResponse, error)
// GetKeyWithResponse Get a client key.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/keys/{id} (the `GetKey` operationId).
GetKeyWithResponse(ctx context.Context, id KeyId, reqEditors ...RequestEditorFn) (*GetKeyResponse, error)
// UpdateKeyWithBodyWithResponse Rename a key, change its allowlist, or enable or disable it.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
UpdateKeyWithBodyWithResponse(ctx context.Context, id KeyId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeyResponse, error)
// UpdateKeyWithResponse Rename a key, change its allowlist, or enable or disable it.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/keys/{id} (the `UpdateKey` operationId).
UpdateKeyWithResponse(ctx context.Context, id KeyId, body UpdateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeyResponse, error)
// GetKeyUsageWithResponse Get the usage of one key over a time range.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/keys/{id}/usage (the `GetKeyUsage` operationId).
GetKeyUsageWithResponse(ctx context.Context, id KeyId, params *GetKeyUsageParams, reqEditors ...RequestEditorFn) (*GetKeyUsageResponse, error)
// ListLogsWithResponse List request logs, newest first.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/logs (the `ListLogs` operationId).
ListLogsWithResponse(ctx context.Context, params *ListLogsParams, reqEditors ...RequestEditorFn) (*ListLogsResponse, error)
// GetLogWithResponse Get one log entry with its bodies and fallback path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/logs/{id} (the `GetLog` operationId).
GetLogWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogResponse, error)
// ListProvidersWithResponse List providers.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/providers (the `ListProviders` operationId).
ListProvidersWithResponse(ctx context.Context, params *ListProvidersParams, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
// CreateProviderWithBodyWithResponse Create a provider.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/providers (the `CreateProvider` operationId).
CreateProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error)
// CreateProviderWithResponse Create a provider.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/providers (the `CreateProvider` operationId).
CreateProviderWithResponse(ctx context.Context, body CreateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProviderResponse, error)
// DeleteProviderWithResponse Delete a provider.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/providers/{name} (the `DeleteProvider` operationId).
DeleteProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*DeleteProviderResponse, error)
// GetProviderWithResponse Get a provider.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/providers/{name} (the `GetProvider` operationId).
GetProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderResponse, error)
// UpdateProviderWithBodyWithResponse Replace a provider. Keys sent without a value keep their stored secret.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
UpdateProviderWithBodyWithResponse(ctx context.Context, name ProviderName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error)
// UpdateProviderWithResponse Replace a provider. Keys sent without a value keep their stored secret.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/providers/{name} (the `UpdateProvider` operationId).
UpdateProviderWithResponse(ctx context.Context, name ProviderName, body UpdateProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderResponse, error)
// GetProviderModelsWithResponse Get a provider's known models as provider/model references.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/providers/{name}/models (the `GetProviderModels` operationId).
GetProviderModelsWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*GetProviderModelsResponse, error)
// TestProviderWithResponse Send a small request to the provider and report the result.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/providers/{name}/test (the `TestProvider` operationId).
TestProviderWithResponse(ctx context.Context, name ProviderName, reqEditors ...RequestEditorFn) (*TestProviderResponse, error)
// GetQuotaWithResponse List subscription account quotas, grouped by provider.
//
// Paging and case-insensitive search by account label, id or plan apply to accounts, not provider summaries. Provider summaries retain their full counts even when they have no accounts on the page. A provider whose quota remora cannot read has `supported` false and its accounts carry no `quota`. A window whose number the provider did not report has `remaining` null.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/quota (the `GetQuota` operationId).
GetQuotaWithResponse(ctx context.Context, params *GetQuotaParams, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
// RefreshQuotaWithBodyWithResponse Queue quota checks of one account or of every enabled account of one provider.
//
// Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
RefreshQuotaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshQuotaResponse, error)
// RefreshQuotaWithResponse Queue quota checks of one account or of every enabled account of one provider.
//
// Checks run one at a time in the background. An account checked less than a minute ago, or disabled, is skipped.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/quota/refresh (the `RefreshQuota` operationId).
RefreshQuotaWithResponse(ctx context.Context, body RefreshQuotaJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshQuotaResponse, error)
// ChangePasswordWithBodyWithResponse Change the admin password.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
// ChangePasswordWithResponse Change the admin password.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/settings/password (the `ChangePassword` operationId).
ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
// ListApiTokensWithResponse List API tokens.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/settings/tokens (the `ListApiTokens` operationId).
ListApiTokensWithResponse(ctx context.Context, params *ListApiTokensParams, reqEditors ...RequestEditorFn) (*ListApiTokensResponse, error)
// CreateApiTokenWithBodyWithResponse Create an API token. The value is returned only here.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
CreateApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiTokenResponse, error)
// CreateApiTokenWithResponse Create an API token. The value is returned only here.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/settings/tokens (the `CreateApiToken` operationId).
CreateApiTokenWithResponse(ctx context.Context, body CreateApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiTokenResponse, error)
// DeleteApiTokenWithResponse Delete an API token.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/settings/tokens/{id} (the `DeleteApiToken` operationId).
DeleteApiTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error)
// GetStatsWithResponse Get volume, errors, latency, tokens and cost over a time range.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/stats (the `GetStats` operationId).
GetStatsWithResponse(ctx context.Context, params *GetStatsParams, reqEditors ...RequestEditorFn) (*GetStatsResponse, error)
// GetVersionWithResponse Report the version of remora and of each engine it runs.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/system/version (the `GetVersion` operationId).
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompileAlias200JSONResponse ¶
type CompileAlias200JSONResponse AliasChain
func (CompileAlias200JSONResponse) VisitCompileAliasResponse ¶
func (response CompileAlias200JSONResponse) VisitCompileAliasResponse(w http.ResponseWriter) error
type CompileAliasJSONRequestBody ¶
type CompileAliasJSONRequestBody = Alias
CompileAliasJSONRequestBody defines body for CompileAlias for application/json ContentType.
type CompileAliasRequestObject ¶
type CompileAliasRequestObject struct {
Body *CompileAliasJSONRequestBody
}
type CompileAliasResponse ¶
type CompileAliasResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AliasChain
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCompileAliasResponse ¶
func ParseCompileAliasResponse(rsp *http.Response) (*CompileAliasResponse, error)
ParseCompileAliasResponse parses an HTTP response from a CompileAliasWithResponse call
func (CompileAliasResponse) ContentType ¶
func (r CompileAliasResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompileAliasResponse) GetBody ¶
func (r CompileAliasResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompileAliasResponse) GetJSON200 ¶
func (r CompileAliasResponse) GetJSON200() *AliasChain
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CompileAliasResponse) GetJSONDefault ¶
func (r CompileAliasResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CompileAliasResponse) Status ¶
func (r CompileAliasResponse) Status() string
Status returns HTTPResponse.Status
func (CompileAliasResponse) StatusCode ¶
func (r CompileAliasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompileAliasResponseObject ¶
type CompileAliasResponseObject interface {
VisitCompileAliasResponse(w http.ResponseWriter) error
}
type CompileAliasdefaultJSONResponse ¶
func (CompileAliasdefaultJSONResponse) VisitCompileAliasResponse ¶
func (response CompileAliasdefaultJSONResponse) VisitCompileAliasResponse(w http.ResponseWriter) error
type CompleteAccountLogin202Response ¶
type CompleteAccountLogin202Response struct {
}
func (CompleteAccountLogin202Response) VisitCompleteAccountLoginResponse ¶
func (response CompleteAccountLogin202Response) VisitCompleteAccountLoginResponse(w http.ResponseWriter) error
type CompleteAccountLoginJSONRequestBody ¶
type CompleteAccountLoginJSONRequestBody = AccountLoginComplete
CompleteAccountLoginJSONRequestBody defines body for CompleteAccountLogin for application/json ContentType.
type CompleteAccountLoginRequestObject ¶
type CompleteAccountLoginRequestObject struct {
State LoginState `json:"state"`
Body *CompleteAccountLoginJSONRequestBody
}
type CompleteAccountLoginResponse ¶
type CompleteAccountLoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCompleteAccountLoginResponse ¶
func ParseCompleteAccountLoginResponse(rsp *http.Response) (*CompleteAccountLoginResponse, error)
ParseCompleteAccountLoginResponse parses an HTTP response from a CompleteAccountLoginWithResponse call
func (CompleteAccountLoginResponse) ContentType ¶
func (r CompleteAccountLoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteAccountLoginResponse) GetBody ¶
func (r CompleteAccountLoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CompleteAccountLoginResponse) GetJSONDefault ¶
func (r CompleteAccountLoginResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CompleteAccountLoginResponse) Status ¶
func (r CompleteAccountLoginResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteAccountLoginResponse) StatusCode ¶
func (r CompleteAccountLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompleteAccountLoginResponseObject ¶
type CompleteAccountLoginResponseObject interface {
VisitCompleteAccountLoginResponse(w http.ResponseWriter) error
}
type CompleteAccountLogindefaultJSONResponse ¶
func (CompleteAccountLogindefaultJSONResponse) VisitCompleteAccountLoginResponse ¶
func (response CompleteAccountLogindefaultJSONResponse) VisitCompleteAccountLoginResponse(w http.ResponseWriter) error
type ConfigChanges ¶
type ConfigChanges struct {
Changes []Change `json:"changes"`
// PlanHash Binds this plan to its inputs and to the store it was planned against. Set by plan and on a 412; send it with apply.
PlanHash *string `json:"plan_hash,omitempty"`
}
ConfigChanges defines model for ConfigChanges.
type ConfigRequest ¶
type ConfigRequest struct {
// Document The `remora.yaml` text.
Document string `json:"document"`
// PlanHash The `plan_hash` a plan of these same inputs returned. When the store changed since this plan, nothing is applied: 412 with the fresh plan. Ignored by plan.
PlanHash *string `json:"plan_hash,omitempty"`
// Prune Delete what the store has and the document does not.
Prune *bool `json:"prune,omitempty"`
// Secrets Values for the document's `env:NAME` references, by name.
Secrets *map[string]string `json:"secrets,omitempty"`
}
ConfigRequest defines model for ConfigRequest.
type Cooling ¶
type Cooling struct {
Aliases []string `json:"aliases"`
Model string `json:"model"`
Provider string `json:"provider"`
Reason string `json:"reason"`
Until time.Time `json:"until"`
}
Cooling defines model for Cooling.
type CoolingList ¶
CoolingList defines model for CoolingList.
type CreateAlias201JSONResponse ¶
type CreateAlias201JSONResponse Alias
func (CreateAlias201JSONResponse) VisitCreateAliasResponse ¶
func (response CreateAlias201JSONResponse) VisitCreateAliasResponse(w http.ResponseWriter) error
type CreateAliasJSONRequestBody ¶
type CreateAliasJSONRequestBody = Alias
CreateAliasJSONRequestBody defines body for CreateAlias for application/json ContentType.
type CreateAliasRequestObject ¶
type CreateAliasRequestObject struct {
Body *CreateAliasJSONRequestBody
}
type CreateAliasResponse ¶
type CreateAliasResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Alias
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCreateAliasResponse ¶
func ParseCreateAliasResponse(rsp *http.Response) (*CreateAliasResponse, error)
ParseCreateAliasResponse parses an HTTP response from a CreateAliasWithResponse call
func (CreateAliasResponse) ContentType ¶
func (r CreateAliasResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAliasResponse) GetBody ¶
func (r CreateAliasResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAliasResponse) GetJSON201 ¶
func (r CreateAliasResponse) GetJSON201() *Alias
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateAliasResponse) GetJSONDefault ¶
func (r CreateAliasResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateAliasResponse) Status ¶
func (r CreateAliasResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAliasResponse) StatusCode ¶
func (r CreateAliasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAliasResponseObject ¶
type CreateAliasResponseObject interface {
VisitCreateAliasResponse(w http.ResponseWriter) error
}
type CreateAliasdefaultJSONResponse ¶
func (CreateAliasdefaultJSONResponse) VisitCreateAliasResponse ¶
func (response CreateAliasdefaultJSONResponse) VisitCreateAliasResponse(w http.ResponseWriter) error
type CreateApiToken201JSONResponse ¶
type CreateApiToken201JSONResponse ApiTokenCreated
func (CreateApiToken201JSONResponse) VisitCreateApiTokenResponse ¶
func (response CreateApiToken201JSONResponse) VisitCreateApiTokenResponse(w http.ResponseWriter) error
type CreateApiTokenJSONRequestBody ¶
type CreateApiTokenJSONRequestBody = ApiTokenCreate
CreateApiTokenJSONRequestBody defines body for CreateApiToken for application/json ContentType.
type CreateApiTokenRequestObject ¶
type CreateApiTokenRequestObject struct {
Body *CreateApiTokenJSONRequestBody
}
type CreateApiTokenResponse ¶
type CreateApiTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *ApiTokenCreated
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCreateApiTokenResponse ¶
func ParseCreateApiTokenResponse(rsp *http.Response) (*CreateApiTokenResponse, error)
ParseCreateApiTokenResponse parses an HTTP response from a CreateApiTokenWithResponse call
func (CreateApiTokenResponse) ContentType ¶
func (r CreateApiTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateApiTokenResponse) GetBody ¶
func (r CreateApiTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateApiTokenResponse) GetJSON201 ¶
func (r CreateApiTokenResponse) GetJSON201() *ApiTokenCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateApiTokenResponse) GetJSONDefault ¶
func (r CreateApiTokenResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateApiTokenResponse) Status ¶
func (r CreateApiTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApiTokenResponse) StatusCode ¶
func (r CreateApiTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateApiTokenResponseObject ¶
type CreateApiTokenResponseObject interface {
VisitCreateApiTokenResponse(w http.ResponseWriter) error
}
type CreateApiTokendefaultJSONResponse ¶
func (CreateApiTokendefaultJSONResponse) VisitCreateApiTokenResponse ¶
func (response CreateApiTokendefaultJSONResponse) VisitCreateApiTokenResponse(w http.ResponseWriter) error
type CreateKey201JSONResponse ¶
type CreateKey201JSONResponse KeyCreated
func (CreateKey201JSONResponse) VisitCreateKeyResponse ¶
func (response CreateKey201JSONResponse) VisitCreateKeyResponse(w http.ResponseWriter) error
type CreateKeyJSONRequestBody ¶
type CreateKeyJSONRequestBody = KeyCreate
CreateKeyJSONRequestBody defines body for CreateKey for application/json ContentType.
type CreateKeyRequestObject ¶
type CreateKeyRequestObject struct {
Body *CreateKeyJSONRequestBody
}
type CreateKeyResponse ¶
type CreateKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *KeyCreated
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCreateKeyResponse ¶
func ParseCreateKeyResponse(rsp *http.Response) (*CreateKeyResponse, error)
ParseCreateKeyResponse parses an HTTP response from a CreateKeyWithResponse call
func (CreateKeyResponse) ContentType ¶
func (r CreateKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateKeyResponse) GetBody ¶
func (r CreateKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateKeyResponse) GetJSON201 ¶
func (r CreateKeyResponse) GetJSON201() *KeyCreated
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateKeyResponse) GetJSONDefault ¶
func (r CreateKeyResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateKeyResponse) Status ¶
func (r CreateKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateKeyResponse) StatusCode ¶
func (r CreateKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateKeyResponseObject ¶
type CreateKeyResponseObject interface {
VisitCreateKeyResponse(w http.ResponseWriter) error
}
type CreateKeydefaultJSONResponse ¶
func (CreateKeydefaultJSONResponse) VisitCreateKeyResponse ¶
func (response CreateKeydefaultJSONResponse) VisitCreateKeyResponse(w http.ResponseWriter) error
type CreateProvider201JSONResponse ¶
type CreateProvider201JSONResponse Provider
func (CreateProvider201JSONResponse) VisitCreateProviderResponse ¶
func (response CreateProvider201JSONResponse) VisitCreateProviderResponse(w http.ResponseWriter) error
type CreateProviderJSONRequestBody ¶
type CreateProviderJSONRequestBody = Provider
CreateProviderJSONRequestBody defines body for CreateProvider for application/json ContentType.
type CreateProviderRequestObject ¶
type CreateProviderRequestObject struct {
Body *CreateProviderJSONRequestBody
}
type CreateProviderResponse ¶
type CreateProviderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Provider
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseCreateProviderResponse ¶
func ParseCreateProviderResponse(rsp *http.Response) (*CreateProviderResponse, error)
ParseCreateProviderResponse parses an HTTP response from a CreateProviderWithResponse call
func (CreateProviderResponse) ContentType ¶
func (r CreateProviderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateProviderResponse) GetBody ¶
func (r CreateProviderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateProviderResponse) GetJSON201 ¶
func (r CreateProviderResponse) GetJSON201() *Provider
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateProviderResponse) GetJSONDefault ¶
func (r CreateProviderResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateProviderResponse) Status ¶
func (r CreateProviderResponse) Status() string
Status returns HTTPResponse.Status
func (CreateProviderResponse) StatusCode ¶
func (r CreateProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateProviderResponseObject ¶
type CreateProviderResponseObject interface {
VisitCreateProviderResponse(w http.ResponseWriter) error
}
type CreateProviderdefaultJSONResponse ¶
func (CreateProviderdefaultJSONResponse) VisitCreateProviderResponse ¶
func (response CreateProviderdefaultJSONResponse) VisitCreateProviderResponse(w http.ResponseWriter) error
type DeleteAccount204Response ¶
type DeleteAccount204Response struct {
}
func (DeleteAccount204Response) VisitDeleteAccountResponse ¶
func (response DeleteAccount204Response) VisitDeleteAccountResponse(w http.ResponseWriter) error
type DeleteAccountRequestObject ¶
type DeleteAccountRequestObject struct {
Id AccountId `json:"id"`
}
type DeleteAccountResponse ¶
type DeleteAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseDeleteAccountResponse ¶
func ParseDeleteAccountResponse(rsp *http.Response) (*DeleteAccountResponse, error)
ParseDeleteAccountResponse parses an HTTP response from a DeleteAccountWithResponse call
func (DeleteAccountResponse) ContentType ¶
func (r DeleteAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAccountResponse) GetBody ¶
func (r DeleteAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAccountResponse) GetJSONDefault ¶
func (r DeleteAccountResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteAccountResponse) Status ¶
func (r DeleteAccountResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAccountResponse) StatusCode ¶
func (r DeleteAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAccountResponseObject ¶
type DeleteAccountResponseObject interface {
VisitDeleteAccountResponse(w http.ResponseWriter) error
}
type DeleteAccountdefaultJSONResponse ¶
func (DeleteAccountdefaultJSONResponse) VisitDeleteAccountResponse ¶
func (response DeleteAccountdefaultJSONResponse) VisitDeleteAccountResponse(w http.ResponseWriter) error
type DeleteAlias204Response ¶
type DeleteAlias204Response struct {
}
func (DeleteAlias204Response) VisitDeleteAliasResponse ¶
func (response DeleteAlias204Response) VisitDeleteAliasResponse(w http.ResponseWriter) error
type DeleteAliasRequestObject ¶
type DeleteAliasRequestObject struct {
Name AliasName `json:"name"`
}
type DeleteAliasResponse ¶
type DeleteAliasResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseDeleteAliasResponse ¶
func ParseDeleteAliasResponse(rsp *http.Response) (*DeleteAliasResponse, error)
ParseDeleteAliasResponse parses an HTTP response from a DeleteAliasWithResponse call
func (DeleteAliasResponse) ContentType ¶
func (r DeleteAliasResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAliasResponse) GetBody ¶
func (r DeleteAliasResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAliasResponse) GetJSONDefault ¶
func (r DeleteAliasResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteAliasResponse) Status ¶
func (r DeleteAliasResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAliasResponse) StatusCode ¶
func (r DeleteAliasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAliasResponseObject ¶
type DeleteAliasResponseObject interface {
VisitDeleteAliasResponse(w http.ResponseWriter) error
}
type DeleteAliasdefaultJSONResponse ¶
func (DeleteAliasdefaultJSONResponse) VisitDeleteAliasResponse ¶
func (response DeleteAliasdefaultJSONResponse) VisitDeleteAliasResponse(w http.ResponseWriter) error
type DeleteApiToken204Response ¶
type DeleteApiToken204Response struct {
}
func (DeleteApiToken204Response) VisitDeleteApiTokenResponse ¶
func (response DeleteApiToken204Response) VisitDeleteApiTokenResponse(w http.ResponseWriter) error
type DeleteApiTokenRequestObject ¶
type DeleteApiTokenRequestObject struct {
Id string `json:"id"`
}
type DeleteApiTokenResponse ¶
type DeleteApiTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseDeleteApiTokenResponse ¶
func ParseDeleteApiTokenResponse(rsp *http.Response) (*DeleteApiTokenResponse, error)
ParseDeleteApiTokenResponse parses an HTTP response from a DeleteApiTokenWithResponse call
func (DeleteApiTokenResponse) ContentType ¶
func (r DeleteApiTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTokenResponse) GetBody ¶
func (r DeleteApiTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTokenResponse) GetJSONDefault ¶
func (r DeleteApiTokenResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteApiTokenResponse) Status ¶
func (r DeleteApiTokenResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTokenResponse) StatusCode ¶
func (r DeleteApiTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTokenResponseObject ¶
type DeleteApiTokenResponseObject interface {
VisitDeleteApiTokenResponse(w http.ResponseWriter) error
}
type DeleteApiTokendefaultJSONResponse ¶
func (DeleteApiTokendefaultJSONResponse) VisitDeleteApiTokenResponse ¶
func (response DeleteApiTokendefaultJSONResponse) VisitDeleteApiTokenResponse(w http.ResponseWriter) error
type DeleteKey204Response ¶
type DeleteKey204Response struct {
}
func (DeleteKey204Response) VisitDeleteKeyResponse ¶
func (response DeleteKey204Response) VisitDeleteKeyResponse(w http.ResponseWriter) error
type DeleteKeyRequestObject ¶
type DeleteKeyRequestObject struct {
Id KeyId `json:"id"`
}
type DeleteKeyResponse ¶
type DeleteKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseDeleteKeyResponse ¶
func ParseDeleteKeyResponse(rsp *http.Response) (*DeleteKeyResponse, error)
ParseDeleteKeyResponse parses an HTTP response from a DeleteKeyWithResponse call
func (DeleteKeyResponse) ContentType ¶
func (r DeleteKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteKeyResponse) GetBody ¶
func (r DeleteKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteKeyResponse) GetJSONDefault ¶
func (r DeleteKeyResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteKeyResponse) Status ¶
func (r DeleteKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteKeyResponse) StatusCode ¶
func (r DeleteKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteKeyResponseObject ¶
type DeleteKeyResponseObject interface {
VisitDeleteKeyResponse(w http.ResponseWriter) error
}
type DeleteKeydefaultJSONResponse ¶
func (DeleteKeydefaultJSONResponse) VisitDeleteKeyResponse ¶
func (response DeleteKeydefaultJSONResponse) VisitDeleteKeyResponse(w http.ResponseWriter) error
type DeleteProvider204Response ¶
type DeleteProvider204Response struct {
}
func (DeleteProvider204Response) VisitDeleteProviderResponse ¶
func (response DeleteProvider204Response) VisitDeleteProviderResponse(w http.ResponseWriter) error
type DeleteProviderRequestObject ¶
type DeleteProviderRequestObject struct {
Name ProviderName `json:"name"`
}
type DeleteProviderResponse ¶
type DeleteProviderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseDeleteProviderResponse ¶
func ParseDeleteProviderResponse(rsp *http.Response) (*DeleteProviderResponse, error)
ParseDeleteProviderResponse parses an HTTP response from a DeleteProviderWithResponse call
func (DeleteProviderResponse) ContentType ¶
func (r DeleteProviderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteProviderResponse) GetBody ¶
func (r DeleteProviderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteProviderResponse) GetJSONDefault ¶
func (r DeleteProviderResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteProviderResponse) Status ¶
func (r DeleteProviderResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteProviderResponse) StatusCode ¶
func (r DeleteProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteProviderResponseObject ¶
type DeleteProviderResponseObject interface {
VisitDeleteProviderResponse(w http.ResponseWriter) error
}
type DeleteProviderdefaultJSONResponse ¶
func (DeleteProviderdefaultJSONResponse) VisitDeleteProviderResponse ¶
func (response DeleteProviderdefaultJSONResponse) VisitDeleteProviderResponse(w http.ResponseWriter) error
type EngineTimeout ¶ added in v0.7.2
type EngineTimeout = Error
EngineTimeout defines model for EngineTimeout.
type EngineTimeoutJSONResponse ¶ added in v0.7.2
type EngineTimeoutJSONResponse Error
type EngineVersion ¶
EngineVersion defines model for EngineVersion.
type ErrorDetail ¶
type ErrorDetail struct {
// Applied Not sent: a failed `applyConfig` changes nothing. Earlier versions applied change by change and listed
// here the changes made before the failure, each generated client key value included once.
Applied *[]Change `json:"applied,omitempty"`
Code string `json:"code"`
Message string `json:"message"`
Type string `json:"type"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorJSONResponse ¶
type ErrorJSONResponse Error
type ExportConfig200ApplicationyamlResponse ¶
type ExportConfig200ApplicationyamlResponse struct {
Body io.Reader
Headers ExportConfig200ResponseHeaders
ContentLength int64
}
func (ExportConfig200ApplicationyamlResponse) VisitExportConfigResponse ¶
func (response ExportConfig200ApplicationyamlResponse) VisitExportConfigResponse(w http.ResponseWriter) error
type ExportConfig200ResponseHeaders ¶
type ExportConfig200ResponseHeaders struct {
ContentDisposition *string
}
type ExportConfigRequestObject ¶
type ExportConfigRequestObject struct {
}
type ExportConfigResponse ¶
type ExportConfigResponse struct {
Body []byte
HTTPResponse *http.Response
// YAML200 the response for an HTTP 200 `application/yaml` response
YAML200 *string
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ExportConfigResponse200Headers
}
func ParseExportConfigResponse ¶
func ParseExportConfigResponse(rsp *http.Response) (*ExportConfigResponse, error)
ParseExportConfigResponse parses an HTTP response from a ExportConfigWithResponse call
func (ExportConfigResponse) ContentType ¶
func (r ExportConfigResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExportConfigResponse) GetBody ¶
func (r ExportConfigResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ExportConfigResponse) GetJSONDefault ¶
func (r ExportConfigResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ExportConfigResponse) GetYAML200 ¶
func (r ExportConfigResponse) GetYAML200() *string
GetYAML200 returns the response for an HTTP 200 `application/yaml` response
func (ExportConfigResponse) Status ¶
func (r ExportConfigResponse) Status() string
Status returns HTTPResponse.Status
func (ExportConfigResponse) StatusCode ¶
func (r ExportConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExportConfigResponse200Headers ¶
type ExportConfigResponse200Headers struct {
ContentDisposition *string
}
ExportConfigResponse200Headers the declared response headers of an HTTP 200 response for ExportConfig
type ExportConfigResponseObject ¶
type ExportConfigResponseObject interface {
VisitExportConfigResponse(w http.ResponseWriter) error
}
type ExportConfigdefaultJSONResponse ¶
func (ExportConfigdefaultJSONResponse) VisitExportConfigResponse ¶
func (response ExportConfigdefaultJSONResponse) VisitExportConfigResponse(w http.ResponseWriter) error
type GetAccountLogin200JSONResponse ¶
type GetAccountLogin200JSONResponse AccountLoginStatus
func (GetAccountLogin200JSONResponse) VisitGetAccountLoginResponse ¶
func (response GetAccountLogin200JSONResponse) VisitGetAccountLoginResponse(w http.ResponseWriter) error
type GetAccountLoginRequestObject ¶
type GetAccountLoginRequestObject struct {
State LoginState `json:"state"`
}
type GetAccountLoginResponse ¶
type GetAccountLoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountLoginStatus
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetAccountLoginResponse ¶
func ParseGetAccountLoginResponse(rsp *http.Response) (*GetAccountLoginResponse, error)
ParseGetAccountLoginResponse parses an HTTP response from a GetAccountLoginWithResponse call
func (GetAccountLoginResponse) ContentType ¶
func (r GetAccountLoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountLoginResponse) GetBody ¶
func (r GetAccountLoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAccountLoginResponse) GetJSON200 ¶
func (r GetAccountLoginResponse) GetJSON200() *AccountLoginStatus
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAccountLoginResponse) GetJSONDefault ¶
func (r GetAccountLoginResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAccountLoginResponse) Status ¶
func (r GetAccountLoginResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountLoginResponse) StatusCode ¶
func (r GetAccountLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountLoginResponseObject ¶
type GetAccountLoginResponseObject interface {
VisitGetAccountLoginResponse(w http.ResponseWriter) error
}
type GetAccountLogindefaultJSONResponse ¶
func (GetAccountLogindefaultJSONResponse) VisitGetAccountLoginResponse ¶
func (response GetAccountLogindefaultJSONResponse) VisitGetAccountLoginResponse(w http.ResponseWriter) error
type GetAccountPool200JSONResponse ¶ added in v0.2.1
type GetAccountPool200JSONResponse []AccountPool
func (GetAccountPool200JSONResponse) VisitGetAccountPoolResponse ¶ added in v0.2.1
func (response GetAccountPool200JSONResponse) VisitGetAccountPoolResponse(w http.ResponseWriter) error
type GetAccountPoolRequestObject ¶ added in v0.2.1
type GetAccountPoolRequestObject struct {
}
type GetAccountPoolResponse ¶ added in v0.2.1
type GetAccountPoolResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]AccountPool
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetAccountPoolResponse ¶ added in v0.2.1
func ParseGetAccountPoolResponse(rsp *http.Response) (*GetAccountPoolResponse, error)
ParseGetAccountPoolResponse parses an HTTP response from a GetAccountPoolWithResponse call
func (GetAccountPoolResponse) ContentType ¶ added in v0.2.1
func (r GetAccountPoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountPoolResponse) GetBody ¶ added in v0.2.1
func (r GetAccountPoolResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAccountPoolResponse) GetJSON200 ¶ added in v0.2.1
func (r GetAccountPoolResponse) GetJSON200() *[]AccountPool
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAccountPoolResponse) GetJSONDefault ¶ added in v0.2.1
func (r GetAccountPoolResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAccountPoolResponse) Status ¶ added in v0.2.1
func (r GetAccountPoolResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountPoolResponse) StatusCode ¶ added in v0.2.1
func (r GetAccountPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountPoolResponseObject ¶ added in v0.2.1
type GetAccountPoolResponseObject interface {
VisitGetAccountPoolResponse(w http.ResponseWriter) error
}
type GetAccountPooldefaultJSONResponse ¶ added in v0.2.1
func (GetAccountPooldefaultJSONResponse) VisitGetAccountPoolResponse ¶ added in v0.2.1
func (response GetAccountPooldefaultJSONResponse) VisitGetAccountPoolResponse(w http.ResponseWriter) error
type GetAlias200JSONResponse ¶
type GetAlias200JSONResponse Alias
func (GetAlias200JSONResponse) VisitGetAliasResponse ¶
func (response GetAlias200JSONResponse) VisitGetAliasResponse(w http.ResponseWriter) error
type GetAliasChain200JSONResponse ¶
type GetAliasChain200JSONResponse AliasChain
func (GetAliasChain200JSONResponse) VisitGetAliasChainResponse ¶
func (response GetAliasChain200JSONResponse) VisitGetAliasChainResponse(w http.ResponseWriter) error
type GetAliasChainRequestObject ¶
type GetAliasChainRequestObject struct {
Name AliasName `json:"name"`
}
type GetAliasChainResponse ¶
type GetAliasChainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AliasChain
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetAliasChainResponse ¶
func ParseGetAliasChainResponse(rsp *http.Response) (*GetAliasChainResponse, error)
ParseGetAliasChainResponse parses an HTTP response from a GetAliasChainWithResponse call
func (GetAliasChainResponse) ContentType ¶
func (r GetAliasChainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAliasChainResponse) GetBody ¶
func (r GetAliasChainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAliasChainResponse) GetJSON200 ¶
func (r GetAliasChainResponse) GetJSON200() *AliasChain
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAliasChainResponse) GetJSONDefault ¶
func (r GetAliasChainResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAliasChainResponse) Status ¶
func (r GetAliasChainResponse) Status() string
Status returns HTTPResponse.Status
func (GetAliasChainResponse) StatusCode ¶
func (r GetAliasChainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAliasChainResponseObject ¶
type GetAliasChainResponseObject interface {
VisitGetAliasChainResponse(w http.ResponseWriter) error
}
type GetAliasChaindefaultJSONResponse ¶
func (GetAliasChaindefaultJSONResponse) VisitGetAliasChainResponse ¶
func (response GetAliasChaindefaultJSONResponse) VisitGetAliasChainResponse(w http.ResponseWriter) error
type GetAliasRequestObject ¶
type GetAliasRequestObject struct {
Name AliasName `json:"name"`
}
type GetAliasResponse ¶
type GetAliasResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Alias
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetAliasResponse ¶
func ParseGetAliasResponse(rsp *http.Response) (*GetAliasResponse, error)
ParseGetAliasResponse parses an HTTP response from a GetAliasWithResponse call
func (GetAliasResponse) ContentType ¶
func (r GetAliasResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAliasResponse) GetBody ¶
func (r GetAliasResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAliasResponse) GetJSON200 ¶
func (r GetAliasResponse) GetJSON200() *Alias
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAliasResponse) GetJSONDefault ¶
func (r GetAliasResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAliasResponse) Status ¶
func (r GetAliasResponse) Status() string
Status returns HTTPResponse.Status
func (GetAliasResponse) StatusCode ¶
func (r GetAliasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAliasResponseObject ¶
type GetAliasResponseObject interface {
VisitGetAliasResponse(w http.ResponseWriter) error
}
type GetAliasdefaultJSONResponse ¶
func (GetAliasdefaultJSONResponse) VisitGetAliasResponse ¶
func (response GetAliasdefaultJSONResponse) VisitGetAliasResponse(w http.ResponseWriter) error
type GetHealth200JSONResponse ¶
type GetHealth200JSONResponse Health
func (GetHealth200JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetHealthRequestObject ¶
type GetHealthRequestObject struct {
}
type GetHealthResponse ¶
type GetHealthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Health
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) ContentType ¶
func (r GetHealthResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHealthResponse) GetBody ¶
func (r GetHealthResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHealthResponse) GetJSON200 ¶
func (r GetHealthResponse) GetJSON200() *Health
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHealthResponse) GetJSONDefault ¶
func (r GetHealthResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthResponseObject ¶
type GetHealthResponseObject interface {
VisitGetHealthResponse(w http.ResponseWriter) error
}
type GetHealthdefaultJSONResponse ¶
func (GetHealthdefaultJSONResponse) VisitGetHealthResponse ¶
func (response GetHealthdefaultJSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetKey200JSONResponse ¶
type GetKey200JSONResponse Key
func (GetKey200JSONResponse) VisitGetKeyResponse ¶
func (response GetKey200JSONResponse) VisitGetKeyResponse(w http.ResponseWriter) error
type GetKeyRequestObject ¶
type GetKeyRequestObject struct {
Id KeyId `json:"id"`
}
type GetKeyResponse ¶
type GetKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Key
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetKeyResponse ¶
func ParseGetKeyResponse(rsp *http.Response) (*GetKeyResponse, error)
ParseGetKeyResponse parses an HTTP response from a GetKeyWithResponse call
func (GetKeyResponse) ContentType ¶
func (r GetKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetKeyResponse) GetBody ¶
func (r GetKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetKeyResponse) GetJSON200 ¶
func (r GetKeyResponse) GetJSON200() *Key
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetKeyResponse) GetJSONDefault ¶
func (r GetKeyResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetKeyResponse) Status ¶
func (r GetKeyResponse) Status() string
Status returns HTTPResponse.Status
func (GetKeyResponse) StatusCode ¶
func (r GetKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetKeyResponseObject ¶
type GetKeyResponseObject interface {
VisitGetKeyResponse(w http.ResponseWriter) error
}
type GetKeyUsage200JSONResponse ¶
type GetKeyUsage200JSONResponse Stats
func (GetKeyUsage200JSONResponse) VisitGetKeyUsageResponse ¶
func (response GetKeyUsage200JSONResponse) VisitGetKeyUsageResponse(w http.ResponseWriter) error
type GetKeyUsage503JSONResponse ¶ added in v0.7.2
func (GetKeyUsage503JSONResponse) VisitGetKeyUsageResponse ¶ added in v0.7.2
func (response GetKeyUsage503JSONResponse) VisitGetKeyUsageResponse(w http.ResponseWriter) error
type GetKeyUsageParams ¶
type GetKeyUsageParams struct {
// From Start of the time range (RFC 3339). Defaults to 24 hours before `to`.
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339). Defaults to now.
To *To `form:"to,omitempty" json:"to,omitempty"`
}
GetKeyUsageParams defines parameters for GetKeyUsage.
type GetKeyUsageRequestObject ¶
type GetKeyUsageRequestObject struct {
Id KeyId `json:"id"`
Params GetKeyUsageParams
}
type GetKeyUsageResponse ¶
type GetKeyUsageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Stats
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *StatsUnavailable
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetKeyUsageResponse ¶
func ParseGetKeyUsageResponse(rsp *http.Response) (*GetKeyUsageResponse, error)
ParseGetKeyUsageResponse parses an HTTP response from a GetKeyUsageWithResponse call
func (GetKeyUsageResponse) ContentType ¶
func (r GetKeyUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetKeyUsageResponse) GetBody ¶
func (r GetKeyUsageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetKeyUsageResponse) GetJSON200 ¶
func (r GetKeyUsageResponse) GetJSON200() *Stats
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetKeyUsageResponse) GetJSON503 ¶ added in v0.7.2
func (r GetKeyUsageResponse) GetJSON503() *StatsUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetKeyUsageResponse) GetJSONDefault ¶
func (r GetKeyUsageResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetKeyUsageResponse) Status ¶
func (r GetKeyUsageResponse) Status() string
Status returns HTTPResponse.Status
func (GetKeyUsageResponse) StatusCode ¶
func (r GetKeyUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetKeyUsageResponseObject ¶
type GetKeyUsageResponseObject interface {
VisitGetKeyUsageResponse(w http.ResponseWriter) error
}
type GetKeyUsagedefaultJSONResponse ¶
func (GetKeyUsagedefaultJSONResponse) VisitGetKeyUsageResponse ¶
func (response GetKeyUsagedefaultJSONResponse) VisitGetKeyUsageResponse(w http.ResponseWriter) error
type GetKeydefaultJSONResponse ¶
func (GetKeydefaultJSONResponse) VisitGetKeyResponse ¶
func (response GetKeydefaultJSONResponse) VisitGetKeyResponse(w http.ResponseWriter) error
type GetLog200JSONResponse ¶
type GetLog200JSONResponse LogDetail
func (GetLog200JSONResponse) VisitGetLogResponse ¶
func (response GetLog200JSONResponse) VisitGetLogResponse(w http.ResponseWriter) error
type GetLog504JSONResponse ¶ added in v0.7.2
type GetLog504JSONResponse struct{ EngineTimeoutJSONResponse }
func (GetLog504JSONResponse) VisitGetLogResponse ¶ added in v0.7.2
func (response GetLog504JSONResponse) VisitGetLogResponse(w http.ResponseWriter) error
type GetLogRequestObject ¶
type GetLogRequestObject struct {
Id string `json:"id"`
}
type GetLogResponse ¶
type GetLogResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LogDetail
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *EngineTimeout
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetLogResponse ¶
func ParseGetLogResponse(rsp *http.Response) (*GetLogResponse, error)
ParseGetLogResponse parses an HTTP response from a GetLogWithResponse call
func (GetLogResponse) ContentType ¶
func (r GetLogResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLogResponse) GetBody ¶
func (r GetLogResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLogResponse) GetJSON200 ¶
func (r GetLogResponse) GetJSON200() *LogDetail
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLogResponse) GetJSON504 ¶ added in v0.7.2
func (r GetLogResponse) GetJSON504() *EngineTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (GetLogResponse) GetJSONDefault ¶
func (r GetLogResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLogResponse) Status ¶
func (r GetLogResponse) Status() string
Status returns HTTPResponse.Status
func (GetLogResponse) StatusCode ¶
func (r GetLogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLogResponseObject ¶
type GetLogResponseObject interface {
VisitGetLogResponse(w http.ResponseWriter) error
}
type GetLogdefaultJSONResponse ¶
func (GetLogdefaultJSONResponse) VisitGetLogResponse ¶
func (response GetLogdefaultJSONResponse) VisitGetLogResponse(w http.ResponseWriter) error
type GetProvider200JSONResponse ¶
type GetProvider200JSONResponse Provider
func (GetProvider200JSONResponse) VisitGetProviderResponse ¶
func (response GetProvider200JSONResponse) VisitGetProviderResponse(w http.ResponseWriter) error
type GetProviderModels200JSONResponse ¶ added in v0.7.0
type GetProviderModels200JSONResponse struct {
Models []string `json:"models"`
}
func (GetProviderModels200JSONResponse) VisitGetProviderModelsResponse ¶ added in v0.7.0
func (response GetProviderModels200JSONResponse) VisitGetProviderModelsResponse(w http.ResponseWriter) error
type GetProviderModels404JSONResponse ¶ added in v0.7.0
type GetProviderModels404JSONResponse struct{ ErrorJSONResponse }
func (GetProviderModels404JSONResponse) VisitGetProviderModelsResponse ¶ added in v0.7.0
func (response GetProviderModels404JSONResponse) VisitGetProviderModelsResponse(w http.ResponseWriter) error
type GetProviderModelsRequestObject ¶ added in v0.7.0
type GetProviderModelsRequestObject struct {
Name ProviderName `json:"name"`
}
type GetProviderModelsResponse ¶ added in v0.7.0
type GetProviderModelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Models []string `json:"models"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetProviderModelsResponse ¶ added in v0.7.0
func ParseGetProviderModelsResponse(rsp *http.Response) (*GetProviderModelsResponse, error)
ParseGetProviderModelsResponse parses an HTTP response from a GetProviderModelsWithResponse call
func (GetProviderModelsResponse) ContentType ¶ added in v0.7.0
func (r GetProviderModelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProviderModelsResponse) GetBody ¶ added in v0.7.0
func (r GetProviderModelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProviderModelsResponse) GetJSON200 ¶ added in v0.7.0
func (r GetProviderModelsResponse) GetJSON200() *struct { Models []string `json:"models"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProviderModelsResponse) GetJSON404 ¶ added in v0.7.0
func (r GetProviderModelsResponse) GetJSON404() *Error
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProviderModelsResponse) GetJSONDefault ¶ added in v0.7.0
func (r GetProviderModelsResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetProviderModelsResponse) Status ¶ added in v0.7.0
func (r GetProviderModelsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProviderModelsResponse) StatusCode ¶ added in v0.7.0
func (r GetProviderModelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProviderModelsResponseObject ¶ added in v0.7.0
type GetProviderModelsResponseObject interface {
VisitGetProviderModelsResponse(w http.ResponseWriter) error
}
type GetProviderModelsdefaultJSONResponse ¶ added in v0.7.0
func (GetProviderModelsdefaultJSONResponse) VisitGetProviderModelsResponse ¶ added in v0.7.0
func (response GetProviderModelsdefaultJSONResponse) VisitGetProviderModelsResponse(w http.ResponseWriter) error
type GetProviderRequestObject ¶
type GetProviderRequestObject struct {
Name ProviderName `json:"name"`
}
type GetProviderResponse ¶
type GetProviderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Provider
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetProviderResponse ¶
func ParseGetProviderResponse(rsp *http.Response) (*GetProviderResponse, error)
ParseGetProviderResponse parses an HTTP response from a GetProviderWithResponse call
func (GetProviderResponse) ContentType ¶
func (r GetProviderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProviderResponse) GetBody ¶
func (r GetProviderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProviderResponse) GetJSON200 ¶
func (r GetProviderResponse) GetJSON200() *Provider
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProviderResponse) GetJSONDefault ¶
func (r GetProviderResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetProviderResponse) Status ¶
func (r GetProviderResponse) Status() string
Status returns HTTPResponse.Status
func (GetProviderResponse) StatusCode ¶
func (r GetProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProviderResponseObject ¶
type GetProviderResponseObject interface {
VisitGetProviderResponse(w http.ResponseWriter) error
}
type GetProviderdefaultJSONResponse ¶
func (GetProviderdefaultJSONResponse) VisitGetProviderResponse ¶
func (response GetProviderdefaultJSONResponse) VisitGetProviderResponse(w http.ResponseWriter) error
type GetQuota200JSONResponse ¶ added in v0.3.0
type GetQuota200JSONResponse QuotaList
func (GetQuota200JSONResponse) VisitGetQuotaResponse ¶ added in v0.3.0
func (response GetQuota200JSONResponse) VisitGetQuotaResponse(w http.ResponseWriter) error
type GetQuotaParams ¶ added in v0.7.0
type GetQuotaParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
// Provider A provider name.
Provider *ProviderFilter `form:"provider,omitempty" json:"provider,omitempty"`
}
GetQuotaParams defines parameters for GetQuota.
type GetQuotaRequestObject ¶ added in v0.3.0
type GetQuotaRequestObject struct {
Params GetQuotaParams
}
type GetQuotaResponse ¶ added in v0.3.0
type GetQuotaResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *QuotaList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetQuotaResponse ¶ added in v0.3.0
func ParseGetQuotaResponse(rsp *http.Response) (*GetQuotaResponse, error)
ParseGetQuotaResponse parses an HTTP response from a GetQuotaWithResponse call
func (GetQuotaResponse) ContentType ¶ added in v0.3.0
func (r GetQuotaResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetQuotaResponse) GetBody ¶ added in v0.3.0
func (r GetQuotaResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetQuotaResponse) GetJSON200 ¶ added in v0.3.0
func (r GetQuotaResponse) GetJSON200() *QuotaList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetQuotaResponse) GetJSONDefault ¶ added in v0.3.0
func (r GetQuotaResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetQuotaResponse) Status ¶ added in v0.3.0
func (r GetQuotaResponse) Status() string
Status returns HTTPResponse.Status
func (GetQuotaResponse) StatusCode ¶ added in v0.3.0
func (r GetQuotaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetQuotaResponseObject ¶ added in v0.3.0
type GetQuotaResponseObject interface {
VisitGetQuotaResponse(w http.ResponseWriter) error
}
type GetQuotadefaultJSONResponse ¶ added in v0.3.0
func (GetQuotadefaultJSONResponse) VisitGetQuotaResponse ¶ added in v0.3.0
func (response GetQuotadefaultJSONResponse) VisitGetQuotaResponse(w http.ResponseWriter) error
type GetSession200JSONResponse ¶
type GetSession200JSONResponse Session
func (GetSession200JSONResponse) VisitGetSessionResponse ¶
func (response GetSession200JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSessionRequestObject ¶
type GetSessionRequestObject struct {
}
type GetSessionResponse ¶
type GetSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Session
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetSessionResponse ¶
func ParseGetSessionResponse(rsp *http.Response) (*GetSessionResponse, error)
ParseGetSessionResponse parses an HTTP response from a GetSessionWithResponse call
func (GetSessionResponse) ContentType ¶
func (r GetSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionResponse) GetBody ¶
func (r GetSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionResponse) GetJSON200 ¶
func (r GetSessionResponse) GetJSON200() *Session
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionResponse) GetJSONDefault ¶
func (r GetSessionResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetSessionResponse) Status ¶
func (r GetSessionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionResponse) StatusCode ¶
func (r GetSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionResponseObject ¶
type GetSessionResponseObject interface {
VisitGetSessionResponse(w http.ResponseWriter) error
}
type GetSessiondefaultJSONResponse ¶
func (GetSessiondefaultJSONResponse) VisitGetSessionResponse ¶
func (response GetSessiondefaultJSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetStats200JSONResponse ¶
type GetStats200JSONResponse Stats
func (GetStats200JSONResponse) VisitGetStatsResponse ¶
func (response GetStats200JSONResponse) VisitGetStatsResponse(w http.ResponseWriter) error
type GetStats503JSONResponse ¶ added in v0.7.2
func (GetStats503JSONResponse) VisitGetStatsResponse ¶ added in v0.7.2
func (response GetStats503JSONResponse) VisitGetStatsResponse(w http.ResponseWriter) error
type GetStatsParams ¶
type GetStatsParams struct {
// From Start of the time range (RFC 3339). Defaults to 24 hours before `to`.
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339). Defaults to now.
To *To `form:"to,omitempty" json:"to,omitempty"`
// GroupBy With a value other than `none`, `groups` holds one summary per key, alias, provider or model. A model group is named `<provider>/<model>` and lists the 100 busiest models of the range.
GroupBy *GetStatsParamsGroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
// GroupsOnly When true, `summary` is all zeros and `series` is empty; only `groups` is computed. For a caller that already holds the summary and the series of the same range.
GroupsOnly *bool `form:"groups_only,omitempty" json:"groups_only,omitempty"`
// Key A client key id.
Key *KeyFilter `form:"key,omitempty" json:"key,omitempty"`
// Alias An alias name.
Alias *AliasFilter `form:"alias,omitempty" json:"alias,omitempty"`
// Provider A provider name.
Provider *ProviderFilter `form:"provider,omitempty" json:"provider,omitempty"`
}
GetStatsParams defines parameters for GetStats.
type GetStatsParamsGroupBy ¶
type GetStatsParamsGroupBy string
GetStatsParamsGroupBy defines parameters for GetStats.
const ( GetStatsParamsGroupByAlias GetStatsParamsGroupBy = "alias" GetStatsParamsGroupByKey GetStatsParamsGroupBy = "key" GetStatsParamsGroupByModel GetStatsParamsGroupBy = "model" GetStatsParamsGroupByNone GetStatsParamsGroupBy = "none" GetStatsParamsGroupByProvider GetStatsParamsGroupBy = "provider" )
Defines values for GetStatsParamsGroupBy.
func (GetStatsParamsGroupBy) Valid ¶
func (e GetStatsParamsGroupBy) Valid() bool
Valid indicates whether the value is a known member of the GetStatsParamsGroupBy enum.
type GetStatsRequestObject ¶
type GetStatsRequestObject struct {
Params GetStatsParams
}
type GetStatsResponse ¶
type GetStatsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Stats
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *StatsUnavailable
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetStatsResponse ¶
func ParseGetStatsResponse(rsp *http.Response) (*GetStatsResponse, error)
ParseGetStatsResponse parses an HTTP response from a GetStatsWithResponse call
func (GetStatsResponse) ContentType ¶
func (r GetStatsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetStatsResponse) GetBody ¶
func (r GetStatsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetStatsResponse) GetJSON200 ¶
func (r GetStatsResponse) GetJSON200() *Stats
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetStatsResponse) GetJSON503 ¶ added in v0.7.2
func (r GetStatsResponse) GetJSON503() *StatsUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetStatsResponse) GetJSONDefault ¶
func (r GetStatsResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetStatsResponse) Status ¶
func (r GetStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatsResponse) StatusCode ¶
func (r GetStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatsResponseObject ¶
type GetStatsResponseObject interface {
VisitGetStatsResponse(w http.ResponseWriter) error
}
type GetStatsdefaultJSONResponse ¶
func (GetStatsdefaultJSONResponse) VisitGetStatsResponse ¶
func (response GetStatsdefaultJSONResponse) VisitGetStatsResponse(w http.ResponseWriter) error
type GetVersion200JSONResponse ¶
type GetVersion200JSONResponse VersionResponse
func (GetVersion200JSONResponse) VisitGetVersionResponse ¶
func (response GetVersion200JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error
type GetVersionRequestObject ¶
type GetVersionRequestObject struct {
}
type GetVersionResponse ¶
type GetVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VersionResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseGetVersionResponse ¶
func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call
func (GetVersionResponse) ContentType ¶
func (r GetVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVersionResponse) GetBody ¶
func (r GetVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVersionResponse) GetJSON200 ¶
func (r GetVersionResponse) GetJSON200() *VersionResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVersionResponse) GetJSONDefault ¶
func (r GetVersionResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetVersionResponse) Status ¶
func (r GetVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetVersionResponse) StatusCode ¶
func (r GetVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVersionResponseObject ¶
type GetVersionResponseObject interface {
VisitGetVersionResponse(w http.ResponseWriter) error
}
type GetVersiondefaultJSONResponse ¶
func (GetVersiondefaultJSONResponse) VisitGetVersionResponse ¶
func (response GetVersiondefaultJSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error
type Health ¶
type Health struct {
// Engines The state of each component, by neutral component name.
Engines map[string]HealthEngines `json:"engines"`
Status HealthStatus `json:"status"`
}
Health defines model for Health.
type HealthEngines ¶
type HealthEngines string
HealthEngines defines model for Health.Engines.
const ( HealthEnginesError HealthEngines = "error" HealthEnginesOk HealthEngines = "ok" )
Defines values for HealthEngines.
func (HealthEngines) Valid ¶
func (e HealthEngines) Valid() bool
Valid indicates whether the value is a known member of the HealthEngines enum.
type HealthStatus ¶
type HealthStatus string
HealthStatus defines model for Health.Status.
const ( HealthStatusDegraded HealthStatus = "degraded" HealthStatusOk HealthStatus = "ok" )
Defines values for HealthStatus.
func (HealthStatus) Valid ¶
func (e HealthStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthStatus enum.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImportAccount201JSONResponse ¶
type ImportAccount201JSONResponse Account
func (ImportAccount201JSONResponse) VisitImportAccountResponse ¶
func (response ImportAccount201JSONResponse) VisitImportAccountResponse(w http.ResponseWriter) error
type ImportAccountJSONRequestBody ¶
type ImportAccountJSONRequestBody = AccountImport
ImportAccountJSONRequestBody defines body for ImportAccount for application/json ContentType.
type ImportAccountRequestObject ¶
type ImportAccountRequestObject struct {
Body *ImportAccountJSONRequestBody
}
type ImportAccountResponse ¶
type ImportAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Account
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseImportAccountResponse ¶
func ParseImportAccountResponse(rsp *http.Response) (*ImportAccountResponse, error)
ParseImportAccountResponse parses an HTTP response from a ImportAccountWithResponse call
func (ImportAccountResponse) ContentType ¶
func (r ImportAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ImportAccountResponse) GetBody ¶
func (r ImportAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ImportAccountResponse) GetJSON201 ¶
func (r ImportAccountResponse) GetJSON201() *Account
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ImportAccountResponse) GetJSONDefault ¶
func (r ImportAccountResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ImportAccountResponse) Status ¶
func (r ImportAccountResponse) Status() string
Status returns HTTPResponse.Status
func (ImportAccountResponse) StatusCode ¶
func (r ImportAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ImportAccountResponseObject ¶
type ImportAccountResponseObject interface {
VisitImportAccountResponse(w http.ResponseWriter) error
}
type ImportAccountdefaultJSONResponse ¶
func (ImportAccountdefaultJSONResponse) VisitImportAccountResponse ¶
func (response ImportAccountdefaultJSONResponse) VisitImportAccountResponse(w http.ResponseWriter) error
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Key ¶
type Key struct {
// Allow Alias names or `<provider>/<model>` patterns this key may call.
Allow []string `json:"allow"`
CreatedAt time.Time `json:"created_at"`
Enabled bool `json:"enabled"`
Id string `json:"id"`
Name string `json:"name"`
// Prefix The first characters of the value, for recognising a key.
Prefix string `json:"prefix"`
}
Key defines model for Key.
type KeyCreate ¶
type KeyCreate struct {
Allow []string `json:"allow"`
Name string `json:"name"`
// Value A caller-chosen value; generated when absent.
Value *string `json:"value,omitempty"`
}
KeyCreate defines model for KeyCreate.
type KeyCreated ¶
type KeyCreated struct {
// Allow Alias names or `<provider>/<model>` patterns this key may call.
Allow []string `json:"allow"`
CreatedAt time.Time `json:"created_at"`
Enabled bool `json:"enabled"`
Id string `json:"id"`
Name string `json:"name"`
// Prefix The first characters of the value, for recognising a key.
Prefix string `json:"prefix"`
// Value The key's value, returned only when it is created.
Value string `json:"value"`
}
KeyCreated defines model for KeyCreated.
type KeyUpdate ¶
type KeyUpdate struct {
Allow *[]string `json:"allow,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Name *string `json:"name,omitempty"`
}
KeyUpdate defines model for KeyUpdate.
type ListAccountStrategies200JSONResponse ¶ added in v0.3.0
type ListAccountStrategies200JSONResponse AccountStrategyList
func (ListAccountStrategies200JSONResponse) VisitListAccountStrategiesResponse ¶ added in v0.3.0
func (response ListAccountStrategies200JSONResponse) VisitListAccountStrategiesResponse(w http.ResponseWriter) error
type ListAccountStrategiesParams ¶ added in v0.3.0
type ListAccountStrategiesParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListAccountStrategiesParams defines parameters for ListAccountStrategies.
type ListAccountStrategiesRequestObject ¶ added in v0.3.0
type ListAccountStrategiesRequestObject struct {
Params ListAccountStrategiesParams
}
type ListAccountStrategiesResponse ¶ added in v0.3.0
type ListAccountStrategiesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountStrategyList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListAccountStrategiesResponse ¶ added in v0.3.0
func ParseListAccountStrategiesResponse(rsp *http.Response) (*ListAccountStrategiesResponse, error)
ParseListAccountStrategiesResponse parses an HTTP response from a ListAccountStrategiesWithResponse call
func (ListAccountStrategiesResponse) ContentType ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAccountStrategiesResponse) GetBody ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAccountStrategiesResponse) GetJSON200 ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) GetJSON200() *AccountStrategyList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAccountStrategiesResponse) GetJSONDefault ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListAccountStrategiesResponse) Status ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAccountStrategiesResponse) StatusCode ¶ added in v0.3.0
func (r ListAccountStrategiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAccountStrategiesResponseObject ¶ added in v0.3.0
type ListAccountStrategiesResponseObject interface {
VisitListAccountStrategiesResponse(w http.ResponseWriter) error
}
type ListAccountStrategiesdefaultJSONResponse ¶ added in v0.3.0
func (ListAccountStrategiesdefaultJSONResponse) VisitListAccountStrategiesResponse ¶ added in v0.3.0
func (response ListAccountStrategiesdefaultJSONResponse) VisitListAccountStrategiesResponse(w http.ResponseWriter) error
type ListAccounts200JSONResponse ¶
type ListAccounts200JSONResponse AccountList
func (ListAccounts200JSONResponse) VisitListAccountsResponse ¶
func (response ListAccounts200JSONResponse) VisitListAccountsResponse(w http.ResponseWriter) error
type ListAccountsParams ¶
type ListAccountsParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
// Provider A subscription provider, e.g. `codex`.
Provider *string `form:"provider,omitempty" json:"provider,omitempty"`
}
ListAccountsParams defines parameters for ListAccounts.
type ListAccountsRequestObject ¶
type ListAccountsRequestObject struct {
Params ListAccountsParams
}
type ListAccountsResponse ¶
type ListAccountsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListAccountsResponse ¶
func ParseListAccountsResponse(rsp *http.Response) (*ListAccountsResponse, error)
ParseListAccountsResponse parses an HTTP response from a ListAccountsWithResponse call
func (ListAccountsResponse) ContentType ¶
func (r ListAccountsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAccountsResponse) GetBody ¶
func (r ListAccountsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAccountsResponse) GetJSON200 ¶
func (r ListAccountsResponse) GetJSON200() *AccountList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAccountsResponse) GetJSONDefault ¶
func (r ListAccountsResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListAccountsResponse) Status ¶
func (r ListAccountsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAccountsResponse) StatusCode ¶
func (r ListAccountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAccountsResponseObject ¶
type ListAccountsResponseObject interface {
VisitListAccountsResponse(w http.ResponseWriter) error
}
type ListAccountsdefaultJSONResponse ¶
func (ListAccountsdefaultJSONResponse) VisitListAccountsResponse ¶
func (response ListAccountsdefaultJSONResponse) VisitListAccountsResponse(w http.ResponseWriter) error
type ListAliases200JSONResponse ¶
type ListAliases200JSONResponse AliasList
func (ListAliases200JSONResponse) VisitListAliasesResponse ¶
func (response ListAliases200JSONResponse) VisitListAliasesResponse(w http.ResponseWriter) error
type ListAliasesParams ¶
type ListAliasesParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
Kind *AliasKind `form:"kind,omitempty" json:"kind,omitempty"`
}
ListAliasesParams defines parameters for ListAliases.
type ListAliasesRequestObject ¶
type ListAliasesRequestObject struct {
Params ListAliasesParams
}
type ListAliasesResponse ¶
type ListAliasesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AliasList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListAliasesResponse ¶
func ParseListAliasesResponse(rsp *http.Response) (*ListAliasesResponse, error)
ParseListAliasesResponse parses an HTTP response from a ListAliasesWithResponse call
func (ListAliasesResponse) ContentType ¶
func (r ListAliasesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAliasesResponse) GetBody ¶
func (r ListAliasesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAliasesResponse) GetJSON200 ¶
func (r ListAliasesResponse) GetJSON200() *AliasList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAliasesResponse) GetJSONDefault ¶
func (r ListAliasesResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListAliasesResponse) Status ¶
func (r ListAliasesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAliasesResponse) StatusCode ¶
func (r ListAliasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAliasesResponseObject ¶
type ListAliasesResponseObject interface {
VisitListAliasesResponse(w http.ResponseWriter) error
}
type ListAliasesdefaultJSONResponse ¶
func (ListAliasesdefaultJSONResponse) VisitListAliasesResponse ¶
func (response ListAliasesdefaultJSONResponse) VisitListAliasesResponse(w http.ResponseWriter) error
type ListApiTokens200JSONResponse ¶
type ListApiTokens200JSONResponse ApiTokenList
func (ListApiTokens200JSONResponse) VisitListApiTokensResponse ¶
func (response ListApiTokens200JSONResponse) VisitListApiTokensResponse(w http.ResponseWriter) error
type ListApiTokensParams ¶
type ListApiTokensParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
}
ListApiTokensParams defines parameters for ListApiTokens.
type ListApiTokensRequestObject ¶
type ListApiTokensRequestObject struct {
Params ListApiTokensParams
}
type ListApiTokensResponse ¶
type ListApiTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ApiTokenList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListApiTokensResponse ¶
func ParseListApiTokensResponse(rsp *http.Response) (*ListApiTokensResponse, error)
ParseListApiTokensResponse parses an HTTP response from a ListApiTokensWithResponse call
func (ListApiTokensResponse) ContentType ¶
func (r ListApiTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListApiTokensResponse) GetBody ¶
func (r ListApiTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListApiTokensResponse) GetJSON200 ¶
func (r ListApiTokensResponse) GetJSON200() *ApiTokenList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListApiTokensResponse) GetJSONDefault ¶
func (r ListApiTokensResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListApiTokensResponse) Status ¶
func (r ListApiTokensResponse) Status() string
Status returns HTTPResponse.Status
func (ListApiTokensResponse) StatusCode ¶
func (r ListApiTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApiTokensResponseObject ¶
type ListApiTokensResponseObject interface {
VisitListApiTokensResponse(w http.ResponseWriter) error
}
type ListApiTokensdefaultJSONResponse ¶
func (ListApiTokensdefaultJSONResponse) VisitListApiTokensResponse ¶
func (response ListApiTokensdefaultJSONResponse) VisitListApiTokensResponse(w http.ResponseWriter) error
type ListAudit200JSONResponse ¶ added in v0.7.0
type ListAudit200JSONResponse AuditList
func (ListAudit200JSONResponse) VisitListAuditResponse ¶ added in v0.7.0
func (response ListAudit200JSONResponse) VisitListAuditResponse(w http.ResponseWriter) error
type ListAuditParams ¶ added in v0.7.0
type ListAuditParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Operation Filter by exact OpenAPI operationId (e.g. `updateAccount`).
Operation *string `form:"operation,omitempty" json:"operation,omitempty"`
}
ListAuditParams defines parameters for ListAudit.
type ListAuditRequestObject ¶ added in v0.7.0
type ListAuditRequestObject struct {
Params ListAuditParams
}
type ListAuditResponse ¶ added in v0.7.0
type ListAuditResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuditList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListAuditResponse ¶ added in v0.7.0
func ParseListAuditResponse(rsp *http.Response) (*ListAuditResponse, error)
ParseListAuditResponse parses an HTTP response from a ListAuditWithResponse call
func (ListAuditResponse) ContentType ¶ added in v0.7.0
func (r ListAuditResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditResponse) GetBody ¶ added in v0.7.0
func (r ListAuditResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAuditResponse) GetJSON200 ¶ added in v0.7.0
func (r ListAuditResponse) GetJSON200() *AuditList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAuditResponse) GetJSONDefault ¶ added in v0.7.0
func (r ListAuditResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListAuditResponse) Status ¶ added in v0.7.0
func (r ListAuditResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditResponse) StatusCode ¶ added in v0.7.0
func (r ListAuditResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditResponseObject ¶ added in v0.7.0
type ListAuditResponseObject interface {
VisitListAuditResponse(w http.ResponseWriter) error
}
type ListAuditdefaultJSONResponse ¶ added in v0.7.0
func (ListAuditdefaultJSONResponse) VisitListAuditResponse ¶ added in v0.7.0
func (response ListAuditdefaultJSONResponse) VisitListAuditResponse(w http.ResponseWriter) error
type ListCooling200JSONResponse ¶
type ListCooling200JSONResponse CoolingList
func (ListCooling200JSONResponse) VisitListCoolingResponse ¶
func (response ListCooling200JSONResponse) VisitListCoolingResponse(w http.ResponseWriter) error
type ListCoolingParams ¶
type ListCoolingParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
}
ListCoolingParams defines parameters for ListCooling.
type ListCoolingRequestObject ¶
type ListCoolingRequestObject struct {
Params ListCoolingParams
}
type ListCoolingResponse ¶
type ListCoolingResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CoolingList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListCoolingResponse ¶
func ParseListCoolingResponse(rsp *http.Response) (*ListCoolingResponse, error)
ParseListCoolingResponse parses an HTTP response from a ListCoolingWithResponse call
func (ListCoolingResponse) ContentType ¶
func (r ListCoolingResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListCoolingResponse) GetBody ¶
func (r ListCoolingResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListCoolingResponse) GetJSON200 ¶
func (r ListCoolingResponse) GetJSON200() *CoolingList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListCoolingResponse) GetJSONDefault ¶
func (r ListCoolingResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListCoolingResponse) Status ¶
func (r ListCoolingResponse) Status() string
Status returns HTTPResponse.Status
func (ListCoolingResponse) StatusCode ¶
func (r ListCoolingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCoolingResponseObject ¶
type ListCoolingResponseObject interface {
VisitListCoolingResponse(w http.ResponseWriter) error
}
type ListCoolingdefaultJSONResponse ¶
func (ListCoolingdefaultJSONResponse) VisitListCoolingResponse ¶
func (response ListCoolingdefaultJSONResponse) VisitListCoolingResponse(w http.ResponseWriter) error
type ListKeys200JSONResponse ¶
type ListKeys200JSONResponse KeyList
func (ListKeys200JSONResponse) VisitListKeysResponse ¶
func (response ListKeys200JSONResponse) VisitListKeysResponse(w http.ResponseWriter) error
type ListKeysParams ¶
type ListKeysParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
}
ListKeysParams defines parameters for ListKeys.
type ListKeysRequestObject ¶
type ListKeysRequestObject struct {
Params ListKeysParams
}
type ListKeysResponse ¶
type ListKeysResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *KeyList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListKeysResponse ¶
func ParseListKeysResponse(rsp *http.Response) (*ListKeysResponse, error)
ParseListKeysResponse parses an HTTP response from a ListKeysWithResponse call
func (ListKeysResponse) ContentType ¶
func (r ListKeysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListKeysResponse) GetBody ¶
func (r ListKeysResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListKeysResponse) GetJSON200 ¶
func (r ListKeysResponse) GetJSON200() *KeyList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListKeysResponse) GetJSONDefault ¶
func (r ListKeysResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListKeysResponse) Status ¶
func (r ListKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListKeysResponse) StatusCode ¶
func (r ListKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListKeysResponseObject ¶
type ListKeysResponseObject interface {
VisitListKeysResponse(w http.ResponseWriter) error
}
type ListKeysdefaultJSONResponse ¶
func (ListKeysdefaultJSONResponse) VisitListKeysResponse ¶
func (response ListKeysdefaultJSONResponse) VisitListKeysResponse(w http.ResponseWriter) error
type ListLogs200JSONResponse ¶
type ListLogs200JSONResponse LogList
func (ListLogs200JSONResponse) VisitListLogsResponse ¶
func (response ListLogs200JSONResponse) VisitListLogsResponse(w http.ResponseWriter) error
type ListLogs504JSONResponse ¶ added in v0.7.2
type ListLogs504JSONResponse struct{ EngineTimeoutJSONResponse }
func (ListLogs504JSONResponse) VisitListLogsResponse ¶ added in v0.7.2
func (response ListLogs504JSONResponse) VisitListLogsResponse(w http.ResponseWriter) error
type ListLogsParams ¶
type ListLogsParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// From Start of the time range (RFC 3339). Defaults to 24 hours before `to`.
From *From `form:"from,omitempty" json:"from,omitempty"`
// To End of the time range (RFC 3339). Defaults to now.
To *To `form:"to,omitempty" json:"to,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
// Key A client key id.
Key *KeyFilter `form:"key,omitempty" json:"key,omitempty"`
// Alias An alias name.
Alias *AliasFilter `form:"alias,omitempty" json:"alias,omitempty"`
// Provider A provider name.
Provider *ProviderFilter `form:"provider,omitempty" json:"provider,omitempty"`
// Model The served model as `<provider>/<model>`.
Model *string `form:"model,omitempty" json:"model,omitempty"`
Status *ListLogsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}
ListLogsParams defines parameters for ListLogs.
type ListLogsParamsStatus ¶
type ListLogsParamsStatus string
ListLogsParamsStatus defines parameters for ListLogs.
const ( ListLogsParamsStatusError ListLogsParamsStatus = "error" ListLogsParamsStatusSuccess ListLogsParamsStatus = "success" )
Defines values for ListLogsParamsStatus.
func (ListLogsParamsStatus) Valid ¶
func (e ListLogsParamsStatus) Valid() bool
Valid indicates whether the value is a known member of the ListLogsParamsStatus enum.
type ListLogsRequestObject ¶
type ListLogsRequestObject struct {
Params ListLogsParams
}
type ListLogsResponse ¶
type ListLogsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LogList
// JSON504 the response for an HTTP 504 `application/json` response
JSON504 *EngineTimeout
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListLogsResponse ¶
func ParseListLogsResponse(rsp *http.Response) (*ListLogsResponse, error)
ParseListLogsResponse parses an HTTP response from a ListLogsWithResponse call
func (ListLogsResponse) ContentType ¶
func (r ListLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLogsResponse) GetBody ¶
func (r ListLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLogsResponse) GetJSON200 ¶
func (r ListLogsResponse) GetJSON200() *LogList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLogsResponse) GetJSON504 ¶ added in v0.7.2
func (r ListLogsResponse) GetJSON504() *EngineTimeout
GetJSON504 returns the response for an HTTP 504 `application/json` response
func (ListLogsResponse) GetJSONDefault ¶
func (r ListLogsResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListLogsResponse) Status ¶
func (r ListLogsResponse) Status() string
Status returns HTTPResponse.Status
func (ListLogsResponse) StatusCode ¶
func (r ListLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLogsResponseObject ¶
type ListLogsResponseObject interface {
VisitListLogsResponse(w http.ResponseWriter) error
}
type ListLogsdefaultJSONResponse ¶
func (ListLogsdefaultJSONResponse) VisitListLogsResponse ¶
func (response ListLogsdefaultJSONResponse) VisitListLogsResponse(w http.ResponseWriter) error
type ListProviders200JSONResponse ¶
type ListProviders200JSONResponse ProviderList
func (ListProviders200JSONResponse) VisitListProvidersResponse ¶
func (response ListProviders200JSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type ListProvidersParams ¶
type ListProvidersParams struct {
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset The number of items to skip.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Q Free-text search over name-like fields.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
Kind *ProviderKind `form:"kind,omitempty" json:"kind,omitempty"`
// Type The front door's provider type of a `builtin` provider, e.g. `openrouter`.
Type *string `form:"type,omitempty" json:"type,omitempty"`
// Kinds Match any of these provider kinds.
Kinds *[]ProviderKind `form:"kinds,omitempty" json:"kinds,omitempty"`
Status *ProviderStatus `form:"status,omitempty" json:"status,omitempty"`
}
ListProvidersParams defines parameters for ListProviders.
type ListProvidersRequestObject ¶
type ListProvidersRequestObject struct {
Params ListProvidersParams
}
type ListProvidersResponse ¶
type ListProvidersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ProviderList
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseListProvidersResponse ¶
func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error)
ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call
func (ListProvidersResponse) ContentType ¶
func (r ListProvidersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListProvidersResponse) GetBody ¶
func (r ListProvidersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListProvidersResponse) GetJSON200 ¶
func (r ListProvidersResponse) GetJSON200() *ProviderList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListProvidersResponse) GetJSONDefault ¶
func (r ListProvidersResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListProvidersResponse) Status ¶
func (r ListProvidersResponse) Status() string
Status returns HTTPResponse.Status
func (ListProvidersResponse) StatusCode ¶
func (r ListProvidersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProvidersResponseObject ¶
type ListProvidersResponseObject interface {
VisitListProvidersResponse(w http.ResponseWriter) error
}
type ListProvidersdefaultJSONResponse ¶
func (ListProvidersdefaultJSONResponse) VisitListProvidersResponse ¶
func (response ListProvidersdefaultJSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type LogDetail ¶
type LogDetail struct {
Alias *string `json:"alias,omitempty"`
Attempt int `json:"attempt"`
CostUsd *float64 `json:"cost_usd,omitempty"`
Error *string `json:"error,omitempty"`
// FallbackPath Every attempt of the request, root first, by attempt.
FallbackPath []LogEntry `json:"fallback_path"`
Id string `json:"id"`
// Key The client key id.
Key *string `json:"key,omitempty"`
// KeyName The client key name, when the key can be resolved.
KeyName *string `json:"key_name,omitempty"`
LatencyMs *int `json:"latency_ms,omitempty"`
Model string `json:"model"`
// ParentId The id of the first attempt when this entry is a fallback.
ParentId *string `json:"parent_id,omitempty"`
Provider string `json:"provider"`
Request *map[string]any `json:"request,omitempty"`
Response *map[string]any `json:"response,omitempty"`
Status LogDetailStatus `json:"status"`
// StatusCode The recorded HTTP status code, when available.
StatusCode *int `json:"status_code,omitempty"`
Stream bool `json:"stream"`
Time time.Time `json:"time"`
Tokens TokenUsage `json:"tokens"`
}
LogDetail defines model for LogDetail.
type LogDetailStatus ¶
type LogDetailStatus string
LogDetailStatus defines model for LogDetail.Status.
const ( LogDetailStatusCancelled LogDetailStatus = "cancelled" LogDetailStatusError LogDetailStatus = "error" LogDetailStatusProcessing LogDetailStatus = "processing" LogDetailStatusSuccess LogDetailStatus = "success" )
Defines values for LogDetailStatus.
func (LogDetailStatus) Valid ¶
func (e LogDetailStatus) Valid() bool
Valid indicates whether the value is a known member of the LogDetailStatus enum.
type LogEntry ¶
type LogEntry struct {
Alias *string `json:"alias,omitempty"`
Attempt int `json:"attempt"`
CostUsd *float64 `json:"cost_usd,omitempty"`
Error *string `json:"error,omitempty"`
Id string `json:"id"`
// Key The client key id.
Key *string `json:"key,omitempty"`
// KeyName The client key name, when the key can be resolved.
KeyName *string `json:"key_name,omitempty"`
LatencyMs *int `json:"latency_ms,omitempty"`
Model string `json:"model"`
// ParentId The id of the first attempt when this entry is a fallback.
ParentId *string `json:"parent_id,omitempty"`
Provider string `json:"provider"`
Status LogEntryStatus `json:"status"`
// StatusCode The recorded HTTP status code, when available.
StatusCode *int `json:"status_code,omitempty"`
Stream bool `json:"stream"`
Time time.Time `json:"time"`
Tokens TokenUsage `json:"tokens"`
}
LogEntry defines model for LogEntry.
type LogEntryStatus ¶
type LogEntryStatus string
LogEntryStatus defines model for LogEntry.Status.
const ( LogEntryStatusCancelled LogEntryStatus = "cancelled" LogEntryStatusError LogEntryStatus = "error" LogEntryStatusProcessing LogEntryStatus = "processing" LogEntryStatusSuccess LogEntryStatus = "success" )
Defines values for LogEntryStatus.
func (LogEntryStatus) Valid ¶
func (e LogEntryStatus) Valid() bool
Valid indicates whether the value is a known member of the LogEntryStatus enum.
type Login204Response ¶
type Login204Response struct {
Headers Login204ResponseHeaders
}
func (Login204Response) VisitLoginResponse ¶
func (response Login204Response) VisitLoginResponse(w http.ResponseWriter) error
type Login204ResponseHeaders ¶
type Login204ResponseHeaders struct {
SetCookie *string
}
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequest ¶
type LoginRequest struct {
Password string `json:"password"`
}
LoginRequest defines model for LoginRequest.
type LoginRequestObject ¶
type LoginRequestObject struct {
Body *LoginJSONRequestBody
}
type LoginResponse ¶
type LoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *LoginResponse204Headers
}
func ParseLoginResponse ¶
func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)
ParseLoginResponse parses an HTTP response from a LoginWithResponse call
func (LoginResponse) ContentType ¶
func (r LoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LoginResponse) GetBody ¶
func (r LoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LoginResponse) GetJSONDefault ¶
func (r LoginResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (LoginResponse) Status ¶
func (r LoginResponse) Status() string
Status returns HTTPResponse.Status
func (LoginResponse) StatusCode ¶
func (r LoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LoginResponse204Headers ¶
type LoginResponse204Headers struct {
SetCookie *string
}
LoginResponse204Headers the declared response headers of an HTTP 204 response for Login
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type LogindefaultJSONResponse ¶
func (LogindefaultJSONResponse) VisitLoginResponse ¶
func (response LogindefaultJSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Logout204Response ¶
type Logout204Response struct {
Headers Logout204ResponseHeaders
}
func (Logout204Response) VisitLogoutResponse ¶
func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error
type Logout204ResponseHeaders ¶
type Logout204ResponseHeaders struct {
SetCookie *string
}
type LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponse ¶
type LogoutResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *LogoutResponse204Headers
}
func ParseLogoutResponse ¶
func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)
ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call
func (LogoutResponse) ContentType ¶
func (r LogoutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LogoutResponse) GetBody ¶
func (r LogoutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LogoutResponse) GetJSONDefault ¶
func (r LogoutResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (LogoutResponse) Status ¶
func (r LogoutResponse) Status() string
Status returns HTTPResponse.Status
func (LogoutResponse) StatusCode ¶
func (r LogoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogoutResponse204Headers ¶
type LogoutResponse204Headers struct {
SetCookie *string
}
LogoutResponse204Headers the declared response headers of an HTTP 204 response for Logout
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type LogoutdefaultJSONResponse ¶
func (LogoutdefaultJSONResponse) VisitLogoutResponse ¶
func (response LogoutdefaultJSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type PasswordChange ¶
PasswordChange defines model for PasswordChange.
type PlanConfig200JSONResponse ¶
type PlanConfig200JSONResponse ConfigChanges
func (PlanConfig200JSONResponse) VisitPlanConfigResponse ¶
func (response PlanConfig200JSONResponse) VisitPlanConfigResponse(w http.ResponseWriter) error
type PlanConfigJSONRequestBody ¶
type PlanConfigJSONRequestBody = ConfigRequest
PlanConfigJSONRequestBody defines body for PlanConfig for application/json ContentType.
type PlanConfigRequestObject ¶
type PlanConfigRequestObject struct {
Body *PlanConfigJSONRequestBody
}
type PlanConfigResponse ¶
type PlanConfigResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConfigChanges
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParsePlanConfigResponse ¶
func ParsePlanConfigResponse(rsp *http.Response) (*PlanConfigResponse, error)
ParsePlanConfigResponse parses an HTTP response from a PlanConfigWithResponse call
func (PlanConfigResponse) ContentType ¶
func (r PlanConfigResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PlanConfigResponse) GetBody ¶
func (r PlanConfigResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PlanConfigResponse) GetJSON200 ¶
func (r PlanConfigResponse) GetJSON200() *ConfigChanges
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PlanConfigResponse) GetJSONDefault ¶
func (r PlanConfigResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PlanConfigResponse) Status ¶
func (r PlanConfigResponse) Status() string
Status returns HTTPResponse.Status
func (PlanConfigResponse) StatusCode ¶
func (r PlanConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PlanConfigResponseObject ¶
type PlanConfigResponseObject interface {
VisitPlanConfigResponse(w http.ResponseWriter) error
}
type PlanConfigdefaultJSONResponse ¶
func (PlanConfigdefaultJSONResponse) VisitPlanConfigResponse ¶
func (response PlanConfigdefaultJSONResponse) VisitPlanConfigResponse(w http.ResponseWriter) error
type PoolAccount ¶ added in v0.2.1
type PoolAccount struct {
Id string `json:"id"`
Label string `json:"label"`
// Reason "missing", "signed out", or the provider's message.
Reason string `json:"reason"`
}
PoolAccount defines model for PoolAccount.
type Provider ¶
type Provider struct {
AllowPrivateNetwork *bool `json:"allow_private_network,omitempty"`
BaseUrl *string `json:"base_url,omitempty"`
KeyCount *int `json:"key_count,omitempty"`
Keys *[]ProviderKey `json:"keys,omitempty"`
Kind ProviderKind `json:"kind"`
Name string `json:"name"`
// Status `down` when the last test failed or every model of the provider is cooling, `degraded` when some are
// cooling, `unknown` before the first test.
Status *ProviderStatus `json:"status,omitempty"`
// Type Only for `builtin`; the front door's provider, e.g. `openrouter`.
Type *string `json:"type,omitempty"`
}
Provider defines model for Provider.
type ProviderKey ¶
type ProviderKey struct {
Name string `json:"name"`
// Value The secret. Write-only; responses list key names only.
Value *string `json:"value,omitempty"`
}
ProviderKey defines model for ProviderKey.
type ProviderKind ¶
type ProviderKind string
ProviderKind defines model for ProviderKind.
const ( Builtin ProviderKind = "builtin" OpenaiCompatible ProviderKind = "openai-compatible" Soniox ProviderKind = "soniox" TypesafeCompatible ProviderKind = "typesafe-compatible" )
Defines values for ProviderKind.
func (ProviderKind) Valid ¶
func (e ProviderKind) Valid() bool
Valid indicates whether the value is a known member of the ProviderKind enum.
type ProviderList ¶
ProviderList defines model for ProviderList.
type ProviderStatus ¶
type ProviderStatus string
ProviderStatus defines model for ProviderStatus.
const ( ProviderStatusDegraded ProviderStatus = "degraded" ProviderStatusDown ProviderStatus = "down" ProviderStatusOk ProviderStatus = "ok" ProviderStatusUnknown ProviderStatus = "unknown" )
Defines values for ProviderStatus.
func (ProviderStatus) Valid ¶
func (e ProviderStatus) Valid() bool
Valid indicates whether the value is a known member of the ProviderStatus enum.
type ProviderTestResult ¶
type ProviderTestResult struct {
LatencyMs int `json:"latency_ms"`
Message string `json:"message"`
Ok bool `json:"ok"`
}
ProviderTestResult defines model for ProviderTestResult.
type QuotaAccount ¶ added in v0.3.0
type QuotaAccount struct {
Account Account `json:"account"`
Quota *QuotaSnapshot `json:"quota,omitempty"`
}
QuotaAccount defines model for QuotaAccount.
type QuotaList ¶ added in v0.7.0
type QuotaList struct {
Items []QuotaProvider `json:"items"`
// Total Matching accounts before paging.
Total int `json:"total"`
}
QuotaList defines model for QuotaList.
type QuotaProvider ¶ added in v0.3.0
type QuotaProvider struct {
Accounts []QuotaAccount `json:"accounts"`
Available int `json:"available"`
Cooling int `json:"cooling"`
Exhausted int `json:"exhausted"`
// NextReset The earliest future reset of an exhausted window, else of any window.
NextReset *time.Time `json:"next_reset,omitempty"`
Provider string `json:"provider"`
// SignIn Enabled accounts that need a new sign-in. Each enabled account is counted once.
SignIn int `json:"sign_in"`
// Supported Whether remora can read this provider's quota.
Supported bool `json:"supported"`
// Suspended Enabled accounts the provider suspended; a new sign-in does not help. Each enabled account is counted once.
Suspended int `json:"suspended"`
}
QuotaProvider defines model for QuotaProvider.
type QuotaRefresh ¶ added in v0.3.0
type QuotaRefresh struct {
AccountId *string `json:"account_id,omitempty"`
Provider *string `json:"provider,omitempty"`
}
QuotaRefresh Exactly one of account_id and provider.
type QuotaRefreshResult ¶ added in v0.3.0
type QuotaRefreshResult struct {
Queued []string `json:"queued"`
Skipped []string `json:"skipped"`
}
QuotaRefreshResult defines model for QuotaRefreshResult.
type QuotaSnapshot ¶ added in v0.3.0
type QuotaSnapshot struct {
// CheckedAt The last check, successful or not.
CheckedAt time.Time `json:"checked_at"`
// Error Why the last check failed; empty when it succeeded.
Error string `json:"error"`
// FetchedAt When the windows were observed; absent when never.
FetchedAt *time.Time `json:"fetched_at,omitempty"`
LimitReached bool `json:"limit_reached"`
// Plan Empty when unknown.
Plan string `json:"plan"`
// Source "poll" when remora asked the provider; "passive" when read from recent traffic.
Source QuotaSnapshotSource `json:"source"`
Windows []QuotaWindow `json:"windows"`
}
QuotaSnapshot defines model for QuotaSnapshot.
type QuotaSnapshotSource ¶ added in v0.3.0
type QuotaSnapshotSource string
QuotaSnapshotSource "poll" when remora asked the provider; "passive" when read from recent traffic.
const ( Passive QuotaSnapshotSource = "passive" Poll QuotaSnapshotSource = "poll" )
Defines values for QuotaSnapshotSource.
func (QuotaSnapshotSource) Valid ¶ added in v0.3.0
func (e QuotaSnapshotSource) Valid() bool
Valid indicates whether the value is a known member of the QuotaSnapshotSource enum.
type QuotaWindow ¶ added in v0.3.0
type QuotaWindow struct {
// Remaining The fraction left; null when the provider did not report it.
Remaining *float64 `json:"remaining"`
// ResetsAt Null when unknown or when the window does not reset.
ResetsAt *time.Time `json:"resets_at"`
// Scope A model family or model ("gemini", "claude-gpt", "opus"); empty for the whole account.
Scope string `json:"scope"`
// Window "5h", "weekly", or the window's length in minutes.
Window string `json:"window"`
}
QuotaWindow defines model for QuotaWindow.
type RefreshQuota202JSONResponse ¶ added in v0.3.0
type RefreshQuota202JSONResponse QuotaRefreshResult
func (RefreshQuota202JSONResponse) VisitRefreshQuotaResponse ¶ added in v0.3.0
func (response RefreshQuota202JSONResponse) VisitRefreshQuotaResponse(w http.ResponseWriter) error
type RefreshQuotaJSONRequestBody ¶ added in v0.3.0
type RefreshQuotaJSONRequestBody = QuotaRefresh
RefreshQuotaJSONRequestBody defines body for RefreshQuota for application/json ContentType.
type RefreshQuotaRequestObject ¶ added in v0.3.0
type RefreshQuotaRequestObject struct {
Body *RefreshQuotaJSONRequestBody
}
type RefreshQuotaResponse ¶ added in v0.3.0
type RefreshQuotaResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *QuotaRefreshResult
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseRefreshQuotaResponse ¶ added in v0.3.0
func ParseRefreshQuotaResponse(rsp *http.Response) (*RefreshQuotaResponse, error)
ParseRefreshQuotaResponse parses an HTTP response from a RefreshQuotaWithResponse call
func (RefreshQuotaResponse) ContentType ¶ added in v0.3.0
func (r RefreshQuotaResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RefreshQuotaResponse) GetBody ¶ added in v0.3.0
func (r RefreshQuotaResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RefreshQuotaResponse) GetJSON202 ¶ added in v0.3.0
func (r RefreshQuotaResponse) GetJSON202() *QuotaRefreshResult
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (RefreshQuotaResponse) GetJSONDefault ¶ added in v0.3.0
func (r RefreshQuotaResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RefreshQuotaResponse) Status ¶ added in v0.3.0
func (r RefreshQuotaResponse) Status() string
Status returns HTTPResponse.Status
func (RefreshQuotaResponse) StatusCode ¶ added in v0.3.0
func (r RefreshQuotaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefreshQuotaResponseObject ¶ added in v0.3.0
type RefreshQuotaResponseObject interface {
VisitRefreshQuotaResponse(w http.ResponseWriter) error
}
type RefreshQuotadefaultJSONResponse ¶ added in v0.3.0
func (RefreshQuotadefaultJSONResponse) VisitRefreshQuotaResponse ¶ added in v0.3.0
func (response RefreshQuotadefaultJSONResponse) VisitRefreshQuotaResponse(w http.ResponseWriter) error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ResetAccountCooldown204Response ¶
type ResetAccountCooldown204Response struct {
}
func (ResetAccountCooldown204Response) VisitResetAccountCooldownResponse ¶
func (response ResetAccountCooldown204Response) VisitResetAccountCooldownResponse(w http.ResponseWriter) error
type ResetAccountCooldownRequestObject ¶
type ResetAccountCooldownRequestObject struct {
Id AccountId `json:"id"`
}
type ResetAccountCooldownResponse ¶
type ResetAccountCooldownResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseResetAccountCooldownResponse ¶
func ParseResetAccountCooldownResponse(rsp *http.Response) (*ResetAccountCooldownResponse, error)
ParseResetAccountCooldownResponse parses an HTTP response from a ResetAccountCooldownWithResponse call
func (ResetAccountCooldownResponse) ContentType ¶
func (r ResetAccountCooldownResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResetAccountCooldownResponse) GetBody ¶
func (r ResetAccountCooldownResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ResetAccountCooldownResponse) GetJSONDefault ¶
func (r ResetAccountCooldownResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ResetAccountCooldownResponse) Status ¶
func (r ResetAccountCooldownResponse) Status() string
Status returns HTTPResponse.Status
func (ResetAccountCooldownResponse) StatusCode ¶
func (r ResetAccountCooldownResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResetAccountCooldownResponseObject ¶
type ResetAccountCooldownResponseObject interface {
VisitResetAccountCooldownResponse(w http.ResponseWriter) error
}
type ResetAccountCooldowndefaultJSONResponse ¶
func (ResetAccountCooldowndefaultJSONResponse) VisitResetAccountCooldownResponse ¶
func (response ResetAccountCooldowndefaultJSONResponse) VisitResetAccountCooldownResponse(w http.ResponseWriter) error
type RoutingStrategy ¶ added in v0.3.0
type RoutingStrategy string
RoutingStrategy Which member (alias) or account (subscription provider) a request tries first; "busy" counts the requests started in the last 60 seconds, and ties go to declared order. `priority`: the first live member in order / the highest priority tier, rotating inside it. `fill-first`: the same as priority for an alias / one account at a time, priority high first, then oldest. `round-robin`: a rotation over the live members / accounts. `random`: uniform over the live members / accounts. `p2c`: two live members / accounts at random, the less busy one wins. `least-used`: the least busy live member / account. An alias without a strategy is `priority`; it is always set in an answer.
const ( FillFirst RoutingStrategy = "fill-first" LeastUsed RoutingStrategy = "least-used" P2c RoutingStrategy = "p2c" Priority RoutingStrategy = "priority" Random RoutingStrategy = "random" RoundRobin RoutingStrategy = "round-robin" )
Defines values for RoutingStrategy.
func (RoutingStrategy) Valid ¶ added in v0.3.0
func (e RoutingStrategy) Valid() bool
Valid indicates whether the value is a known member of the RoutingStrategy enum.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// ListAccounts List subscription accounts with quota, cooldown and models.
// (GET /api/accounts)
ListAccounts(w http.ResponseWriter, r *http.Request, params ListAccountsParams)
// ImportAccount Import an account from an existing OAuth credential.
// (POST /api/accounts/import)
ImportAccount(w http.ResponseWriter, r *http.Request)
// StartAccountLogin Start an OAuth login for a subscription provider.
// (POST /api/accounts/logins)
StartAccountLogin(w http.ResponseWriter, r *http.Request)
// CancelAccountLogin Cancel a login that has not finished.
// (DELETE /api/accounts/logins/{state})
CancelAccountLogin(w http.ResponseWriter, r *http.Request, state LoginState)
// GetAccountLogin Poll the status of a login.
// (GET /api/accounts/logins/{state})
GetAccountLogin(w http.ResponseWriter, r *http.Request, state LoginState)
// CompleteAccountLogin Complete a login with the redirect URL the user pasted from the browser.
// (POST /api/accounts/logins/{state}/complete)
CompleteAccountLogin(w http.ResponseWriter, r *http.Request, state LoginState)
// GetAccountPool Enabled subscription accounts that dropped out of the pool, per provider.
// (GET /api/accounts/pool)
GetAccountPool(w http.ResponseWriter, r *http.Request)
// ListAccountStrategies The routing strategy of every subscription provider's account pool.
// (GET /api/accounts/strategies)
ListAccountStrategies(w http.ResponseWriter, r *http.Request, params ListAccountStrategiesParams)
// SetAccountStrategy Set which account of a subscription provider serves a request.
// (PUT /api/accounts/strategies/{provider})
SetAccountStrategy(w http.ResponseWriter, r *http.Request, provider string)
// DeleteAccount Delete an account.
// (DELETE /api/accounts/{id})
DeleteAccount(w http.ResponseWriter, r *http.Request, id AccountId)
// UpdateAccount Enable or disable an account, or set its priority.
// (PATCH /api/accounts/{id})
UpdateAccount(w http.ResponseWriter, r *http.Request, id AccountId)
// ResetAccountCooldown Clear an account's cooldown so it serves requests again.
// (POST /api/accounts/{id}/reset-cooldown)
ResetAccountCooldown(w http.ResponseWriter, r *http.Request, id AccountId)
// ListAliases List aliases.
// (GET /api/aliases)
ListAliases(w http.ResponseWriter, r *http.Request, params ListAliasesParams)
// CreateAlias Create an alias.
// (POST /api/aliases)
CreateAlias(w http.ResponseWriter, r *http.Request)
// CompileAlias Compile an unsaved alias into its chain of targets; nothing is stored.
// (POST /api/aliases/compile)
CompileAlias(w http.ResponseWriter, r *http.Request)
// DeleteAlias Delete an alias.
// (DELETE /api/aliases/{name})
DeleteAlias(w http.ResponseWriter, r *http.Request, name AliasName)
// GetAlias Get an alias.
// (GET /api/aliases/{name})
GetAlias(w http.ResponseWriter, r *http.Request, name AliasName)
// UpdateAlias Replace an alias.
// (PUT /api/aliases/{name})
UpdateAlias(w http.ResponseWriter, r *http.Request, name AliasName)
// GetAliasChain Get the compiled chain of a stored alias, with cooling members marked.
// (GET /api/aliases/{name}/chain)
GetAliasChain(w http.ResponseWriter, r *http.Request, name AliasName)
// ListAudit List audited management actions, newest recorded first.
// (GET /api/audit)
ListAudit(w http.ResponseWriter, r *http.Request, params ListAuditParams)
// Login Sign in as the admin and receive a session cookie.
// (POST /api/auth/login)
Login(w http.ResponseWriter, r *http.Request)
// Logout End the current session.
// (POST /api/auth/logout)
Logout(w http.ResponseWriter, r *http.Request)
// GetSession Report how the caller is authenticated; 401 when it is not.
// (GET /api/auth/session)
GetSession(w http.ResponseWriter, r *http.Request)
// ApplyConfig Make the store match a `remora.yaml` document.
// (POST /api/config/apply)
ApplyConfig(w http.ResponseWriter, r *http.Request)
// ExportConfig Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
// (GET /api/config/export)
ExportConfig(w http.ResponseWriter, r *http.Request)
// PlanConfig Show the changes a `remora.yaml` document would make; nothing is changed.
// (POST /api/config/plan)
PlanConfig(w http.ResponseWriter, r *http.Request)
// ListCooling List the alias members that are cooling down.
// (GET /api/cooling)
ListCooling(w http.ResponseWriter, r *http.Request, params ListCoolingParams)
// GetHealth Report whether remora and its components are healthy.
// (GET /api/health)
GetHealth(w http.ResponseWriter, r *http.Request)
// ListKeys List client keys.
// (GET /api/keys)
ListKeys(w http.ResponseWriter, r *http.Request, params ListKeysParams)
// CreateKey Create a client key. The value is returned only here.
// (POST /api/keys)
CreateKey(w http.ResponseWriter, r *http.Request)
// DeleteKey Delete a client key.
// (DELETE /api/keys/{id})
DeleteKey(w http.ResponseWriter, r *http.Request, id KeyId)
// GetKey Get a client key.
// (GET /api/keys/{id})
GetKey(w http.ResponseWriter, r *http.Request, id KeyId)
// UpdateKey Rename a key, change its allowlist, or enable or disable it.
// (PATCH /api/keys/{id})
UpdateKey(w http.ResponseWriter, r *http.Request, id KeyId)
// GetKeyUsage Get the usage of one key over a time range.
// (GET /api/keys/{id}/usage)
GetKeyUsage(w http.ResponseWriter, r *http.Request, id KeyId, params GetKeyUsageParams)
// ListLogs List request logs, newest first.
// (GET /api/logs)
ListLogs(w http.ResponseWriter, r *http.Request, params ListLogsParams)
// GetLog Get one log entry with its bodies and fallback path.
// (GET /api/logs/{id})
GetLog(w http.ResponseWriter, r *http.Request, id string)
// ListProviders List providers.
// (GET /api/providers)
ListProviders(w http.ResponseWriter, r *http.Request, params ListProvidersParams)
// CreateProvider Create a provider.
// (POST /api/providers)
CreateProvider(w http.ResponseWriter, r *http.Request)
// DeleteProvider Delete a provider.
// (DELETE /api/providers/{name})
DeleteProvider(w http.ResponseWriter, r *http.Request, name ProviderName)
// GetProvider Get a provider.
// (GET /api/providers/{name})
GetProvider(w http.ResponseWriter, r *http.Request, name ProviderName)
// UpdateProvider Replace a provider. Keys sent without a value keep their stored secret.
// (PUT /api/providers/{name})
UpdateProvider(w http.ResponseWriter, r *http.Request, name ProviderName)
// GetProviderModels Get a provider's known models as provider/model references.
// (GET /api/providers/{name}/models)
GetProviderModels(w http.ResponseWriter, r *http.Request, name ProviderName)
// TestProvider Send a small request to the provider and report the result.
// (POST /api/providers/{name}/test)
TestProvider(w http.ResponseWriter, r *http.Request, name ProviderName)
// GetQuota List subscription account quotas, grouped by provider.
// (GET /api/quota)
GetQuota(w http.ResponseWriter, r *http.Request, params GetQuotaParams)
// RefreshQuota Queue quota checks of one account or of every enabled account of one provider.
// (POST /api/quota/refresh)
RefreshQuota(w http.ResponseWriter, r *http.Request)
// ChangePassword Change the admin password.
// (PUT /api/settings/password)
ChangePassword(w http.ResponseWriter, r *http.Request)
// ListApiTokens List API tokens.
// (GET /api/settings/tokens)
ListApiTokens(w http.ResponseWriter, r *http.Request, params ListApiTokensParams)
// CreateApiToken Create an API token. The value is returned only here.
// (POST /api/settings/tokens)
CreateApiToken(w http.ResponseWriter, r *http.Request)
// DeleteApiToken Delete an API token.
// (DELETE /api/settings/tokens/{id})
DeleteApiToken(w http.ResponseWriter, r *http.Request, id string)
// GetStats Get volume, errors, latency, tokens and cost over a time range.
// (GET /api/stats)
GetStats(w http.ResponseWriter, r *http.Request, params GetStatsParams)
// GetVersion Report the version of remora and of each engine it runs.
// (GET /api/system/version)
GetVersion(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) ApplyConfig ¶
func (siw *ServerInterfaceWrapper) ApplyConfig(w http.ResponseWriter, r *http.Request)
ApplyConfig operation middleware
func (*ServerInterfaceWrapper) CancelAccountLogin ¶
func (siw *ServerInterfaceWrapper) CancelAccountLogin(w http.ResponseWriter, r *http.Request)
CancelAccountLogin operation middleware
func (*ServerInterfaceWrapper) ChangePassword ¶
func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword operation middleware
func (*ServerInterfaceWrapper) CompileAlias ¶
func (siw *ServerInterfaceWrapper) CompileAlias(w http.ResponseWriter, r *http.Request)
CompileAlias operation middleware
func (*ServerInterfaceWrapper) CompleteAccountLogin ¶
func (siw *ServerInterfaceWrapper) CompleteAccountLogin(w http.ResponseWriter, r *http.Request)
CompleteAccountLogin operation middleware
func (*ServerInterfaceWrapper) CreateAlias ¶
func (siw *ServerInterfaceWrapper) CreateAlias(w http.ResponseWriter, r *http.Request)
CreateAlias operation middleware
func (*ServerInterfaceWrapper) CreateApiToken ¶
func (siw *ServerInterfaceWrapper) CreateApiToken(w http.ResponseWriter, r *http.Request)
CreateApiToken operation middleware
func (*ServerInterfaceWrapper) CreateKey ¶
func (siw *ServerInterfaceWrapper) CreateKey(w http.ResponseWriter, r *http.Request)
CreateKey operation middleware
func (*ServerInterfaceWrapper) CreateProvider ¶
func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request)
CreateProvider operation middleware
func (*ServerInterfaceWrapper) DeleteAccount ¶
func (siw *ServerInterfaceWrapper) DeleteAccount(w http.ResponseWriter, r *http.Request)
DeleteAccount operation middleware
func (*ServerInterfaceWrapper) DeleteAlias ¶
func (siw *ServerInterfaceWrapper) DeleteAlias(w http.ResponseWriter, r *http.Request)
DeleteAlias operation middleware
func (*ServerInterfaceWrapper) DeleteApiToken ¶
func (siw *ServerInterfaceWrapper) DeleteApiToken(w http.ResponseWriter, r *http.Request)
DeleteApiToken operation middleware
func (*ServerInterfaceWrapper) DeleteKey ¶
func (siw *ServerInterfaceWrapper) DeleteKey(w http.ResponseWriter, r *http.Request)
DeleteKey operation middleware
func (*ServerInterfaceWrapper) DeleteProvider ¶
func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request)
DeleteProvider operation middleware
func (*ServerInterfaceWrapper) ExportConfig ¶
func (siw *ServerInterfaceWrapper) ExportConfig(w http.ResponseWriter, r *http.Request)
ExportConfig operation middleware
func (*ServerInterfaceWrapper) GetAccountLogin ¶
func (siw *ServerInterfaceWrapper) GetAccountLogin(w http.ResponseWriter, r *http.Request)
GetAccountLogin operation middleware
func (*ServerInterfaceWrapper) GetAccountPool ¶ added in v0.2.1
func (siw *ServerInterfaceWrapper) GetAccountPool(w http.ResponseWriter, r *http.Request)
GetAccountPool operation middleware
func (*ServerInterfaceWrapper) GetAlias ¶
func (siw *ServerInterfaceWrapper) GetAlias(w http.ResponseWriter, r *http.Request)
GetAlias operation middleware
func (*ServerInterfaceWrapper) GetAliasChain ¶
func (siw *ServerInterfaceWrapper) GetAliasChain(w http.ResponseWriter, r *http.Request)
GetAliasChain operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetKey ¶
func (siw *ServerInterfaceWrapper) GetKey(w http.ResponseWriter, r *http.Request)
GetKey operation middleware
func (*ServerInterfaceWrapper) GetKeyUsage ¶
func (siw *ServerInterfaceWrapper) GetKeyUsage(w http.ResponseWriter, r *http.Request)
GetKeyUsage operation middleware
func (*ServerInterfaceWrapper) GetLog ¶
func (siw *ServerInterfaceWrapper) GetLog(w http.ResponseWriter, r *http.Request)
GetLog operation middleware
func (*ServerInterfaceWrapper) GetProvider ¶
func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request)
GetProvider operation middleware
func (*ServerInterfaceWrapper) GetProviderModels ¶ added in v0.7.0
func (siw *ServerInterfaceWrapper) GetProviderModels(w http.ResponseWriter, r *http.Request)
GetProviderModels operation middleware
func (*ServerInterfaceWrapper) GetQuota ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetQuota(w http.ResponseWriter, r *http.Request)
GetQuota operation middleware
func (*ServerInterfaceWrapper) GetSession ¶
func (siw *ServerInterfaceWrapper) GetSession(w http.ResponseWriter, r *http.Request)
GetSession operation middleware
func (*ServerInterfaceWrapper) GetStats ¶
func (siw *ServerInterfaceWrapper) GetStats(w http.ResponseWriter, r *http.Request)
GetStats operation middleware
func (*ServerInterfaceWrapper) GetVersion ¶
func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
GetVersion operation middleware
func (*ServerInterfaceWrapper) ImportAccount ¶
func (siw *ServerInterfaceWrapper) ImportAccount(w http.ResponseWriter, r *http.Request)
ImportAccount operation middleware
func (*ServerInterfaceWrapper) ListAccountStrategies ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListAccountStrategies(w http.ResponseWriter, r *http.Request)
ListAccountStrategies operation middleware
func (*ServerInterfaceWrapper) ListAccounts ¶
func (siw *ServerInterfaceWrapper) ListAccounts(w http.ResponseWriter, r *http.Request)
ListAccounts operation middleware
func (*ServerInterfaceWrapper) ListAliases ¶
func (siw *ServerInterfaceWrapper) ListAliases(w http.ResponseWriter, r *http.Request)
ListAliases operation middleware
func (*ServerInterfaceWrapper) ListApiTokens ¶
func (siw *ServerInterfaceWrapper) ListApiTokens(w http.ResponseWriter, r *http.Request)
ListApiTokens operation middleware
func (*ServerInterfaceWrapper) ListAudit ¶ added in v0.7.0
func (siw *ServerInterfaceWrapper) ListAudit(w http.ResponseWriter, r *http.Request)
ListAudit operation middleware
func (*ServerInterfaceWrapper) ListCooling ¶
func (siw *ServerInterfaceWrapper) ListCooling(w http.ResponseWriter, r *http.Request)
ListCooling operation middleware
func (*ServerInterfaceWrapper) ListKeys ¶
func (siw *ServerInterfaceWrapper) ListKeys(w http.ResponseWriter, r *http.Request)
ListKeys operation middleware
func (*ServerInterfaceWrapper) ListLogs ¶
func (siw *ServerInterfaceWrapper) ListLogs(w http.ResponseWriter, r *http.Request)
ListLogs operation middleware
func (*ServerInterfaceWrapper) ListProviders ¶
func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request)
ListProviders operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
Login operation middleware
func (*ServerInterfaceWrapper) Logout ¶
func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
Logout operation middleware
func (*ServerInterfaceWrapper) PlanConfig ¶
func (siw *ServerInterfaceWrapper) PlanConfig(w http.ResponseWriter, r *http.Request)
PlanConfig operation middleware
func (*ServerInterfaceWrapper) RefreshQuota ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) RefreshQuota(w http.ResponseWriter, r *http.Request)
RefreshQuota operation middleware
func (*ServerInterfaceWrapper) ResetAccountCooldown ¶
func (siw *ServerInterfaceWrapper) ResetAccountCooldown(w http.ResponseWriter, r *http.Request)
ResetAccountCooldown operation middleware
func (*ServerInterfaceWrapper) SetAccountStrategy ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) SetAccountStrategy(w http.ResponseWriter, r *http.Request)
SetAccountStrategy operation middleware
func (*ServerInterfaceWrapper) StartAccountLogin ¶
func (siw *ServerInterfaceWrapper) StartAccountLogin(w http.ResponseWriter, r *http.Request)
StartAccountLogin operation middleware
func (*ServerInterfaceWrapper) TestProvider ¶
func (siw *ServerInterfaceWrapper) TestProvider(w http.ResponseWriter, r *http.Request)
TestProvider operation middleware
func (*ServerInterfaceWrapper) UpdateAccount ¶
func (siw *ServerInterfaceWrapper) UpdateAccount(w http.ResponseWriter, r *http.Request)
UpdateAccount operation middleware
func (*ServerInterfaceWrapper) UpdateAlias ¶
func (siw *ServerInterfaceWrapper) UpdateAlias(w http.ResponseWriter, r *http.Request)
UpdateAlias operation middleware
func (*ServerInterfaceWrapper) UpdateKey ¶
func (siw *ServerInterfaceWrapper) UpdateKey(w http.ResponseWriter, r *http.Request)
UpdateKey operation middleware
func (*ServerInterfaceWrapper) UpdateProvider ¶
func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request)
UpdateProvider operation middleware
type Session ¶
type Session struct {
Authenticated bool `json:"authenticated"`
Via SessionVia `json:"via"`
}
Session defines model for Session.
type SessionVia ¶
type SessionVia string
SessionVia defines model for Session.Via.
const ( SessionViaSession SessionVia = "session" SessionViaToken SessionVia = "token" )
Defines values for SessionVia.
func (SessionVia) Valid ¶
func (e SessionVia) Valid() bool
Valid indicates whether the value is a known member of the SessionVia enum.
type SetAccountStrategy200JSONResponse ¶ added in v0.3.0
type SetAccountStrategy200JSONResponse AccountStrategy
func (SetAccountStrategy200JSONResponse) VisitSetAccountStrategyResponse ¶ added in v0.3.0
func (response SetAccountStrategy200JSONResponse) VisitSetAccountStrategyResponse(w http.ResponseWriter) error
type SetAccountStrategyJSONBody ¶ added in v0.3.0
type SetAccountStrategyJSONBody struct {
// Strategy Which member (alias) or account (subscription provider) a request tries first; "busy" counts the requests started in the last 60 seconds, and ties go to declared order. `priority`: the first live member in order / the highest priority tier, rotating inside it. `fill-first`: the same as priority for an alias / one account at a time, priority high first, then oldest. `round-robin`: a rotation over the live members / accounts. `random`: uniform over the live members / accounts. `p2c`: two live members / accounts at random, the less busy one wins. `least-used`: the least busy live member / account. An alias without a strategy is `priority`; it is always set in an answer.
Strategy RoutingStrategy `json:"strategy"`
}
SetAccountStrategyJSONBody defines body for SetAccountStrategy for application/json ContentType.
type SetAccountStrategyJSONRequestBody ¶ added in v0.3.0
type SetAccountStrategyJSONRequestBody SetAccountStrategyJSONBody
SetAccountStrategyJSONRequestBody defines body for SetAccountStrategy for application/json ContentType.
type SetAccountStrategyRequestObject ¶ added in v0.3.0
type SetAccountStrategyRequestObject struct {
Provider string `json:"provider"`
Body *SetAccountStrategyJSONRequestBody
}
type SetAccountStrategyResponse ¶ added in v0.3.0
type SetAccountStrategyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountStrategy
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseSetAccountStrategyResponse ¶ added in v0.3.0
func ParseSetAccountStrategyResponse(rsp *http.Response) (*SetAccountStrategyResponse, error)
ParseSetAccountStrategyResponse parses an HTTP response from a SetAccountStrategyWithResponse call
func (SetAccountStrategyResponse) ContentType ¶ added in v0.3.0
func (r SetAccountStrategyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetAccountStrategyResponse) GetBody ¶ added in v0.3.0
func (r SetAccountStrategyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetAccountStrategyResponse) GetJSON200 ¶ added in v0.3.0
func (r SetAccountStrategyResponse) GetJSON200() *AccountStrategy
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SetAccountStrategyResponse) GetJSONDefault ¶ added in v0.3.0
func (r SetAccountStrategyResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SetAccountStrategyResponse) Status ¶ added in v0.3.0
func (r SetAccountStrategyResponse) Status() string
Status returns HTTPResponse.Status
func (SetAccountStrategyResponse) StatusCode ¶ added in v0.3.0
func (r SetAccountStrategyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetAccountStrategyResponseObject ¶ added in v0.3.0
type SetAccountStrategyResponseObject interface {
VisitSetAccountStrategyResponse(w http.ResponseWriter) error
}
type SetAccountStrategydefaultJSONResponse ¶ added in v0.3.0
func (SetAccountStrategydefaultJSONResponse) VisitSetAccountStrategyResponse ¶ added in v0.3.0
func (response SetAccountStrategydefaultJSONResponse) VisitSetAccountStrategyResponse(w http.ResponseWriter) error
type StartAccountLogin201JSONResponse ¶
type StartAccountLogin201JSONResponse AccountLogin
func (StartAccountLogin201JSONResponse) VisitStartAccountLoginResponse ¶
func (response StartAccountLogin201JSONResponse) VisitStartAccountLoginResponse(w http.ResponseWriter) error
type StartAccountLoginJSONRequestBody ¶
type StartAccountLoginJSONRequestBody = AccountLoginStart
StartAccountLoginJSONRequestBody defines body for StartAccountLogin for application/json ContentType.
type StartAccountLoginRequestObject ¶
type StartAccountLoginRequestObject struct {
Body *StartAccountLoginJSONRequestBody
}
type StartAccountLoginResponse ¶
type StartAccountLoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AccountLogin
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseStartAccountLoginResponse ¶
func ParseStartAccountLoginResponse(rsp *http.Response) (*StartAccountLoginResponse, error)
ParseStartAccountLoginResponse parses an HTTP response from a StartAccountLoginWithResponse call
func (StartAccountLoginResponse) ContentType ¶
func (r StartAccountLoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartAccountLoginResponse) GetBody ¶
func (r StartAccountLoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StartAccountLoginResponse) GetJSON201 ¶
func (r StartAccountLoginResponse) GetJSON201() *AccountLogin
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (StartAccountLoginResponse) GetJSONDefault ¶
func (r StartAccountLoginResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (StartAccountLoginResponse) Status ¶
func (r StartAccountLoginResponse) Status() string
Status returns HTTPResponse.Status
func (StartAccountLoginResponse) StatusCode ¶
func (r StartAccountLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartAccountLoginResponseObject ¶
type StartAccountLoginResponseObject interface {
VisitStartAccountLoginResponse(w http.ResponseWriter) error
}
type StartAccountLogindefaultJSONResponse ¶
func (StartAccountLogindefaultJSONResponse) VisitStartAccountLoginResponse ¶
func (response StartAccountLogindefaultJSONResponse) VisitStartAccountLoginResponse(w http.ResponseWriter) error
type Stats ¶
type Stats struct {
From time.Time `json:"from"`
// Groups Empty unless `group_by` is set.
Groups []StatsGroup `json:"groups"`
Series []StatsPoint `json:"series"`
Summary StatsSummary `json:"summary"`
To time.Time `json:"to"`
}
Stats defines model for Stats.
type StatsGroup ¶
type StatsGroup struct {
// Label Display name for key groups.
Label *string `json:"label,omitempty"`
// Name Group identifier; for key groups, the key ID.
Name string `json:"name"`
Summary StatsSummary `json:"summary"`
}
StatsGroup defines model for StatsGroup.
type StatsPoint ¶
type StatsPoint struct {
CompletionTokens int `json:"completion_tokens"`
CostUsd float64 `json:"cost_usd"`
Errors int `json:"errors"`
// LatencyP50Ms Approximate histogram percentile of successful attempts in the bucket. Null when unavailable.
LatencyP50Ms *float64 `json:"latency_p50_ms"`
// LatencyP95Ms Approximate histogram percentile of successful attempts in the bucket. Null when unavailable.
LatencyP95Ms *float64 `json:"latency_p95_ms"`
PromptTokens int `json:"prompt_tokens"`
Requests int `json:"requests"`
// Time The start of the bucket.
Time time.Time `json:"time"`
TotalTokens int `json:"total_tokens"`
}
StatsPoint One time bucket of the series. The bucket size follows the range: a minute under 2 hours, 10 minutes under 24 hours, an hour under 3 days, then 8 hours, a day, 3 days, a week and 30 days. Requests and errors count every attempt of a fallback chain; tokens and cost cover every finished attempt.
type StatsSummary ¶
type StatsSummary struct {
CompletionTokens int `json:"completion_tokens"`
CostUsd float64 `json:"cost_usd"`
ErrorRate float64 `json:"error_rate"`
Errors int `json:"errors"`
// LatencyP50Ms Approximate histogram percentile of successful attempts in the range. Null when unavailable.
LatencyP50Ms *float64 `json:"latency_p50_ms"`
// LatencyP95Ms Approximate histogram percentile of successful attempts in the range. Null when unavailable.
LatencyP95Ms *float64 `json:"latency_p95_ms"`
PromptTokens int `json:"prompt_tokens"`
// Requests Log rows that finished, a fallback attempt counting as a request, as in `series` and the log list.
Requests int `json:"requests"`
TotalTokens int `json:"total_tokens"`
}
StatsSummary defines model for StatsSummary.
type StatsUnavailable ¶ added in v0.7.2
type StatsUnavailable = Error
StatsUnavailable defines model for StatsUnavailable.
type StatsUnavailableJSONResponse ¶ added in v0.7.2
type StatsUnavailableJSONResponse Error
type StatusFilter ¶
type StatusFilter string
StatusFilter defines model for StatusFilter.
const ( StatusFilterError StatusFilter = "error" StatusFilterSuccess StatusFilter = "success" )
Defines values for StatusFilter.
func (StatusFilter) Valid ¶
func (e StatusFilter) Valid() bool
Valid indicates whether the value is a known member of the StatusFilter enum.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)
StrictHandlerFunc and StrictMiddlewareFunc are type aliases rather than distinct named types, so middleware written against one generated package can be shared with every other generated package using the same framework.
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// ListAccounts List subscription accounts with quota, cooldown and models.
// (GET /api/accounts)
ListAccounts(ctx context.Context, request ListAccountsRequestObject) (ListAccountsResponseObject, error)
// ImportAccount Import an account from an existing OAuth credential.
// (POST /api/accounts/import)
ImportAccount(ctx context.Context, request ImportAccountRequestObject) (ImportAccountResponseObject, error)
// StartAccountLogin Start an OAuth login for a subscription provider.
// (POST /api/accounts/logins)
StartAccountLogin(ctx context.Context, request StartAccountLoginRequestObject) (StartAccountLoginResponseObject, error)
// CancelAccountLogin Cancel a login that has not finished.
// (DELETE /api/accounts/logins/{state})
CancelAccountLogin(ctx context.Context, request CancelAccountLoginRequestObject) (CancelAccountLoginResponseObject, error)
// GetAccountLogin Poll the status of a login.
// (GET /api/accounts/logins/{state})
GetAccountLogin(ctx context.Context, request GetAccountLoginRequestObject) (GetAccountLoginResponseObject, error)
// CompleteAccountLogin Complete a login with the redirect URL the user pasted from the browser.
// (POST /api/accounts/logins/{state}/complete)
CompleteAccountLogin(ctx context.Context, request CompleteAccountLoginRequestObject) (CompleteAccountLoginResponseObject, error)
// GetAccountPool Enabled subscription accounts that dropped out of the pool, per provider.
// (GET /api/accounts/pool)
GetAccountPool(ctx context.Context, request GetAccountPoolRequestObject) (GetAccountPoolResponseObject, error)
// ListAccountStrategies The routing strategy of every subscription provider's account pool.
// (GET /api/accounts/strategies)
ListAccountStrategies(ctx context.Context, request ListAccountStrategiesRequestObject) (ListAccountStrategiesResponseObject, error)
// SetAccountStrategy Set which account of a subscription provider serves a request.
// (PUT /api/accounts/strategies/{provider})
SetAccountStrategy(ctx context.Context, request SetAccountStrategyRequestObject) (SetAccountStrategyResponseObject, error)
// DeleteAccount Delete an account.
// (DELETE /api/accounts/{id})
DeleteAccount(ctx context.Context, request DeleteAccountRequestObject) (DeleteAccountResponseObject, error)
// UpdateAccount Enable or disable an account, or set its priority.
// (PATCH /api/accounts/{id})
UpdateAccount(ctx context.Context, request UpdateAccountRequestObject) (UpdateAccountResponseObject, error)
// ResetAccountCooldown Clear an account's cooldown so it serves requests again.
// (POST /api/accounts/{id}/reset-cooldown)
ResetAccountCooldown(ctx context.Context, request ResetAccountCooldownRequestObject) (ResetAccountCooldownResponseObject, error)
// ListAliases List aliases.
// (GET /api/aliases)
ListAliases(ctx context.Context, request ListAliasesRequestObject) (ListAliasesResponseObject, error)
// CreateAlias Create an alias.
// (POST /api/aliases)
CreateAlias(ctx context.Context, request CreateAliasRequestObject) (CreateAliasResponseObject, error)
// CompileAlias Compile an unsaved alias into its chain of targets; nothing is stored.
// (POST /api/aliases/compile)
CompileAlias(ctx context.Context, request CompileAliasRequestObject) (CompileAliasResponseObject, error)
// DeleteAlias Delete an alias.
// (DELETE /api/aliases/{name})
DeleteAlias(ctx context.Context, request DeleteAliasRequestObject) (DeleteAliasResponseObject, error)
// GetAlias Get an alias.
// (GET /api/aliases/{name})
GetAlias(ctx context.Context, request GetAliasRequestObject) (GetAliasResponseObject, error)
// UpdateAlias Replace an alias.
// (PUT /api/aliases/{name})
UpdateAlias(ctx context.Context, request UpdateAliasRequestObject) (UpdateAliasResponseObject, error)
// GetAliasChain Get the compiled chain of a stored alias, with cooling members marked.
// (GET /api/aliases/{name}/chain)
GetAliasChain(ctx context.Context, request GetAliasChainRequestObject) (GetAliasChainResponseObject, error)
// ListAudit List audited management actions, newest recorded first.
// (GET /api/audit)
ListAudit(ctx context.Context, request ListAuditRequestObject) (ListAuditResponseObject, error)
// Login Sign in as the admin and receive a session cookie.
// (POST /api/auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// Logout End the current session.
// (POST /api/auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// GetSession Report how the caller is authenticated; 401 when it is not.
// (GET /api/auth/session)
GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
// ApplyConfig Make the store match a `remora.yaml` document.
// (POST /api/config/apply)
ApplyConfig(ctx context.Context, request ApplyConfigRequestObject) (ApplyConfigResponseObject, error)
// ExportConfig Export the whole configuration as `remora.yaml`, with secrets as `env:NAME` references.
// (GET /api/config/export)
ExportConfig(ctx context.Context, request ExportConfigRequestObject) (ExportConfigResponseObject, error)
// PlanConfig Show the changes a `remora.yaml` document would make; nothing is changed.
// (POST /api/config/plan)
PlanConfig(ctx context.Context, request PlanConfigRequestObject) (PlanConfigResponseObject, error)
// ListCooling List the alias members that are cooling down.
// (GET /api/cooling)
ListCooling(ctx context.Context, request ListCoolingRequestObject) (ListCoolingResponseObject, error)
// GetHealth Report whether remora and its components are healthy.
// (GET /api/health)
GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
// ListKeys List client keys.
// (GET /api/keys)
ListKeys(ctx context.Context, request ListKeysRequestObject) (ListKeysResponseObject, error)
// CreateKey Create a client key. The value is returned only here.
// (POST /api/keys)
CreateKey(ctx context.Context, request CreateKeyRequestObject) (CreateKeyResponseObject, error)
// DeleteKey Delete a client key.
// (DELETE /api/keys/{id})
DeleteKey(ctx context.Context, request DeleteKeyRequestObject) (DeleteKeyResponseObject, error)
// GetKey Get a client key.
// (GET /api/keys/{id})
GetKey(ctx context.Context, request GetKeyRequestObject) (GetKeyResponseObject, error)
// UpdateKey Rename a key, change its allowlist, or enable or disable it.
// (PATCH /api/keys/{id})
UpdateKey(ctx context.Context, request UpdateKeyRequestObject) (UpdateKeyResponseObject, error)
// GetKeyUsage Get the usage of one key over a time range.
// (GET /api/keys/{id}/usage)
GetKeyUsage(ctx context.Context, request GetKeyUsageRequestObject) (GetKeyUsageResponseObject, error)
// ListLogs List request logs, newest first.
// (GET /api/logs)
ListLogs(ctx context.Context, request ListLogsRequestObject) (ListLogsResponseObject, error)
// GetLog Get one log entry with its bodies and fallback path.
// (GET /api/logs/{id})
GetLog(ctx context.Context, request GetLogRequestObject) (GetLogResponseObject, error)
// ListProviders List providers.
// (GET /api/providers)
ListProviders(ctx context.Context, request ListProvidersRequestObject) (ListProvidersResponseObject, error)
// CreateProvider Create a provider.
// (POST /api/providers)
CreateProvider(ctx context.Context, request CreateProviderRequestObject) (CreateProviderResponseObject, error)
// DeleteProvider Delete a provider.
// (DELETE /api/providers/{name})
DeleteProvider(ctx context.Context, request DeleteProviderRequestObject) (DeleteProviderResponseObject, error)
// GetProvider Get a provider.
// (GET /api/providers/{name})
GetProvider(ctx context.Context, request GetProviderRequestObject) (GetProviderResponseObject, error)
// UpdateProvider Replace a provider. Keys sent without a value keep their stored secret.
// (PUT /api/providers/{name})
UpdateProvider(ctx context.Context, request UpdateProviderRequestObject) (UpdateProviderResponseObject, error)
// GetProviderModels Get a provider's known models as provider/model references.
// (GET /api/providers/{name}/models)
GetProviderModels(ctx context.Context, request GetProviderModelsRequestObject) (GetProviderModelsResponseObject, error)
// TestProvider Send a small request to the provider and report the result.
// (POST /api/providers/{name}/test)
TestProvider(ctx context.Context, request TestProviderRequestObject) (TestProviderResponseObject, error)
// GetQuota List subscription account quotas, grouped by provider.
// (GET /api/quota)
GetQuota(ctx context.Context, request GetQuotaRequestObject) (GetQuotaResponseObject, error)
// RefreshQuota Queue quota checks of one account or of every enabled account of one provider.
// (POST /api/quota/refresh)
RefreshQuota(ctx context.Context, request RefreshQuotaRequestObject) (RefreshQuotaResponseObject, error)
// ChangePassword Change the admin password.
// (PUT /api/settings/password)
ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
// ListApiTokens List API tokens.
// (GET /api/settings/tokens)
ListApiTokens(ctx context.Context, request ListApiTokensRequestObject) (ListApiTokensResponseObject, error)
// CreateApiToken Create an API token. The value is returned only here.
// (POST /api/settings/tokens)
CreateApiToken(ctx context.Context, request CreateApiTokenRequestObject) (CreateApiTokenResponseObject, error)
// DeleteApiToken Delete an API token.
// (DELETE /api/settings/tokens/{id})
DeleteApiToken(ctx context.Context, request DeleteApiTokenRequestObject) (DeleteApiTokenResponseObject, error)
// GetStats Get volume, errors, latency, tokens and cost over a time range.
// (GET /api/stats)
GetStats(ctx context.Context, request GetStatsRequestObject) (GetStatsResponseObject, error)
// GetVersion Report the version of remora and of each engine it runs.
// (GET /api/system/version)
GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TestProvider200JSONResponse ¶
type TestProvider200JSONResponse ProviderTestResult
func (TestProvider200JSONResponse) VisitTestProviderResponse ¶
func (response TestProvider200JSONResponse) VisitTestProviderResponse(w http.ResponseWriter) error
type TestProviderRequestObject ¶
type TestProviderRequestObject struct {
Name ProviderName `json:"name"`
}
type TestProviderResponse ¶
type TestProviderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ProviderTestResult
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseTestProviderResponse ¶
func ParseTestProviderResponse(rsp *http.Response) (*TestProviderResponse, error)
ParseTestProviderResponse parses an HTTP response from a TestProviderWithResponse call
func (TestProviderResponse) ContentType ¶
func (r TestProviderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TestProviderResponse) GetBody ¶
func (r TestProviderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TestProviderResponse) GetJSON200 ¶
func (r TestProviderResponse) GetJSON200() *ProviderTestResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TestProviderResponse) GetJSONDefault ¶
func (r TestProviderResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (TestProviderResponse) Status ¶
func (r TestProviderResponse) Status() string
Status returns HTTPResponse.Status
func (TestProviderResponse) StatusCode ¶
func (r TestProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TestProviderResponseObject ¶
type TestProviderResponseObject interface {
VisitTestProviderResponse(w http.ResponseWriter) error
}
type TestProviderdefaultJSONResponse ¶
func (TestProviderdefaultJSONResponse) VisitTestProviderResponse ¶
func (response TestProviderdefaultJSONResponse) VisitTestProviderResponse(w http.ResponseWriter) error
type TokenUsage ¶
type TokenUsage struct {
Completion int `json:"completion"`
Prompt int `json:"prompt"`
Total int `json:"total"`
}
TokenUsage defines model for TokenUsage.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateAccount200JSONResponse ¶
type UpdateAccount200JSONResponse Account
func (UpdateAccount200JSONResponse) VisitUpdateAccountResponse ¶
func (response UpdateAccount200JSONResponse) VisitUpdateAccountResponse(w http.ResponseWriter) error
type UpdateAccountJSONRequestBody ¶
type UpdateAccountJSONRequestBody = AccountUpdate
UpdateAccountJSONRequestBody defines body for UpdateAccount for application/json ContentType.
type UpdateAccountRequestObject ¶
type UpdateAccountRequestObject struct {
Id AccountId `json:"id"`
Body *UpdateAccountJSONRequestBody
}
type UpdateAccountResponse ¶
type UpdateAccountResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Account
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseUpdateAccountResponse ¶
func ParseUpdateAccountResponse(rsp *http.Response) (*UpdateAccountResponse, error)
ParseUpdateAccountResponse parses an HTTP response from a UpdateAccountWithResponse call
func (UpdateAccountResponse) ContentType ¶
func (r UpdateAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAccountResponse) GetBody ¶
func (r UpdateAccountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAccountResponse) GetJSON200 ¶
func (r UpdateAccountResponse) GetJSON200() *Account
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateAccountResponse) GetJSONDefault ¶
func (r UpdateAccountResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateAccountResponse) Status ¶
func (r UpdateAccountResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAccountResponse) StatusCode ¶
func (r UpdateAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAccountResponseObject ¶
type UpdateAccountResponseObject interface {
VisitUpdateAccountResponse(w http.ResponseWriter) error
}
type UpdateAccountdefaultJSONResponse ¶
func (UpdateAccountdefaultJSONResponse) VisitUpdateAccountResponse ¶
func (response UpdateAccountdefaultJSONResponse) VisitUpdateAccountResponse(w http.ResponseWriter) error
type UpdateAlias200JSONResponse ¶
type UpdateAlias200JSONResponse Alias
func (UpdateAlias200JSONResponse) VisitUpdateAliasResponse ¶
func (response UpdateAlias200JSONResponse) VisitUpdateAliasResponse(w http.ResponseWriter) error
type UpdateAliasJSONRequestBody ¶
type UpdateAliasJSONRequestBody = Alias
UpdateAliasJSONRequestBody defines body for UpdateAlias for application/json ContentType.
type UpdateAliasRequestObject ¶
type UpdateAliasRequestObject struct {
Name AliasName `json:"name"`
Body *UpdateAliasJSONRequestBody
}
type UpdateAliasResponse ¶
type UpdateAliasResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Alias
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseUpdateAliasResponse ¶
func ParseUpdateAliasResponse(rsp *http.Response) (*UpdateAliasResponse, error)
ParseUpdateAliasResponse parses an HTTP response from a UpdateAliasWithResponse call
func (UpdateAliasResponse) ContentType ¶
func (r UpdateAliasResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAliasResponse) GetBody ¶
func (r UpdateAliasResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAliasResponse) GetJSON200 ¶
func (r UpdateAliasResponse) GetJSON200() *Alias
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateAliasResponse) GetJSONDefault ¶
func (r UpdateAliasResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateAliasResponse) Status ¶
func (r UpdateAliasResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAliasResponse) StatusCode ¶
func (r UpdateAliasResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAliasResponseObject ¶
type UpdateAliasResponseObject interface {
VisitUpdateAliasResponse(w http.ResponseWriter) error
}
type UpdateAliasdefaultJSONResponse ¶
func (UpdateAliasdefaultJSONResponse) VisitUpdateAliasResponse ¶
func (response UpdateAliasdefaultJSONResponse) VisitUpdateAliasResponse(w http.ResponseWriter) error
type UpdateKey200JSONResponse ¶
type UpdateKey200JSONResponse Key
func (UpdateKey200JSONResponse) VisitUpdateKeyResponse ¶
func (response UpdateKey200JSONResponse) VisitUpdateKeyResponse(w http.ResponseWriter) error
type UpdateKeyJSONRequestBody ¶
type UpdateKeyJSONRequestBody = KeyUpdate
UpdateKeyJSONRequestBody defines body for UpdateKey for application/json ContentType.
type UpdateKeyRequestObject ¶
type UpdateKeyRequestObject struct {
Id KeyId `json:"id"`
Body *UpdateKeyJSONRequestBody
}
type UpdateKeyResponse ¶
type UpdateKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Key
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseUpdateKeyResponse ¶
func ParseUpdateKeyResponse(rsp *http.Response) (*UpdateKeyResponse, error)
ParseUpdateKeyResponse parses an HTTP response from a UpdateKeyWithResponse call
func (UpdateKeyResponse) ContentType ¶
func (r UpdateKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateKeyResponse) GetBody ¶
func (r UpdateKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateKeyResponse) GetJSON200 ¶
func (r UpdateKeyResponse) GetJSON200() *Key
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateKeyResponse) GetJSONDefault ¶
func (r UpdateKeyResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateKeyResponse) Status ¶
func (r UpdateKeyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateKeyResponse) StatusCode ¶
func (r UpdateKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateKeyResponseObject ¶
type UpdateKeyResponseObject interface {
VisitUpdateKeyResponse(w http.ResponseWriter) error
}
type UpdateKeydefaultJSONResponse ¶
func (UpdateKeydefaultJSONResponse) VisitUpdateKeyResponse ¶
func (response UpdateKeydefaultJSONResponse) VisitUpdateKeyResponse(w http.ResponseWriter) error
type UpdateProvider200JSONResponse ¶
type UpdateProvider200JSONResponse Provider
func (UpdateProvider200JSONResponse) VisitUpdateProviderResponse ¶
func (response UpdateProvider200JSONResponse) VisitUpdateProviderResponse(w http.ResponseWriter) error
type UpdateProviderJSONRequestBody ¶
type UpdateProviderJSONRequestBody = Provider
UpdateProviderJSONRequestBody defines body for UpdateProvider for application/json ContentType.
type UpdateProviderRequestObject ¶
type UpdateProviderRequestObject struct {
Name ProviderName `json:"name"`
Body *UpdateProviderJSONRequestBody
}
type UpdateProviderResponse ¶
type UpdateProviderResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Provider
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Error
}
func ParseUpdateProviderResponse ¶
func ParseUpdateProviderResponse(rsp *http.Response) (*UpdateProviderResponse, error)
ParseUpdateProviderResponse parses an HTTP response from a UpdateProviderWithResponse call
func (UpdateProviderResponse) ContentType ¶
func (r UpdateProviderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateProviderResponse) GetBody ¶
func (r UpdateProviderResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateProviderResponse) GetJSON200 ¶
func (r UpdateProviderResponse) GetJSON200() *Provider
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateProviderResponse) GetJSONDefault ¶
func (r UpdateProviderResponse) GetJSONDefault() *Error
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateProviderResponse) Status ¶
func (r UpdateProviderResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateProviderResponse) StatusCode ¶
func (r UpdateProviderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateProviderResponseObject ¶
type UpdateProviderResponseObject interface {
VisitUpdateProviderResponse(w http.ResponseWriter) error
}
type UpdateProviderdefaultJSONResponse ¶
func (UpdateProviderdefaultJSONResponse) VisitUpdateProviderResponse ¶
func (response UpdateProviderdefaultJSONResponse) VisitUpdateProviderResponse(w http.ResponseWriter) error
type VersionResponse ¶
type VersionResponse struct {
Engines []EngineVersion `json:"engines"`
Remora string `json:"remora"`
}
VersionResponse defines model for VersionResponse.