Documentation
¶
Overview ¶
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- func GetRawSpec() (spec []byte, fault error)
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BulkFlags200JSONResponse
- type BulkFlags400JSONResponse
- type BulkFlags401JSONResponse
- type BulkFlags403JSONResponse
- type BulkFlags406JSONResponse
- type BulkFlags500JSONResponse
- type BulkFlagsParams
- type BulkFlagsParamsSortBy
- type BulkFlagsParamsSortDirection
- type BulkFlagsParamsState
- type BulkFlagsRequestObject
- type BulkFlagsResponseObject
- type CreateEnvironment201JSONResponse
- type CreateEnvironment400JSONResponse
- type CreateEnvironment401JSONResponse
- type CreateEnvironment403JSONResponse
- type CreateEnvironment409JSONResponse
- type CreateEnvironment500JSONResponse
- type CreateEnvironmentJSONBody
- type CreateEnvironmentJSONRequestBody
- type CreateEnvironmentRequestObject
- type CreateEnvironmentResponseObject
- type CreateFlag201JSONResponse
- type CreateFlag400JSONResponse
- type CreateFlag401JSONResponse
- type CreateFlag403JSONResponse
- type CreateFlag409JSONResponse
- type CreateFlag500JSONResponse
- type CreateFlagJSONRequestBody
- type CreateFlagRequestObject
- type CreateFlagResponseObject
- type DeleteEnvironment204Response
- type DeleteEnvironment401JSONResponse
- type DeleteEnvironment403JSONResponse
- type DeleteEnvironment406JSONResponse
- type DeleteEnvironment500JSONResponse
- type DeleteEnvironmentRequestObject
- type DeleteEnvironmentResponseObject
- type DeleteFlag204Response
- type DeleteFlag401JSONResponse
- type DeleteFlag403JSONResponse
- type DeleteFlag406JSONResponse
- type DeleteFlag500JSONResponse
- type DeleteFlagRequestObject
- type DeleteFlagResponseObject
- type Environment
- type EnvironmentFlag
- type EnvironmentName
- type ErrorBody
- type FilterByEnvironment
- type FilterByName
- type FilterByState
- type FilterByType
- type Flag
- type FlagId
- type FlagType
- type GetFlagsByEnvironment200JSONResponse
- type GetFlagsByEnvironment400JSONResponse
- type GetFlagsByEnvironment401JSONResponse
- type GetFlagsByEnvironment403JSONResponse
- type GetFlagsByEnvironment406JSONResponse
- type GetFlagsByEnvironment500JSONResponse
- type GetFlagsByEnvironmentRequestObject
- type GetFlagsByEnvironmentResponseObject
- type GorillaServerOptions
- type HealthCheck200Response
- type HealthCheck500JSONResponse
- type HealthCheckRequestObject
- type HealthCheckResponseObject
- type InvalidParamFormatError
- type ListEnvironments200JSONResponse
- type ListEnvironments400JSONResponse
- type ListEnvironments401JSONResponse
- type ListEnvironments403JSONResponse
- type ListEnvironments406JSONResponse
- type ListEnvironments500JSONResponse
- type ListEnvironmentsParams
- type ListEnvironmentsParamsSortBy
- type ListEnvironmentsParamsSortDirection
- type ListEnvironmentsParamsState
- type ListEnvironmentsRequestObject
- type ListEnvironmentsResponseObject
- type MiddlewareFunc
- type OptionsEnvironment200Response
- type OptionsEnvironmentName200Response
- type OptionsEnvironmentNameFlag200Response
- type OptionsEnvironmentNameFlagId200Response
- type OptionsEnvironmentNameFlagIdRequestObject
- type OptionsEnvironmentNameFlagIdResponseObject
- type OptionsEnvironmentNameFlagRequestObject
- type OptionsEnvironmentNameFlagResponseObject
- type OptionsEnvironmentNameRequestObject
- type OptionsEnvironmentNameResponseObject
- type OptionsEnvironmentRequestObject
- type OptionsEnvironmentResponseObject
- type OptionsFlag200Response
- type OptionsFlagId200Response
- type OptionsFlagIdRequestObject
- type OptionsFlagIdResponseObject
- type OptionsFlagRequestObject
- type OptionsFlagResponseObject
- type OptionsHealthCheck200Response
- type OptionsHealthCheckRequestObject
- type OptionsHealthCheckResponseObject
- type PaginationPageNumber
- type PaginationPageSize
- type PaginationSortBy
- type PaginationSortDirection
- type RequiredHeaderError
- type RequiredParamError
- type Revert
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) BulkFlags(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateEnvironment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetFlagsByEnvironment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) HealthCheck(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListEnvironments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsEnvironment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsEnvironmentName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsEnvironmentNameFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsEnvironmentNameFlagId(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsFlagId(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OptionsHealthCheck(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UICreateSingleFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIFindBulkFlags(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIFindSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIKillSingleFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIKillSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIOptionsCreateSingleFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIOptionsFindBulkFlags(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIOptionsPage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIOptionsSingleFlag(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIOptionsSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIPage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UIUpdateSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateEnvironmentFlagValue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateFlag(w http.ResponseWriter, r *http.Request)
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UICreateSingleFlag200TexthtmlResponse
- type UICreateSingleFlag400JSONResponse
- type UICreateSingleFlag401TexthtmlResponse
- type UICreateSingleFlag403TexthtmlResponse
- type UICreateSingleFlag500TexthtmlResponse
- type UICreateSingleFlagRequestObject
- type UICreateSingleFlagResponseObject
- type UIFindBulkFlags200TexthtmlResponse
- type UIFindBulkFlags400JSONResponse
- type UIFindBulkFlags401TexthtmlResponse
- type UIFindBulkFlags403TexthtmlResponse
- type UIFindBulkFlags406TexthtmlResponse
- type UIFindBulkFlags500TexthtmlResponse
- type UIFindBulkFlagsParams
- type UIFindBulkFlagsParamsSortBy
- type UIFindBulkFlagsParamsSortDirection
- type UIFindBulkFlagsParamsState
- type UIFindBulkFlagsRequestObject
- type UIFindBulkFlagsResponseObject
- type UIFindSingleFlagEnvValue200TexthtmlResponse
- type UIFindSingleFlagEnvValue400JSONResponse
- type UIFindSingleFlagEnvValue401TexthtmlResponse
- type UIFindSingleFlagEnvValue403TexthtmlResponse
- type UIFindSingleFlagEnvValue406TexthtmlResponse
- type UIFindSingleFlagEnvValue500TexthtmlResponse
- type UIFindSingleFlagEnvValueParams
- type UIFindSingleFlagEnvValueRequestObject
- type UIFindSingleFlagEnvValueResponseObject
- type UIKillSingleFlag200TexthtmlResponse
- type UIKillSingleFlag400JSONResponse
- type UIKillSingleFlag401TexthtmlResponse
- type UIKillSingleFlag403TexthtmlResponse
- type UIKillSingleFlag406TexthtmlResponse
- type UIKillSingleFlag500TexthtmlResponse
- type UIKillSingleFlagEnvValue200TexthtmlResponse
- type UIKillSingleFlagEnvValue400JSONResponse
- type UIKillSingleFlagEnvValue401TexthtmlResponse
- type UIKillSingleFlagEnvValue403TexthtmlResponse
- type UIKillSingleFlagEnvValue406TexthtmlResponse
- type UIKillSingleFlagEnvValue500TexthtmlResponse
- type UIKillSingleFlagEnvValueRequestObject
- type UIKillSingleFlagEnvValueResponseObject
- type UIKillSingleFlagRequestObject
- type UIKillSingleFlagResponseObject
- type UIOptionsCreateSingleFlag200Response
- type UIOptionsCreateSingleFlagRequestObject
- type UIOptionsCreateSingleFlagResponseObject
- type UIOptionsFindBulkFlags200Response
- type UIOptionsFindBulkFlagsRequestObject
- type UIOptionsFindBulkFlagsResponseObject
- type UIOptionsPage200Response
- type UIOptionsPageRequestObject
- type UIOptionsPageResponseObject
- type UIOptionsSingleFlag200Response
- type UIOptionsSingleFlagEnvValue200Response
- type UIOptionsSingleFlagEnvValueRequestObject
- type UIOptionsSingleFlagEnvValueResponseObject
- type UIOptionsSingleFlagRequestObject
- type UIOptionsSingleFlagResponseObject
- type UIPage200TexthtmlResponse
- type UIPage400JSONResponse
- type UIPage401TexthtmlResponse
- type UIPage403TexthtmlResponse
- type UIPage406TexthtmlResponse
- type UIPage500TexthtmlResponse
- type UIPageRequestObject
- type UIPageResponseObject
- type UIUpdateSingleFlagEnvValue200TexthtmlResponse
- type UIUpdateSingleFlagEnvValue400JSONResponse
- type UIUpdateSingleFlagEnvValue401TexthtmlResponse
- type UIUpdateSingleFlagEnvValue403TexthtmlResponse
- type UIUpdateSingleFlagEnvValue406TexthtmlResponse
- type UIUpdateSingleFlagEnvValue500TexthtmlResponse
- type UIUpdateSingleFlagEnvValueRequestObject
- type UIUpdateSingleFlagEnvValueResponseObject
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateEnvironmentFlagValue200JSONResponse
- type UpdateEnvironmentFlagValue400JSONResponse
- type UpdateEnvironmentFlagValue401JSONResponse
- type UpdateEnvironmentFlagValue403JSONResponse
- type UpdateEnvironmentFlagValue406JSONResponse
- type UpdateEnvironmentFlagValue500JSONResponse
- type UpdateEnvironmentFlagValueJSONRequestBody
- type UpdateEnvironmentFlagValueRequestObject
- type UpdateEnvironmentFlagValueResponseObject
- type UpdateFlag200JSONResponse
- type UpdateFlag400JSONResponse
- type UpdateFlag401JSONResponse
- type UpdateFlag403JSONResponse
- type UpdateFlag406JSONResponse
- type UpdateFlag500JSONResponse
- type UpdateFlagJSONRequestBody
- type UpdateFlagRequestObject
- type UpdateFlagResponseObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRawSpec ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type BulkFlags200JSONResponse ¶
type BulkFlags200JSONResponse []Flag
func (BulkFlags200JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags200JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlags400JSONResponse ¶
type BulkFlags400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (BulkFlags400JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags400JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlags401JSONResponse ¶
type BulkFlags401JSONResponse ErrorBody
func (BulkFlags401JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags401JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlags403JSONResponse ¶
type BulkFlags403JSONResponse ErrorBody
func (BulkFlags403JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags403JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlags406JSONResponse ¶
type BulkFlags406JSONResponse ErrorBody
func (BulkFlags406JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags406JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlags500JSONResponse ¶
type BulkFlags500JSONResponse ErrorBody
func (BulkFlags500JSONResponse) VisitBulkFlagsResponse ¶
func (response BulkFlags500JSONResponse) VisitBulkFlagsResponse(w http.ResponseWriter) error
type BulkFlagsParams ¶
type BulkFlagsParams struct {
// Page Page number for pagination. Defaults to 1 if not provided. Must be a positive integer.
Page *PaginationPageNumber `form:"page,omitempty" json:"page,omitempty"`
// Size Number of items per page for pagination. Valid values range from 1-1000. Defaults to 100 if not provided.
Size *PaginationPageSize `form:"size,omitempty" json:"size,omitempty"`
// SortBy Sort by field for the pagination. If not provided, defaults to 'name'.
SortBy *BulkFlagsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
// SortDirection Sort direction for the pagination. If not provided, defaults to 'asc'.
SortDirection *BulkFlagsParamsSortDirection `form:"sort_direction,omitempty" json:"sort_direction,omitempty"`
// Name Filter records by with the provided string in the name. If not provided, no name filtering is applied.
Name *FilterByName `form:"name,omitempty" json:"name,omitempty"`
// Type Filter records by type. If not provided, no type filtering is applied.
Type *FilterByType `form:"type,omitempty" json:"type,omitempty"`
// Environment Filter records by environment name. If not provided, no environment filtering is applied.
Environment *FilterByEnvironment `form:"environment,omitempty" json:"environment,omitempty"`
// State Filter records by state. 'active' for non-deleted records, 'deleted' for soft-deleted records, 'all' for both. Defaults to 'active'
State *BulkFlagsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
BulkFlagsParams defines parameters for BulkFlags.
type BulkFlagsParamsSortBy ¶
type BulkFlagsParamsSortBy string
BulkFlagsParamsSortBy defines parameters for BulkFlags.
const ( BulkFlagsParamsSortByCreatedAt BulkFlagsParamsSortBy = "created_at" BulkFlagsParamsSortByName BulkFlagsParamsSortBy = "name" BulkFlagsParamsSortByType BulkFlagsParamsSortBy = "type" BulkFlagsParamsSortByUpdatedAt BulkFlagsParamsSortBy = "updated_at" )
Defines values for BulkFlagsParamsSortBy.
type BulkFlagsParamsSortDirection ¶
type BulkFlagsParamsSortDirection string
BulkFlagsParamsSortDirection defines parameters for BulkFlags.
const ( BulkFlagsParamsSortDirectionAsc BulkFlagsParamsSortDirection = "asc" BulkFlagsParamsSortDirectionDesc BulkFlagsParamsSortDirection = "desc" )
Defines values for BulkFlagsParamsSortDirection.
type BulkFlagsParamsState ¶
type BulkFlagsParamsState string
BulkFlagsParamsState defines parameters for BulkFlags.
const ( BulkFlagsParamsStateActive BulkFlagsParamsState = "active" BulkFlagsParamsStateAll BulkFlagsParamsState = "all" BulkFlagsParamsStateDeleted BulkFlagsParamsState = "deleted" )
Defines values for BulkFlagsParamsState.
type BulkFlagsRequestObject ¶
type BulkFlagsRequestObject struct {
Params BulkFlagsParams
}
type BulkFlagsResponseObject ¶
type BulkFlagsResponseObject interface {
VisitBulkFlagsResponse(w http.ResponseWriter) error
}
type CreateEnvironment201JSONResponse ¶
type CreateEnvironment201JSONResponse Environment
func (CreateEnvironment201JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment201JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironment400JSONResponse ¶
type CreateEnvironment400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (CreateEnvironment400JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment400JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironment401JSONResponse ¶
type CreateEnvironment401JSONResponse ErrorBody
func (CreateEnvironment401JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment401JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironment403JSONResponse ¶
type CreateEnvironment403JSONResponse ErrorBody
func (CreateEnvironment403JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment403JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironment409JSONResponse ¶
type CreateEnvironment409JSONResponse ErrorBody
func (CreateEnvironment409JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment409JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironment500JSONResponse ¶
type CreateEnvironment500JSONResponse ErrorBody
func (CreateEnvironment500JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment500JSONResponse) VisitCreateEnvironmentResponse(w http.ResponseWriter) error
type CreateEnvironmentJSONBody ¶
type CreateEnvironmentJSONBody struct {
// Name The name of the environment
Name string `json:"name"`
}
CreateEnvironmentJSONBody defines parameters for CreateEnvironment.
type CreateEnvironmentJSONRequestBody ¶
type CreateEnvironmentJSONRequestBody CreateEnvironmentJSONBody
CreateEnvironmentJSONRequestBody defines body for CreateEnvironment for application/json ContentType.
type CreateEnvironmentRequestObject ¶
type CreateEnvironmentRequestObject struct {
Body *CreateEnvironmentJSONRequestBody
}
type CreateEnvironmentResponseObject ¶
type CreateEnvironmentResponseObject interface {
VisitCreateEnvironmentResponse(w http.ResponseWriter) error
}
type CreateFlag201JSONResponse ¶
type CreateFlag201JSONResponse Flag
func (CreateFlag201JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag201JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlag400JSONResponse ¶
type CreateFlag400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (CreateFlag400JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag400JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlag401JSONResponse ¶
type CreateFlag401JSONResponse ErrorBody
func (CreateFlag401JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag401JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlag403JSONResponse ¶
type CreateFlag403JSONResponse ErrorBody
func (CreateFlag403JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag403JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlag409JSONResponse ¶
type CreateFlag409JSONResponse ErrorBody
func (CreateFlag409JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag409JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlag500JSONResponse ¶
type CreateFlag500JSONResponse ErrorBody
func (CreateFlag500JSONResponse) VisitCreateFlagResponse ¶
func (response CreateFlag500JSONResponse) VisitCreateFlagResponse(w http.ResponseWriter) error
type CreateFlagJSONRequestBody ¶
type CreateFlagJSONRequestBody = Flag
CreateFlagJSONRequestBody defines body for CreateFlag for application/json ContentType.
type CreateFlagRequestObject ¶
type CreateFlagRequestObject struct {
Body *CreateFlagJSONRequestBody
}
type CreateFlagResponseObject ¶
type CreateFlagResponseObject interface {
VisitCreateFlagResponse(w http.ResponseWriter) error
}
type DeleteEnvironment204Response ¶
type DeleteEnvironment204Response struct {
}
func (DeleteEnvironment204Response) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment204Response) VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
type DeleteEnvironment401JSONResponse ¶
type DeleteEnvironment401JSONResponse ErrorBody
func (DeleteEnvironment401JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment401JSONResponse) VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
type DeleteEnvironment403JSONResponse ¶
type DeleteEnvironment403JSONResponse ErrorBody
func (DeleteEnvironment403JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment403JSONResponse) VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
type DeleteEnvironment406JSONResponse ¶
type DeleteEnvironment406JSONResponse ErrorBody
func (DeleteEnvironment406JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment406JSONResponse) VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
type DeleteEnvironment500JSONResponse ¶
type DeleteEnvironment500JSONResponse ErrorBody
func (DeleteEnvironment500JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment500JSONResponse) VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
type DeleteEnvironmentRequestObject ¶
type DeleteEnvironmentRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
}
type DeleteEnvironmentResponseObject ¶
type DeleteEnvironmentResponseObject interface {
VisitDeleteEnvironmentResponse(w http.ResponseWriter) error
}
type DeleteFlag204Response ¶
type DeleteFlag204Response struct {
}
func (DeleteFlag204Response) VisitDeleteFlagResponse ¶
func (response DeleteFlag204Response) VisitDeleteFlagResponse(w http.ResponseWriter) error
type DeleteFlag401JSONResponse ¶
type DeleteFlag401JSONResponse ErrorBody
func (DeleteFlag401JSONResponse) VisitDeleteFlagResponse ¶
func (response DeleteFlag401JSONResponse) VisitDeleteFlagResponse(w http.ResponseWriter) error
type DeleteFlag403JSONResponse ¶
type DeleteFlag403JSONResponse ErrorBody
func (DeleteFlag403JSONResponse) VisitDeleteFlagResponse ¶
func (response DeleteFlag403JSONResponse) VisitDeleteFlagResponse(w http.ResponseWriter) error
type DeleteFlag406JSONResponse ¶
type DeleteFlag406JSONResponse ErrorBody
func (DeleteFlag406JSONResponse) VisitDeleteFlagResponse ¶
func (response DeleteFlag406JSONResponse) VisitDeleteFlagResponse(w http.ResponseWriter) error
type DeleteFlag500JSONResponse ¶
type DeleteFlag500JSONResponse ErrorBody
func (DeleteFlag500JSONResponse) VisitDeleteFlagResponse ¶
func (response DeleteFlag500JSONResponse) VisitDeleteFlagResponse(w http.ResponseWriter) error
type DeleteFlagRequestObject ¶
type DeleteFlagRequestObject struct {
FlagId FlagId `json:"flag_id"`
}
type DeleteFlagResponseObject ¶
type DeleteFlagResponseObject interface {
VisitDeleteFlagResponse(w http.ResponseWriter) error
}
type Environment ¶
type Environment struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
DeletedAt *time.Time `json:"deleted_at"`
Flags []Flag `json:"flags"`
Id *int64 `json:"id,omitempty"`
Name string `json:"name"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
Environment defines model for environment.
type EnvironmentFlag ¶
type EnvironmentFlag struct {
Name string `json:"name"`
Type FlagType `json:"type"`
Value string `json:"value"`
}
EnvironmentFlag defines model for environment_flag.
type EnvironmentName ¶
type EnvironmentName = string
EnvironmentName defines model for environment_name.
type ErrorBody ¶
type ErrorBody struct {
// Error Error message describing the issue
Error string `json:"error"`
ErrorCode int `json:"error_code"`
}
ErrorBody defines model for error_body.
type FilterByEnvironment ¶
type FilterByEnvironment = string
FilterByEnvironment defines model for filter_by_environment.
type FilterByState ¶
type FilterByState string
FilterByState defines model for filter_by_state.
const ( FilterByStateActive FilterByState = "active" FilterByStateAll FilterByState = "all" FilterByStateDeleted FilterByState = "deleted" )
Defines values for FilterByState.
type Flag ¶
type Flag struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
DefaultValue string `json:"default_value"`
DeletedAt *time.Time `json:"deleted_at"`
Environments *[]struct {
EnvironmentName string `json:"environment_name"`
FlagValue string `json:"flag_value"`
} `json:"environments,omitempty"`
Id *int64 `json:"id,omitempty"`
Name string `json:"name"`
Type FlagType `json:"type"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
Flag defines model for flag.
type GetFlagsByEnvironment200JSONResponse ¶
type GetFlagsByEnvironment200JSONResponse []EnvironmentFlag
func (GetFlagsByEnvironment200JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment200JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironment400JSONResponse ¶
type GetFlagsByEnvironment400JSONResponse ErrorBody
func (GetFlagsByEnvironment400JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment400JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironment401JSONResponse ¶
type GetFlagsByEnvironment401JSONResponse ErrorBody
func (GetFlagsByEnvironment401JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment401JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironment403JSONResponse ¶
type GetFlagsByEnvironment403JSONResponse ErrorBody
func (GetFlagsByEnvironment403JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment403JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironment406JSONResponse ¶
type GetFlagsByEnvironment406JSONResponse ErrorBody
func (GetFlagsByEnvironment406JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment406JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironment500JSONResponse ¶
type GetFlagsByEnvironment500JSONResponse ErrorBody
func (GetFlagsByEnvironment500JSONResponse) VisitGetFlagsByEnvironmentResponse ¶
func (response GetFlagsByEnvironment500JSONResponse) VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
type GetFlagsByEnvironmentRequestObject ¶
type GetFlagsByEnvironmentRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
}
type GetFlagsByEnvironmentResponseObject ¶
type GetFlagsByEnvironmentResponseObject interface {
VisitGetFlagsByEnvironmentResponse(w http.ResponseWriter) error
}
type GorillaServerOptions ¶
type GorillaServerOptions struct {
BaseURL string
BaseRouter *mux.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type HealthCheck200Response ¶
type HealthCheck200Response struct {
}
func (HealthCheck200Response) VisitHealthCheckResponse ¶
func (response HealthCheck200Response) VisitHealthCheckResponse(w http.ResponseWriter) error
type HealthCheck500JSONResponse ¶
type HealthCheck500JSONResponse ErrorBody
func (HealthCheck500JSONResponse) VisitHealthCheckResponse ¶
func (response HealthCheck500JSONResponse) VisitHealthCheckResponse(w http.ResponseWriter) error
type HealthCheckRequestObject ¶
type HealthCheckRequestObject struct {
}
type HealthCheckResponseObject ¶
type HealthCheckResponseObject interface {
VisitHealthCheckResponse(w http.ResponseWriter) error
}
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListEnvironments200JSONResponse ¶
type ListEnvironments200JSONResponse []Flag
func (ListEnvironments200JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments200JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironments400JSONResponse ¶
type ListEnvironments400JSONResponse ErrorBody
func (ListEnvironments400JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments400JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironments401JSONResponse ¶
type ListEnvironments401JSONResponse ErrorBody
func (ListEnvironments401JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments401JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironments403JSONResponse ¶
type ListEnvironments403JSONResponse ErrorBody
func (ListEnvironments403JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments403JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironments406JSONResponse ¶
type ListEnvironments406JSONResponse ErrorBody
func (ListEnvironments406JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments406JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironments500JSONResponse ¶
type ListEnvironments500JSONResponse ErrorBody
func (ListEnvironments500JSONResponse) VisitListEnvironmentsResponse ¶
func (response ListEnvironments500JSONResponse) VisitListEnvironmentsResponse(w http.ResponseWriter) error
type ListEnvironmentsParams ¶
type ListEnvironmentsParams struct {
// Page Page number for pagination. Defaults to 1 if not provided. Must be a positive integer.
Page *PaginationPageNumber `form:"page,omitempty" json:"page,omitempty"`
// Size Number of items per page for pagination. Valid values range from 1-1000. Defaults to 100 if not provided.
Size *PaginationPageSize `form:"size,omitempty" json:"size,omitempty"`
// SortBy Sort by field for the pagination. If not provided, defaults to 'name'.
SortBy *ListEnvironmentsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
// SortDirection Sort direction for the pagination. If not provided, defaults to 'asc'.
SortDirection *ListEnvironmentsParamsSortDirection `form:"sort_direction,omitempty" json:"sort_direction,omitempty"`
// Name Filter records by with the provided string in the name. If not provided, no name filtering is applied.
Name *FilterByName `form:"name,omitempty" json:"name,omitempty"`
// Type Filter records by type. If not provided, no type filtering is applied.
Type *FilterByType `form:"type,omitempty" json:"type,omitempty"`
// State Filter records by state. 'active' for non-deleted records, 'deleted' for soft-deleted records, 'all' for both. Defaults to 'active'
State *ListEnvironmentsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
ListEnvironmentsParams defines parameters for ListEnvironments.
type ListEnvironmentsParamsSortBy ¶
type ListEnvironmentsParamsSortBy string
ListEnvironmentsParamsSortBy defines parameters for ListEnvironments.
const ( ListEnvironmentsParamsSortByCreatedAt ListEnvironmentsParamsSortBy = "created_at" ListEnvironmentsParamsSortByName ListEnvironmentsParamsSortBy = "name" ListEnvironmentsParamsSortByType ListEnvironmentsParamsSortBy = "type" ListEnvironmentsParamsSortByUpdatedAt ListEnvironmentsParamsSortBy = "updated_at" )
Defines values for ListEnvironmentsParamsSortBy.
type ListEnvironmentsParamsSortDirection ¶
type ListEnvironmentsParamsSortDirection string
ListEnvironmentsParamsSortDirection defines parameters for ListEnvironments.
const ( ListEnvironmentsParamsSortDirectionAsc ListEnvironmentsParamsSortDirection = "asc" ListEnvironmentsParamsSortDirectionDesc ListEnvironmentsParamsSortDirection = "desc" )
Defines values for ListEnvironmentsParamsSortDirection.
type ListEnvironmentsParamsState ¶
type ListEnvironmentsParamsState string
ListEnvironmentsParamsState defines parameters for ListEnvironments.
const ( ListEnvironmentsParamsStateActive ListEnvironmentsParamsState = "active" ListEnvironmentsParamsStateAll ListEnvironmentsParamsState = "all" ListEnvironmentsParamsStateDeleted ListEnvironmentsParamsState = "deleted" )
Defines values for ListEnvironmentsParamsState.
type ListEnvironmentsRequestObject ¶
type ListEnvironmentsRequestObject struct {
Params ListEnvironmentsParams
}
type ListEnvironmentsResponseObject ¶
type ListEnvironmentsResponseObject interface {
VisitListEnvironmentsResponse(w http.ResponseWriter) error
}
type OptionsEnvironment200Response ¶
type OptionsEnvironment200Response struct {
}
func (OptionsEnvironment200Response) VisitOptionsEnvironmentResponse ¶
func (response OptionsEnvironment200Response) VisitOptionsEnvironmentResponse(w http.ResponseWriter) error
type OptionsEnvironmentName200Response ¶
type OptionsEnvironmentName200Response struct {
}
func (OptionsEnvironmentName200Response) VisitOptionsEnvironmentNameResponse ¶
func (response OptionsEnvironmentName200Response) VisitOptionsEnvironmentNameResponse(w http.ResponseWriter) error
type OptionsEnvironmentNameFlag200Response ¶
type OptionsEnvironmentNameFlag200Response struct {
}
func (OptionsEnvironmentNameFlag200Response) VisitOptionsEnvironmentNameFlagResponse ¶
func (response OptionsEnvironmentNameFlag200Response) VisitOptionsEnvironmentNameFlagResponse(w http.ResponseWriter) error
type OptionsEnvironmentNameFlagId200Response ¶
type OptionsEnvironmentNameFlagId200Response struct {
}
func (OptionsEnvironmentNameFlagId200Response) VisitOptionsEnvironmentNameFlagIdResponse ¶
func (response OptionsEnvironmentNameFlagId200Response) VisitOptionsEnvironmentNameFlagIdResponse(w http.ResponseWriter) error
type OptionsEnvironmentNameFlagIdRequestObject ¶
type OptionsEnvironmentNameFlagIdRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
FlagId FlagId `json:"flag_id"`
}
type OptionsEnvironmentNameFlagIdResponseObject ¶
type OptionsEnvironmentNameFlagIdResponseObject interface {
VisitOptionsEnvironmentNameFlagIdResponse(w http.ResponseWriter) error
}
type OptionsEnvironmentNameFlagRequestObject ¶
type OptionsEnvironmentNameFlagRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
}
type OptionsEnvironmentNameFlagResponseObject ¶
type OptionsEnvironmentNameFlagResponseObject interface {
VisitOptionsEnvironmentNameFlagResponse(w http.ResponseWriter) error
}
type OptionsEnvironmentNameRequestObject ¶
type OptionsEnvironmentNameRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
}
type OptionsEnvironmentNameResponseObject ¶
type OptionsEnvironmentNameResponseObject interface {
VisitOptionsEnvironmentNameResponse(w http.ResponseWriter) error
}
type OptionsEnvironmentRequestObject ¶
type OptionsEnvironmentRequestObject struct {
}
type OptionsEnvironmentResponseObject ¶
type OptionsEnvironmentResponseObject interface {
VisitOptionsEnvironmentResponse(w http.ResponseWriter) error
}
type OptionsFlag200Response ¶
type OptionsFlag200Response struct {
}
func (OptionsFlag200Response) VisitOptionsFlagResponse ¶
func (response OptionsFlag200Response) VisitOptionsFlagResponse(w http.ResponseWriter) error
type OptionsFlagId200Response ¶
type OptionsFlagId200Response struct {
}
func (OptionsFlagId200Response) VisitOptionsFlagIdResponse ¶
func (response OptionsFlagId200Response) VisitOptionsFlagIdResponse(w http.ResponseWriter) error
type OptionsFlagIdRequestObject ¶
type OptionsFlagIdRequestObject struct {
FlagId FlagId `json:"flag_id"`
}
type OptionsFlagIdResponseObject ¶
type OptionsFlagIdResponseObject interface {
VisitOptionsFlagIdResponse(w http.ResponseWriter) error
}
type OptionsFlagRequestObject ¶
type OptionsFlagRequestObject struct {
}
type OptionsFlagResponseObject ¶
type OptionsFlagResponseObject interface {
VisitOptionsFlagResponse(w http.ResponseWriter) error
}
type OptionsHealthCheck200Response ¶
type OptionsHealthCheck200Response struct {
}
func (OptionsHealthCheck200Response) VisitOptionsHealthCheckResponse ¶
func (response OptionsHealthCheck200Response) VisitOptionsHealthCheckResponse(w http.ResponseWriter) error
type OptionsHealthCheckRequestObject ¶
type OptionsHealthCheckRequestObject struct {
}
type OptionsHealthCheckResponseObject ¶
type OptionsHealthCheckResponseObject interface {
VisitOptionsHealthCheckResponse(w http.ResponseWriter) error
}
type PaginationPageNumber ¶
type PaginationPageNumber = int
PaginationPageNumber defines model for pagination_page_number.
type PaginationPageSize ¶
type PaginationPageSize = int
PaginationPageSize defines model for pagination_page_size.
type PaginationSortBy ¶
type PaginationSortBy string
PaginationSortBy defines model for pagination_sort_by.
const ( PaginationSortByCreatedAt PaginationSortBy = "created_at" PaginationSortByName PaginationSortBy = "name" PaginationSortByType PaginationSortBy = "type" PaginationSortByUpdatedAt PaginationSortBy = "updated_at" )
Defines values for PaginationSortBy.
type PaginationSortDirection ¶
type PaginationSortDirection string
PaginationSortDirection defines model for pagination_sort_direction.
const ( PaginationSortDirectionAsc PaginationSortDirection = "asc" PaginationSortDirectionDesc PaginationSortDirection = "desc" )
Defines values for PaginationSortDirection.
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 ServerInterface ¶
type ServerInterface interface {
// List environments
// (GET /api/environment)
ListEnvironments(w http.ResponseWriter, r *http.Request, params ListEnvironmentsParams)
// Check the options for the endpoint
// (OPTIONS /api/environment)
OptionsEnvironment(w http.ResponseWriter, r *http.Request)
// Create a new environment
// (POST /api/environment)
CreateEnvironment(w http.ResponseWriter, r *http.Request)
// Delete an environment
// (DELETE /api/environment/{environment_name})
DeleteEnvironment(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name})
OptionsEnvironmentName(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName)
// Get flags by environment
// (GET /api/environment/{environment_name}/flag)
GetFlagsByEnvironment(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name}/flag)
OptionsEnvironmentNameFlag(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name}/flag/{flag_id})
OptionsEnvironmentNameFlagId(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName, flagId FlagId)
// Update a flag in an environment
// (PUT /api/environment/{environment_name}/flag/{flag_id})
UpdateEnvironmentFlagValue(w http.ResponseWriter, r *http.Request, environmentName EnvironmentName, flagId FlagId)
// Get bulk list of flags
// (GET /api/flag)
BulkFlags(w http.ResponseWriter, r *http.Request, params BulkFlagsParams)
// Check the options for the endpoint
// (OPTIONS /api/flag)
OptionsFlag(w http.ResponseWriter, r *http.Request)
// Create a new flag
// (POST /api/flag)
CreateFlag(w http.ResponseWriter, r *http.Request)
// Delete a flag
// (DELETE /api/flag/{flag_id})
DeleteFlag(w http.ResponseWriter, r *http.Request, flagId FlagId)
// Check the options for the endpoint
// (OPTIONS /api/flag/{flag_id})
OptionsFlagId(w http.ResponseWriter, r *http.Request, flagId FlagId)
// Update a flag
// (PUT /api/flag/{flag_id})
UpdateFlag(w http.ResponseWriter, r *http.Request, flagId FlagId)
// Get health status
// (GET /healthcheck)
HealthCheck(w http.ResponseWriter, r *http.Request)
// Check the options for the endpoint
// (OPTIONS /healthcheck)
OptionsHealthCheck(w http.ResponseWriter, r *http.Request)
// Check the options for the endpoint
// (OPTIONS /ui/flag)
UIOptionsCreateSingleFlag(w http.ResponseWriter, r *http.Request)
// create a single flag
// (POST /ui/flag)
UICreateSingleFlag(w http.ResponseWriter, r *http.Request)
// delete a single flag
// (DELETE /ui/flag/{flag_id})
UIKillSingleFlag(w http.ResponseWriter, r *http.Request, flagId FlagId)
// Check the options for the endpoint
// (OPTIONS /ui/flag/{flag_id})
UIOptionsSingleFlag(w http.ResponseWriter, r *http.Request, flagId FlagId)
// Change the value of a single flag in an environment to the default value
// (DELETE /ui/flag/{flag_id}/{environment_name})
UIKillSingleFlagEnvValue(w http.ResponseWriter, r *http.Request, flagId FlagId, environmentName EnvironmentName)
// Find a single flags editable default or value the specified environment
// (GET /ui/flag/{flag_id}/{environment_name})
UIFindSingleFlagEnvValue(w http.ResponseWriter, r *http.Request, flagId FlagId, environmentName EnvironmentName, params UIFindSingleFlagEnvValueParams)
// Check the options for the endpoint
// (OPTIONS /ui/flag/{flag_id}/{environment_name})
UIOptionsSingleFlagEnvValue(w http.ResponseWriter, r *http.Request, flagId FlagId, environmentName EnvironmentName)
// Update the value of a single flag in an environment to the provided value
// (PUT /ui/flag/{flag_id}/{environment_name})
UIUpdateSingleFlagEnvValue(w http.ResponseWriter, r *http.Request, flagId FlagId, environmentName EnvironmentName)
// Get bulk list of flags
// (GET /ui/flags)
UIFindBulkFlags(w http.ResponseWriter, r *http.Request, params UIFindBulkFlagsParams)
// Check the options for the endpoint
// (OPTIONS /ui/flags)
UIOptionsFindBulkFlags(w http.ResponseWriter, r *http.Request)
// Get the page for the initial load
// (GET /ui/page)
UIPage(w http.ResponseWriter, r *http.Request)
// Check the options for the endpoint
// (OPTIONS /ui/page)
UIOptionsPage(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) BulkFlags ¶
func (siw *ServerInterfaceWrapper) BulkFlags(w http.ResponseWriter, r *http.Request)
BulkFlags operation middleware
func (*ServerInterfaceWrapper) CreateEnvironment ¶
func (siw *ServerInterfaceWrapper) CreateEnvironment(w http.ResponseWriter, r *http.Request)
CreateEnvironment operation middleware
func (*ServerInterfaceWrapper) CreateFlag ¶
func (siw *ServerInterfaceWrapper) CreateFlag(w http.ResponseWriter, r *http.Request)
CreateFlag operation middleware
func (*ServerInterfaceWrapper) DeleteEnvironment ¶
func (siw *ServerInterfaceWrapper) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
DeleteEnvironment operation middleware
func (*ServerInterfaceWrapper) DeleteFlag ¶
func (siw *ServerInterfaceWrapper) DeleteFlag(w http.ResponseWriter, r *http.Request)
DeleteFlag operation middleware
func (*ServerInterfaceWrapper) GetFlagsByEnvironment ¶
func (siw *ServerInterfaceWrapper) GetFlagsByEnvironment(w http.ResponseWriter, r *http.Request)
GetFlagsByEnvironment operation middleware
func (*ServerInterfaceWrapper) HealthCheck ¶
func (siw *ServerInterfaceWrapper) HealthCheck(w http.ResponseWriter, r *http.Request)
HealthCheck operation middleware
func (*ServerInterfaceWrapper) ListEnvironments ¶
func (siw *ServerInterfaceWrapper) ListEnvironments(w http.ResponseWriter, r *http.Request)
ListEnvironments operation middleware
func (*ServerInterfaceWrapper) OptionsEnvironment ¶
func (siw *ServerInterfaceWrapper) OptionsEnvironment(w http.ResponseWriter, r *http.Request)
OptionsEnvironment operation middleware
func (*ServerInterfaceWrapper) OptionsEnvironmentName ¶
func (siw *ServerInterfaceWrapper) OptionsEnvironmentName(w http.ResponseWriter, r *http.Request)
OptionsEnvironmentName operation middleware
func (*ServerInterfaceWrapper) OptionsEnvironmentNameFlag ¶
func (siw *ServerInterfaceWrapper) OptionsEnvironmentNameFlag(w http.ResponseWriter, r *http.Request)
OptionsEnvironmentNameFlag operation middleware
func (*ServerInterfaceWrapper) OptionsEnvironmentNameFlagId ¶
func (siw *ServerInterfaceWrapper) OptionsEnvironmentNameFlagId(w http.ResponseWriter, r *http.Request)
OptionsEnvironmentNameFlagId operation middleware
func (*ServerInterfaceWrapper) OptionsFlag ¶
func (siw *ServerInterfaceWrapper) OptionsFlag(w http.ResponseWriter, r *http.Request)
OptionsFlag operation middleware
func (*ServerInterfaceWrapper) OptionsFlagId ¶
func (siw *ServerInterfaceWrapper) OptionsFlagId(w http.ResponseWriter, r *http.Request)
OptionsFlagId operation middleware
func (*ServerInterfaceWrapper) OptionsHealthCheck ¶
func (siw *ServerInterfaceWrapper) OptionsHealthCheck(w http.ResponseWriter, r *http.Request)
OptionsHealthCheck operation middleware
func (*ServerInterfaceWrapper) UICreateSingleFlag ¶
func (siw *ServerInterfaceWrapper) UICreateSingleFlag(w http.ResponseWriter, r *http.Request)
UICreateSingleFlag operation middleware
func (*ServerInterfaceWrapper) UIFindBulkFlags ¶
func (siw *ServerInterfaceWrapper) UIFindBulkFlags(w http.ResponseWriter, r *http.Request)
UIFindBulkFlags operation middleware
func (*ServerInterfaceWrapper) UIFindSingleFlagEnvValue ¶
func (siw *ServerInterfaceWrapper) UIFindSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
UIFindSingleFlagEnvValue operation middleware
func (*ServerInterfaceWrapper) UIKillSingleFlag ¶
func (siw *ServerInterfaceWrapper) UIKillSingleFlag(w http.ResponseWriter, r *http.Request)
UIKillSingleFlag operation middleware
func (*ServerInterfaceWrapper) UIKillSingleFlagEnvValue ¶
func (siw *ServerInterfaceWrapper) UIKillSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
UIKillSingleFlagEnvValue operation middleware
func (*ServerInterfaceWrapper) UIOptionsCreateSingleFlag ¶
func (siw *ServerInterfaceWrapper) UIOptionsCreateSingleFlag(w http.ResponseWriter, r *http.Request)
UIOptionsCreateSingleFlag operation middleware
func (*ServerInterfaceWrapper) UIOptionsFindBulkFlags ¶
func (siw *ServerInterfaceWrapper) UIOptionsFindBulkFlags(w http.ResponseWriter, r *http.Request)
UIOptionsFindBulkFlags operation middleware
func (*ServerInterfaceWrapper) UIOptionsPage ¶
func (siw *ServerInterfaceWrapper) UIOptionsPage(w http.ResponseWriter, r *http.Request)
UIOptionsPage operation middleware
func (*ServerInterfaceWrapper) UIOptionsSingleFlag ¶
func (siw *ServerInterfaceWrapper) UIOptionsSingleFlag(w http.ResponseWriter, r *http.Request)
UIOptionsSingleFlag operation middleware
func (*ServerInterfaceWrapper) UIOptionsSingleFlagEnvValue ¶
func (siw *ServerInterfaceWrapper) UIOptionsSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
UIOptionsSingleFlagEnvValue operation middleware
func (*ServerInterfaceWrapper) UIPage ¶
func (siw *ServerInterfaceWrapper) UIPage(w http.ResponseWriter, r *http.Request)
UIPage operation middleware
func (*ServerInterfaceWrapper) UIUpdateSingleFlagEnvValue ¶
func (siw *ServerInterfaceWrapper) UIUpdateSingleFlagEnvValue(w http.ResponseWriter, r *http.Request)
UIUpdateSingleFlagEnvValue operation middleware
func (*ServerInterfaceWrapper) UpdateEnvironmentFlagValue ¶
func (siw *ServerInterfaceWrapper) UpdateEnvironmentFlagValue(w http.ResponseWriter, r *http.Request)
UpdateEnvironmentFlagValue operation middleware
func (*ServerInterfaceWrapper) UpdateFlag ¶
func (siw *ServerInterfaceWrapper) UpdateFlag(w http.ResponseWriter, r *http.Request)
UpdateFlag operation middleware
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 = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List environments
// (GET /api/environment)
ListEnvironments(ctx context.Context, request ListEnvironmentsRequestObject) (ListEnvironmentsResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/environment)
OptionsEnvironment(ctx context.Context, request OptionsEnvironmentRequestObject) (OptionsEnvironmentResponseObject, error)
// Create a new environment
// (POST /api/environment)
CreateEnvironment(ctx context.Context, request CreateEnvironmentRequestObject) (CreateEnvironmentResponseObject, error)
// Delete an environment
// (DELETE /api/environment/{environment_name})
DeleteEnvironment(ctx context.Context, request DeleteEnvironmentRequestObject) (DeleteEnvironmentResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name})
OptionsEnvironmentName(ctx context.Context, request OptionsEnvironmentNameRequestObject) (OptionsEnvironmentNameResponseObject, error)
// Get flags by environment
// (GET /api/environment/{environment_name}/flag)
GetFlagsByEnvironment(ctx context.Context, request GetFlagsByEnvironmentRequestObject) (GetFlagsByEnvironmentResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name}/flag)
OptionsEnvironmentNameFlag(ctx context.Context, request OptionsEnvironmentNameFlagRequestObject) (OptionsEnvironmentNameFlagResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/environment/{environment_name}/flag/{flag_id})
OptionsEnvironmentNameFlagId(ctx context.Context, request OptionsEnvironmentNameFlagIdRequestObject) (OptionsEnvironmentNameFlagIdResponseObject, error)
// Update a flag in an environment
// (PUT /api/environment/{environment_name}/flag/{flag_id})
UpdateEnvironmentFlagValue(ctx context.Context, request UpdateEnvironmentFlagValueRequestObject) (UpdateEnvironmentFlagValueResponseObject, error)
// Get bulk list of flags
// (GET /api/flag)
BulkFlags(ctx context.Context, request BulkFlagsRequestObject) (BulkFlagsResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/flag)
OptionsFlag(ctx context.Context, request OptionsFlagRequestObject) (OptionsFlagResponseObject, error)
// Create a new flag
// (POST /api/flag)
CreateFlag(ctx context.Context, request CreateFlagRequestObject) (CreateFlagResponseObject, error)
// Delete a flag
// (DELETE /api/flag/{flag_id})
DeleteFlag(ctx context.Context, request DeleteFlagRequestObject) (DeleteFlagResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /api/flag/{flag_id})
OptionsFlagId(ctx context.Context, request OptionsFlagIdRequestObject) (OptionsFlagIdResponseObject, error)
// Update a flag
// (PUT /api/flag/{flag_id})
UpdateFlag(ctx context.Context, request UpdateFlagRequestObject) (UpdateFlagResponseObject, error)
// Get health status
// (GET /healthcheck)
HealthCheck(ctx context.Context, request HealthCheckRequestObject) (HealthCheckResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /healthcheck)
OptionsHealthCheck(ctx context.Context, request OptionsHealthCheckRequestObject) (OptionsHealthCheckResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /ui/flag)
UIOptionsCreateSingleFlag(ctx context.Context, request UIOptionsCreateSingleFlagRequestObject) (UIOptionsCreateSingleFlagResponseObject, error)
// create a single flag
// (POST /ui/flag)
UICreateSingleFlag(ctx context.Context, request UICreateSingleFlagRequestObject) (UICreateSingleFlagResponseObject, error)
// delete a single flag
// (DELETE /ui/flag/{flag_id})
UIKillSingleFlag(ctx context.Context, request UIKillSingleFlagRequestObject) (UIKillSingleFlagResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /ui/flag/{flag_id})
UIOptionsSingleFlag(ctx context.Context, request UIOptionsSingleFlagRequestObject) (UIOptionsSingleFlagResponseObject, error)
// Change the value of a single flag in an environment to the default value
// (DELETE /ui/flag/{flag_id}/{environment_name})
UIKillSingleFlagEnvValue(ctx context.Context, request UIKillSingleFlagEnvValueRequestObject) (UIKillSingleFlagEnvValueResponseObject, error)
// Find a single flags editable default or value the specified environment
// (GET /ui/flag/{flag_id}/{environment_name})
UIFindSingleFlagEnvValue(ctx context.Context, request UIFindSingleFlagEnvValueRequestObject) (UIFindSingleFlagEnvValueResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /ui/flag/{flag_id}/{environment_name})
UIOptionsSingleFlagEnvValue(ctx context.Context, request UIOptionsSingleFlagEnvValueRequestObject) (UIOptionsSingleFlagEnvValueResponseObject, error)
// Update the value of a single flag in an environment to the provided value
// (PUT /ui/flag/{flag_id}/{environment_name})
UIUpdateSingleFlagEnvValue(ctx context.Context, request UIUpdateSingleFlagEnvValueRequestObject) (UIUpdateSingleFlagEnvValueResponseObject, error)
// Get bulk list of flags
// (GET /ui/flags)
UIFindBulkFlags(ctx context.Context, request UIFindBulkFlagsRequestObject) (UIFindBulkFlagsResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /ui/flags)
UIOptionsFindBulkFlags(ctx context.Context, request UIOptionsFindBulkFlagsRequestObject) (UIOptionsFindBulkFlagsResponseObject, error)
// Get the page for the initial load
// (GET /ui/page)
UIPage(ctx context.Context, request UIPageRequestObject) (UIPageResponseObject, error)
// Check the options for the endpoint
// (OPTIONS /ui/page)
UIOptionsPage(ctx context.Context, request UIOptionsPageRequestObject) (UIOptionsPageResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UICreateSingleFlag200TexthtmlResponse ¶
func (UICreateSingleFlag200TexthtmlResponse) VisitUICreateSingleFlagResponse ¶
func (response UICreateSingleFlag200TexthtmlResponse) VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
type UICreateSingleFlag400JSONResponse ¶
type UICreateSingleFlag400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UICreateSingleFlag400JSONResponse) VisitUICreateSingleFlagResponse ¶
func (response UICreateSingleFlag400JSONResponse) VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
type UICreateSingleFlag401TexthtmlResponse ¶
func (UICreateSingleFlag401TexthtmlResponse) VisitUICreateSingleFlagResponse ¶
func (response UICreateSingleFlag401TexthtmlResponse) VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
type UICreateSingleFlag403TexthtmlResponse ¶
func (UICreateSingleFlag403TexthtmlResponse) VisitUICreateSingleFlagResponse ¶
func (response UICreateSingleFlag403TexthtmlResponse) VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
type UICreateSingleFlag500TexthtmlResponse ¶
func (UICreateSingleFlag500TexthtmlResponse) VisitUICreateSingleFlagResponse ¶
func (response UICreateSingleFlag500TexthtmlResponse) VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
type UICreateSingleFlagRequestObject ¶
type UICreateSingleFlagRequestObject struct {
}
type UICreateSingleFlagResponseObject ¶
type UICreateSingleFlagResponseObject interface {
VisitUICreateSingleFlagResponse(w http.ResponseWriter) error
}
type UIFindBulkFlags200TexthtmlResponse ¶
func (UIFindBulkFlags200TexthtmlResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags200TexthtmlResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlags400JSONResponse ¶
type UIFindBulkFlags400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIFindBulkFlags400JSONResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags400JSONResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlags401TexthtmlResponse ¶
func (UIFindBulkFlags401TexthtmlResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags401TexthtmlResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlags403TexthtmlResponse ¶
func (UIFindBulkFlags403TexthtmlResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags403TexthtmlResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlags406TexthtmlResponse ¶
func (UIFindBulkFlags406TexthtmlResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags406TexthtmlResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlags500TexthtmlResponse ¶
func (UIFindBulkFlags500TexthtmlResponse) VisitUIFindBulkFlagsResponse ¶
func (response UIFindBulkFlags500TexthtmlResponse) VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
type UIFindBulkFlagsParams ¶
type UIFindBulkFlagsParams struct {
// Page Page number for pagination. Defaults to 1 if not provided. Must be a positive integer.
Page *PaginationPageNumber `form:"page,omitempty" json:"page,omitempty"`
// Size Number of items per page for pagination. Valid values range from 1-1000. Defaults to 100 if not provided.
Size *PaginationPageSize `form:"size,omitempty" json:"size,omitempty"`
// SortBy Sort by field for the pagination. If not provided, defaults to 'name'.
SortBy *UIFindBulkFlagsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
// SortDirection Sort direction for the pagination. If not provided, defaults to 'asc'.
SortDirection *UIFindBulkFlagsParamsSortDirection `form:"sort_direction,omitempty" json:"sort_direction,omitempty"`
// Name Filter records by with the provided string in the name. If not provided, no name filtering is applied.
Name *FilterByName `form:"name,omitempty" json:"name,omitempty"`
// Type Filter records by type. If not provided, no type filtering is applied.
Type *FilterByType `form:"type,omitempty" json:"type,omitempty"`
// Environment Filter records by environment name. If not provided, no environment filtering is applied.
Environment *FilterByEnvironment `form:"environment,omitempty" json:"environment,omitempty"`
// State Filter records by state. 'active' for non-deleted records, 'deleted' for soft-deleted records, 'all' for both. Defaults to 'active'
State *UIFindBulkFlagsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
UIFindBulkFlagsParams defines parameters for UIFindBulkFlags.
type UIFindBulkFlagsParamsSortBy ¶
type UIFindBulkFlagsParamsSortBy string
UIFindBulkFlagsParamsSortBy defines parameters for UIFindBulkFlags.
const ( UIFindBulkFlagsParamsSortByCreatedAt UIFindBulkFlagsParamsSortBy = "created_at" UIFindBulkFlagsParamsSortByName UIFindBulkFlagsParamsSortBy = "name" UIFindBulkFlagsParamsSortByType UIFindBulkFlagsParamsSortBy = "type" UIFindBulkFlagsParamsSortByUpdatedAt UIFindBulkFlagsParamsSortBy = "updated_at" )
Defines values for UIFindBulkFlagsParamsSortBy.
type UIFindBulkFlagsParamsSortDirection ¶
type UIFindBulkFlagsParamsSortDirection string
UIFindBulkFlagsParamsSortDirection defines parameters for UIFindBulkFlags.
const ( UIFindBulkFlagsParamsSortDirectionAsc UIFindBulkFlagsParamsSortDirection = "asc" UIFindBulkFlagsParamsSortDirectionDesc UIFindBulkFlagsParamsSortDirection = "desc" )
Defines values for UIFindBulkFlagsParamsSortDirection.
type UIFindBulkFlagsParamsState ¶
type UIFindBulkFlagsParamsState string
UIFindBulkFlagsParamsState defines parameters for UIFindBulkFlags.
const ( UIFindBulkFlagsParamsStateActive UIFindBulkFlagsParamsState = "active" UIFindBulkFlagsParamsStateAll UIFindBulkFlagsParamsState = "all" UIFindBulkFlagsParamsStateDeleted UIFindBulkFlagsParamsState = "deleted" )
Defines values for UIFindBulkFlagsParamsState.
type UIFindBulkFlagsRequestObject ¶
type UIFindBulkFlagsRequestObject struct {
Params UIFindBulkFlagsParams
}
type UIFindBulkFlagsResponseObject ¶
type UIFindBulkFlagsResponseObject interface {
VisitUIFindBulkFlagsResponse(w http.ResponseWriter) error
}
type UIFindSingleFlagEnvValue200TexthtmlResponse ¶
func (UIFindSingleFlagEnvValue200TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue200TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValue400JSONResponse ¶
type UIFindSingleFlagEnvValue400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIFindSingleFlagEnvValue400JSONResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue400JSONResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValue401TexthtmlResponse ¶
func (UIFindSingleFlagEnvValue401TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue401TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValue403TexthtmlResponse ¶
func (UIFindSingleFlagEnvValue403TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue403TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValue406TexthtmlResponse ¶
func (UIFindSingleFlagEnvValue406TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue406TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValue500TexthtmlResponse ¶
func (UIFindSingleFlagEnvValue500TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse ¶
func (response UIFindSingleFlagEnvValue500TexthtmlResponse) VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIFindSingleFlagEnvValueParams ¶
type UIFindSingleFlagEnvValueParams struct {
// Revert Defaults to false. If true, the endpoint returns the uneditable version of a value.
Revert *Revert `form:"revert,omitempty" json:"revert,omitempty"`
}
UIFindSingleFlagEnvValueParams defines parameters for UIFindSingleFlagEnvValue.
type UIFindSingleFlagEnvValueRequestObject ¶
type UIFindSingleFlagEnvValueRequestObject struct {
FlagId FlagId `json:"flag_id"`
EnvironmentName EnvironmentName `json:"environment_name"`
Params UIFindSingleFlagEnvValueParams
}
type UIFindSingleFlagEnvValueResponseObject ¶
type UIFindSingleFlagEnvValueResponseObject interface {
VisitUIFindSingleFlagEnvValueResponse(w http.ResponseWriter) error
}
type UIKillSingleFlag200TexthtmlResponse ¶
func (UIKillSingleFlag200TexthtmlResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag200TexthtmlResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlag400JSONResponse ¶
type UIKillSingleFlag400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIKillSingleFlag400JSONResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag400JSONResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlag401TexthtmlResponse ¶
func (UIKillSingleFlag401TexthtmlResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag401TexthtmlResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlag403TexthtmlResponse ¶
func (UIKillSingleFlag403TexthtmlResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag403TexthtmlResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlag406TexthtmlResponse ¶
func (UIKillSingleFlag406TexthtmlResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag406TexthtmlResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlag500TexthtmlResponse ¶
func (UIKillSingleFlag500TexthtmlResponse) VisitUIKillSingleFlagResponse ¶
func (response UIKillSingleFlag500TexthtmlResponse) VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue200TexthtmlResponse ¶
func (UIKillSingleFlagEnvValue200TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue200TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue400JSONResponse ¶
type UIKillSingleFlagEnvValue400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIKillSingleFlagEnvValue400JSONResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue400JSONResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue401TexthtmlResponse ¶
func (UIKillSingleFlagEnvValue401TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue401TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue403TexthtmlResponse ¶
func (UIKillSingleFlagEnvValue403TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue403TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue406TexthtmlResponse ¶
func (UIKillSingleFlagEnvValue406TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue406TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValue500TexthtmlResponse ¶
func (UIKillSingleFlagEnvValue500TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse ¶
func (response UIKillSingleFlagEnvValue500TexthtmlResponse) VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIKillSingleFlagEnvValueRequestObject ¶
type UIKillSingleFlagEnvValueRequestObject struct {
FlagId FlagId `json:"flag_id"`
EnvironmentName EnvironmentName `json:"environment_name"`
}
type UIKillSingleFlagEnvValueResponseObject ¶
type UIKillSingleFlagEnvValueResponseObject interface {
VisitUIKillSingleFlagEnvValueResponse(w http.ResponseWriter) error
}
type UIKillSingleFlagRequestObject ¶
type UIKillSingleFlagRequestObject struct {
FlagId FlagId `json:"flag_id"`
}
type UIKillSingleFlagResponseObject ¶
type UIKillSingleFlagResponseObject interface {
VisitUIKillSingleFlagResponse(w http.ResponseWriter) error
}
type UIOptionsCreateSingleFlag200Response ¶
type UIOptionsCreateSingleFlag200Response struct {
}
func (UIOptionsCreateSingleFlag200Response) VisitUIOptionsCreateSingleFlagResponse ¶
func (response UIOptionsCreateSingleFlag200Response) VisitUIOptionsCreateSingleFlagResponse(w http.ResponseWriter) error
type UIOptionsCreateSingleFlagRequestObject ¶
type UIOptionsCreateSingleFlagRequestObject struct {
}
type UIOptionsCreateSingleFlagResponseObject ¶
type UIOptionsCreateSingleFlagResponseObject interface {
VisitUIOptionsCreateSingleFlagResponse(w http.ResponseWriter) error
}
type UIOptionsFindBulkFlags200Response ¶
type UIOptionsFindBulkFlags200Response struct {
}
func (UIOptionsFindBulkFlags200Response) VisitUIOptionsFindBulkFlagsResponse ¶
func (response UIOptionsFindBulkFlags200Response) VisitUIOptionsFindBulkFlagsResponse(w http.ResponseWriter) error
type UIOptionsFindBulkFlagsRequestObject ¶
type UIOptionsFindBulkFlagsRequestObject struct {
}
type UIOptionsFindBulkFlagsResponseObject ¶
type UIOptionsFindBulkFlagsResponseObject interface {
VisitUIOptionsFindBulkFlagsResponse(w http.ResponseWriter) error
}
type UIOptionsPage200Response ¶
type UIOptionsPage200Response struct {
}
func (UIOptionsPage200Response) VisitUIOptionsPageResponse ¶
func (response UIOptionsPage200Response) VisitUIOptionsPageResponse(w http.ResponseWriter) error
type UIOptionsPageRequestObject ¶
type UIOptionsPageRequestObject struct {
}
type UIOptionsPageResponseObject ¶
type UIOptionsPageResponseObject interface {
VisitUIOptionsPageResponse(w http.ResponseWriter) error
}
type UIOptionsSingleFlag200Response ¶
type UIOptionsSingleFlag200Response struct {
}
func (UIOptionsSingleFlag200Response) VisitUIOptionsSingleFlagResponse ¶
func (response UIOptionsSingleFlag200Response) VisitUIOptionsSingleFlagResponse(w http.ResponseWriter) error
type UIOptionsSingleFlagEnvValue200Response ¶
type UIOptionsSingleFlagEnvValue200Response struct {
}
func (UIOptionsSingleFlagEnvValue200Response) VisitUIOptionsSingleFlagEnvValueResponse ¶
func (response UIOptionsSingleFlagEnvValue200Response) VisitUIOptionsSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIOptionsSingleFlagEnvValueRequestObject ¶
type UIOptionsSingleFlagEnvValueRequestObject struct {
FlagId FlagId `json:"flag_id"`
EnvironmentName EnvironmentName `json:"environment_name"`
}
type UIOptionsSingleFlagEnvValueResponseObject ¶
type UIOptionsSingleFlagEnvValueResponseObject interface {
VisitUIOptionsSingleFlagEnvValueResponse(w http.ResponseWriter) error
}
type UIOptionsSingleFlagRequestObject ¶
type UIOptionsSingleFlagRequestObject struct {
FlagId FlagId `json:"flag_id"`
}
type UIOptionsSingleFlagResponseObject ¶
type UIOptionsSingleFlagResponseObject interface {
VisitUIOptionsSingleFlagResponse(w http.ResponseWriter) error
}
type UIPage200TexthtmlResponse ¶
func (UIPage200TexthtmlResponse) VisitUIPageResponse ¶
func (response UIPage200TexthtmlResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPage400JSONResponse ¶
type UIPage400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIPage400JSONResponse) VisitUIPageResponse ¶
func (response UIPage400JSONResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPage401TexthtmlResponse ¶
func (UIPage401TexthtmlResponse) VisitUIPageResponse ¶
func (response UIPage401TexthtmlResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPage403TexthtmlResponse ¶
func (UIPage403TexthtmlResponse) VisitUIPageResponse ¶
func (response UIPage403TexthtmlResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPage406TexthtmlResponse ¶
func (UIPage406TexthtmlResponse) VisitUIPageResponse ¶
func (response UIPage406TexthtmlResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPage500TexthtmlResponse ¶
func (UIPage500TexthtmlResponse) VisitUIPageResponse ¶
func (response UIPage500TexthtmlResponse) VisitUIPageResponse(w http.ResponseWriter) error
type UIPageRequestObject ¶
type UIPageRequestObject struct {
}
type UIPageResponseObject ¶
type UIPageResponseObject interface {
VisitUIPageResponse(w http.ResponseWriter) error
}
type UIUpdateSingleFlagEnvValue200TexthtmlResponse ¶
func (UIUpdateSingleFlagEnvValue200TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue200TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValue400JSONResponse ¶
type UIUpdateSingleFlagEnvValue400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UIUpdateSingleFlagEnvValue400JSONResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue400JSONResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValue401TexthtmlResponse ¶
func (UIUpdateSingleFlagEnvValue401TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue401TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValue403TexthtmlResponse ¶
func (UIUpdateSingleFlagEnvValue403TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue403TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValue406TexthtmlResponse ¶
func (UIUpdateSingleFlagEnvValue406TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue406TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValue500TexthtmlResponse ¶
func (UIUpdateSingleFlagEnvValue500TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse ¶
func (response UIUpdateSingleFlagEnvValue500TexthtmlResponse) VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
type UIUpdateSingleFlagEnvValueRequestObject ¶
type UIUpdateSingleFlagEnvValueRequestObject struct {
FlagId FlagId `json:"flag_id"`
EnvironmentName EnvironmentName `json:"environment_name"`
}
type UIUpdateSingleFlagEnvValueResponseObject ¶
type UIUpdateSingleFlagEnvValueResponseObject interface {
VisitUIUpdateSingleFlagEnvValueResponse(w http.ResponseWriter) error
}
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 UpdateEnvironmentFlagValue200JSONResponse ¶
type UpdateEnvironmentFlagValue200JSONResponse Flag
func (UpdateEnvironmentFlagValue200JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue200JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValue400JSONResponse ¶
type UpdateEnvironmentFlagValue400JSONResponse ErrorBody
func (UpdateEnvironmentFlagValue400JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue400JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValue401JSONResponse ¶
type UpdateEnvironmentFlagValue401JSONResponse ErrorBody
func (UpdateEnvironmentFlagValue401JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue401JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValue403JSONResponse ¶
type UpdateEnvironmentFlagValue403JSONResponse ErrorBody
func (UpdateEnvironmentFlagValue403JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue403JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValue406JSONResponse ¶
type UpdateEnvironmentFlagValue406JSONResponse ErrorBody
func (UpdateEnvironmentFlagValue406JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue406JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValue500JSONResponse ¶
type UpdateEnvironmentFlagValue500JSONResponse ErrorBody
func (UpdateEnvironmentFlagValue500JSONResponse) VisitUpdateEnvironmentFlagValueResponse ¶
func (response UpdateEnvironmentFlagValue500JSONResponse) VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
type UpdateEnvironmentFlagValueJSONRequestBody ¶
type UpdateEnvironmentFlagValueJSONRequestBody = EnvironmentFlag
UpdateEnvironmentFlagValueJSONRequestBody defines body for UpdateEnvironmentFlagValue for application/json ContentType.
type UpdateEnvironmentFlagValueRequestObject ¶
type UpdateEnvironmentFlagValueRequestObject struct {
EnvironmentName EnvironmentName `json:"environment_name"`
FlagId FlagId `json:"flag_id"`
Body *UpdateEnvironmentFlagValueJSONRequestBody
}
type UpdateEnvironmentFlagValueResponseObject ¶
type UpdateEnvironmentFlagValueResponseObject interface {
VisitUpdateEnvironmentFlagValueResponse(w http.ResponseWriter) error
}
type UpdateFlag200JSONResponse ¶
type UpdateFlag200JSONResponse Flag
func (UpdateFlag200JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag200JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlag400JSONResponse ¶
type UpdateFlag400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (UpdateFlag400JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag400JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlag401JSONResponse ¶
type UpdateFlag401JSONResponse ErrorBody
func (UpdateFlag401JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag401JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlag403JSONResponse ¶
type UpdateFlag403JSONResponse ErrorBody
func (UpdateFlag403JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag403JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlag406JSONResponse ¶
type UpdateFlag406JSONResponse ErrorBody
func (UpdateFlag406JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag406JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlag500JSONResponse ¶
type UpdateFlag500JSONResponse ErrorBody
func (UpdateFlag500JSONResponse) VisitUpdateFlagResponse ¶
func (response UpdateFlag500JSONResponse) VisitUpdateFlagResponse(w http.ResponseWriter) error
type UpdateFlagJSONRequestBody ¶
type UpdateFlagJSONRequestBody = Flag
UpdateFlagJSONRequestBody defines body for UpdateFlag for application/json ContentType.
type UpdateFlagRequestObject ¶
type UpdateFlagRequestObject struct {
FlagId FlagId `json:"flag_id"`
Body *UpdateFlagJSONRequestBody
}
type UpdateFlagResponseObject ¶
type UpdateFlagResponseObject interface {
VisitUpdateFlagResponse(w http.ResponseWriter) error
}