Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ArtifactDeployment
- type ArtifactDeploymentId
- type ArtifactDeploymentList
- type ArtifactDeploymentStatus
- type ArtifactReference
- type AuthCallbackV1Params
- type AuthCallbackV1RequestObject
- type AuthCallbackV1ResponseObject
- type AuthCallbackV1302Response
- type AuthCallbackV1302ResponseHeaders
- type AuthCallbackV1400JSONResponse
- type AuthCallbackV1401JSONResponse
- type AuthCallbackV1500JSONResponse
- type BadRequest
- type BadRequestJSONResponse
- type ChiServerOptions
- type ComponentReference
- type ErrorResponse
- type Forbidden
- type ForbiddenJSONResponse
- type GetIdentityV1RequestObject
- type GetIdentityV1ResponseObject
- type GetIdentityV1200JSONResponse
- type GetIdentityV1401JSONResponse
- type GetIdentityV1500JSONResponse
- type Identity
- type InternalError
- type InternalErrorJSONResponse
- type InvalidParamFormatError
- type Landscape
- type LandscapeId
- type LandscapeList
- type LandscapeQueryId
- type ListArtifactDeploymentsV1Params
- type ListArtifactDeploymentsV1RequestObject
- type ListArtifactDeploymentsV1ResponseObject
- type ListArtifactDeploymentsV1200JSONResponse
- type ListArtifactDeploymentsV1401JSONResponse
- type ListArtifactDeploymentsV1403JSONResponse
- type ListArtifactDeploymentsV1500JSONResponse
- type ListLandscapesV1RequestObject
- type ListLandscapesV1ResponseObject
- type ListLandscapesV1200JSONResponse
- type ListLandscapesV1401JSONResponse
- type ListLandscapesV1403JSONResponse
- type ListLandscapesV1404JSONResponse
- type ListLandscapesV1500JSONResponse
- type ListProjectsV1RequestObject
- type ListProjectsV1ResponseObject
- type ListProjectsV1200JSONResponse
- type ListProjectsV1401JSONResponse
- type ListProjectsV1500JSONResponse
- type ListStagesV1Params
- type ListStagesV1RequestObject
- type ListStagesV1ResponseObject
- type ListStagesV1200JSONResponse
- type ListStagesV1401JSONResponse
- type ListStagesV1403JSONResponse
- type ListStagesV1500JSONResponse
- type ListVectorDeploymentsV1Params
- type ListVectorDeploymentsV1RequestObject
- type ListVectorDeploymentsV1ResponseObject
- type ListVectorDeploymentsV1200JSONResponse
- type ListVectorDeploymentsV1401JSONResponse
- type ListVectorDeploymentsV1403JSONResponse
- type ListVectorDeploymentsV1500JSONResponse
- type LoginV1Params
- type LoginV1RequestObject
- type LoginV1ResponseObject
- type LoginV1302Response
- type LoginV1302ResponseHeaders
- type LoginV1400JSONResponse
- type LoginV1500JSONResponse
- type LogoutV1RequestObject
- type LogoutV1ResponseObject
- type LogoutV1200Response
- type LogoutV1200ResponseHeaders
- type LogoutV1401JSONResponse
- type MiddlewareFunc
- type NotFound
- type NotFoundJSONResponse
- type PostExchangeCodeV1JSONBody
- type PostExchangeCodeV1JSONRequestBody
- type PostExchangeCodeV1RequestObject
- type PostExchangeCodeV1ResponseObject
- type PostExchangeCodeV1200Response
- type PostExchangeCodeV1200ResponseHeaders
- type PostExchangeCodeV1401JSONResponse
- type PostExchangeCodeV1500JSONResponse
- type Project
- type ProjectId
- type ProjectList
- type ProjectPathId
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AuthCallbackV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetIdentityV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListArtifactDeploymentsV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLandscapesV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProjectsV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListStagesV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListVectorDeploymentsV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LoginV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LogoutV1(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostExchangeCodeV1(w http.ResponseWriter, r *http.Request)
- type Stage
- type StageId
- type StageList
- type StageVersion
- type StageVersionId
- type StageVersionStatus
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type Unauthorized
- type UnauthorizedJSONResponse
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AuthCallbackV1(w http.ResponseWriter, r *http.Request, params AuthCallbackV1Params)
- func (_ Unimplemented) GetIdentityV1(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListArtifactDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, ...)
- func (_ Unimplemented) ListLandscapesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId)
- func (_ Unimplemented) ListProjectsV1(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListStagesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, ...)
- func (_ Unimplemented) ListVectorDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, ...)
- func (_ Unimplemented) LoginV1(w http.ResponseWriter, r *http.Request, params LoginV1Params)
- func (_ Unimplemented) LogoutV1(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostExchangeCodeV1(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type VectorDeployment
- type VectorDeploymentId
- type VectorDeploymentList
- type VectorDeploymentQueryId
- type VectorDeploymentStatus
- type VectorReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ArtifactDeployment ¶
type ArtifactDeployment struct {
Artifact ArtifactReference `json:"artifact"`
// Id The artifactDeployment id
Id ArtifactDeploymentId `json:"id"`
// LandscapeId The landscape id
LandscapeId LandscapeId `json:"landscapeId"`
StageIds []StageId `json:"stageIds"`
// Status The artifactDeployment status
Status ArtifactDeploymentStatus `json:"status"`
VectorDeploymentIds []VectorDeploymentId `json:"vectorDeploymentIds"`
}
ArtifactDeployment defines model for ArtifactDeployment.
type ArtifactDeploymentId ¶
type ArtifactDeploymentId = string
ArtifactDeploymentId The artifactDeployment id
type ArtifactDeploymentList ¶
type ArtifactDeploymentList struct {
Data []ArtifactDeployment `json:"data"`
}
ArtifactDeploymentList defines model for ArtifactDeploymentList.
type ArtifactDeploymentStatus ¶
type ArtifactDeploymentStatus string
ArtifactDeploymentStatus The artifactDeployment status
const ( ArtifactDeployed ArtifactDeploymentStatus = "ArtifactDeployed" ArtifactFetched ArtifactDeploymentStatus = "ArtifactFetched" )
Defines values for ArtifactDeploymentStatus.
func (ArtifactDeploymentStatus) Valid ¶
func (e ArtifactDeploymentStatus) Valid() bool
Valid indicates whether the value is a known member of the ArtifactDeploymentStatus enum.
type ArtifactReference ¶
type ArtifactReference = ComponentReference
ArtifactReference defines model for ArtifactReference.
type AuthCallbackV1Params ¶
type AuthCallbackV1Params struct {
State string `form:"state" json:"state"`
Code *string `form:"code,omitempty" json:"code,omitempty"`
Error *string `form:"error,omitempty" json:"error,omitempty"`
ErrorDescription *string `form:"error_description,omitempty" json:"error_description,omitempty"`
}
AuthCallbackV1Params defines parameters for AuthCallbackV1.
type AuthCallbackV1RequestObject ¶
type AuthCallbackV1RequestObject struct {
Params AuthCallbackV1Params
}
type AuthCallbackV1ResponseObject ¶
type AuthCallbackV1ResponseObject interface {
VisitAuthCallbackV1Response(w http.ResponseWriter) error
}
type AuthCallbackV1302Response ¶
type AuthCallbackV1302Response struct {
Headers AuthCallbackV1302ResponseHeaders
}
func (AuthCallbackV1302Response) VisitAuthCallbackV1Response ¶
func (response AuthCallbackV1302Response) VisitAuthCallbackV1Response(w http.ResponseWriter) error
type AuthCallbackV1400JSONResponse ¶
type AuthCallbackV1400JSONResponse struct{ BadRequestJSONResponse }
func (AuthCallbackV1400JSONResponse) VisitAuthCallbackV1Response ¶
func (response AuthCallbackV1400JSONResponse) VisitAuthCallbackV1Response(w http.ResponseWriter) error
type AuthCallbackV1401JSONResponse ¶
func (AuthCallbackV1401JSONResponse) VisitAuthCallbackV1Response ¶
func (response AuthCallbackV1401JSONResponse) VisitAuthCallbackV1Response(w http.ResponseWriter) error
type AuthCallbackV1500JSONResponse ¶
type AuthCallbackV1500JSONResponse struct{ InternalErrorJSONResponse }
func (AuthCallbackV1500JSONResponse) VisitAuthCallbackV1Response ¶
func (response AuthCallbackV1500JSONResponse) VisitAuthCallbackV1Response(w http.ResponseWriter) error
type BadRequestJSONResponse ¶
type BadRequestJSONResponse ErrorResponse
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type ComponentReference ¶
type ComponentReference struct {
ComponentName string `json:"componentName"`
ComponentVersion string `json:"componentVersion"`
Repository string `json:"repository"`
}
ComponentReference defines model for ComponentReference.
type ErrorResponse ¶
type ErrorResponse struct {
Error struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type ForbiddenJSONResponse ¶
type ForbiddenJSONResponse ErrorResponse
type GetIdentityV1RequestObject ¶
type GetIdentityV1RequestObject struct {
}
type GetIdentityV1ResponseObject ¶
type GetIdentityV1ResponseObject interface {
VisitGetIdentityV1Response(w http.ResponseWriter) error
}
type GetIdentityV1200JSONResponse ¶
type GetIdentityV1200JSONResponse Identity
func (GetIdentityV1200JSONResponse) VisitGetIdentityV1Response ¶
func (response GetIdentityV1200JSONResponse) VisitGetIdentityV1Response(w http.ResponseWriter) error
type GetIdentityV1401JSONResponse ¶
func (GetIdentityV1401JSONResponse) VisitGetIdentityV1Response ¶
func (response GetIdentityV1401JSONResponse) VisitGetIdentityV1Response(w http.ResponseWriter) error
type GetIdentityV1500JSONResponse ¶
type GetIdentityV1500JSONResponse struct{ InternalErrorJSONResponse }
func (GetIdentityV1500JSONResponse) VisitGetIdentityV1Response ¶
func (response GetIdentityV1500JSONResponse) VisitGetIdentityV1Response(w http.ResponseWriter) error
type Identity ¶
type Identity struct {
Email string `json:"email"`
FamilyName string `json:"familyName"`
GivenName string `json:"givenName"`
Name string `json:"name"`
ProjectRoles map[string][]string `json:"projectRoles"`
}
Identity defines model for Identity.
type InternalError ¶
type InternalError = ErrorResponse
InternalError defines model for InternalError.
type InternalErrorJSONResponse ¶
type InternalErrorJSONResponse ErrorResponse
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Landscape ¶
type Landscape struct {
// Id The landscape id
Id LandscapeId `json:"id"`
// Name The name of the landscape
Name string `json:"name"`
}
Landscape defines model for Landscape.
type LandscapeList ¶
type LandscapeList struct {
Data []Landscape `json:"data"`
}
LandscapeList defines model for LandscapeList.
type LandscapeQueryId ¶
type LandscapeQueryId = string
LandscapeQueryId defines model for LandscapeQueryId.
type ListArtifactDeploymentsV1Params ¶
type ListArtifactDeploymentsV1Params struct {
// LandscapeId Filter by landscapeId
LandscapeId *LandscapeQueryId `form:"landscapeId,omitempty" json:"landscapeId,omitempty"`
// VectorDeploymentId Filter by vectorDeploymentId
VectorDeploymentId *VectorDeploymentQueryId `form:"vectorDeploymentId,omitempty" json:"vectorDeploymentId,omitempty"`
}
ListArtifactDeploymentsV1Params defines parameters for ListArtifactDeploymentsV1.
type ListArtifactDeploymentsV1RequestObject ¶
type ListArtifactDeploymentsV1RequestObject struct {
ProjectId ProjectPathId `json:"projectId"`
Params ListArtifactDeploymentsV1Params
}
type ListArtifactDeploymentsV1ResponseObject ¶
type ListArtifactDeploymentsV1ResponseObject interface {
VisitListArtifactDeploymentsV1Response(w http.ResponseWriter) error
}
type ListArtifactDeploymentsV1200JSONResponse ¶
type ListArtifactDeploymentsV1200JSONResponse ArtifactDeploymentList
func (ListArtifactDeploymentsV1200JSONResponse) VisitListArtifactDeploymentsV1Response ¶
func (response ListArtifactDeploymentsV1200JSONResponse) VisitListArtifactDeploymentsV1Response(w http.ResponseWriter) error
type ListArtifactDeploymentsV1401JSONResponse ¶
func (ListArtifactDeploymentsV1401JSONResponse) VisitListArtifactDeploymentsV1Response ¶
func (response ListArtifactDeploymentsV1401JSONResponse) VisitListArtifactDeploymentsV1Response(w http.ResponseWriter) error
type ListArtifactDeploymentsV1403JSONResponse ¶
type ListArtifactDeploymentsV1403JSONResponse struct{ ForbiddenJSONResponse }
func (ListArtifactDeploymentsV1403JSONResponse) VisitListArtifactDeploymentsV1Response ¶
func (response ListArtifactDeploymentsV1403JSONResponse) VisitListArtifactDeploymentsV1Response(w http.ResponseWriter) error
type ListArtifactDeploymentsV1500JSONResponse ¶
type ListArtifactDeploymentsV1500JSONResponse struct{ InternalErrorJSONResponse }
func (ListArtifactDeploymentsV1500JSONResponse) VisitListArtifactDeploymentsV1Response ¶
func (response ListArtifactDeploymentsV1500JSONResponse) VisitListArtifactDeploymentsV1Response(w http.ResponseWriter) error
type ListLandscapesV1RequestObject ¶
type ListLandscapesV1RequestObject struct {
ProjectId ProjectPathId `json:"projectId"`
}
type ListLandscapesV1ResponseObject ¶
type ListLandscapesV1ResponseObject interface {
VisitListLandscapesV1Response(w http.ResponseWriter) error
}
type ListLandscapesV1200JSONResponse ¶
type ListLandscapesV1200JSONResponse LandscapeList
func (ListLandscapesV1200JSONResponse) VisitListLandscapesV1Response ¶
func (response ListLandscapesV1200JSONResponse) VisitListLandscapesV1Response(w http.ResponseWriter) error
type ListLandscapesV1401JSONResponse ¶
func (ListLandscapesV1401JSONResponse) VisitListLandscapesV1Response ¶
func (response ListLandscapesV1401JSONResponse) VisitListLandscapesV1Response(w http.ResponseWriter) error
type ListLandscapesV1403JSONResponse ¶
type ListLandscapesV1403JSONResponse struct{ ForbiddenJSONResponse }
func (ListLandscapesV1403JSONResponse) VisitListLandscapesV1Response ¶
func (response ListLandscapesV1403JSONResponse) VisitListLandscapesV1Response(w http.ResponseWriter) error
type ListLandscapesV1404JSONResponse ¶
type ListLandscapesV1404JSONResponse struct{ NotFoundJSONResponse }
func (ListLandscapesV1404JSONResponse) VisitListLandscapesV1Response ¶
func (response ListLandscapesV1404JSONResponse) VisitListLandscapesV1Response(w http.ResponseWriter) error
type ListLandscapesV1500JSONResponse ¶
type ListLandscapesV1500JSONResponse struct{ InternalErrorJSONResponse }
func (ListLandscapesV1500JSONResponse) VisitListLandscapesV1Response ¶
func (response ListLandscapesV1500JSONResponse) VisitListLandscapesV1Response(w http.ResponseWriter) error
type ListProjectsV1RequestObject ¶
type ListProjectsV1RequestObject struct {
}
type ListProjectsV1ResponseObject ¶
type ListProjectsV1ResponseObject interface {
VisitListProjectsV1Response(w http.ResponseWriter) error
}
type ListProjectsV1200JSONResponse ¶
type ListProjectsV1200JSONResponse ProjectList
func (ListProjectsV1200JSONResponse) VisitListProjectsV1Response ¶
func (response ListProjectsV1200JSONResponse) VisitListProjectsV1Response(w http.ResponseWriter) error
type ListProjectsV1401JSONResponse ¶
func (ListProjectsV1401JSONResponse) VisitListProjectsV1Response ¶
func (response ListProjectsV1401JSONResponse) VisitListProjectsV1Response(w http.ResponseWriter) error
type ListProjectsV1500JSONResponse ¶
type ListProjectsV1500JSONResponse struct{ InternalErrorJSONResponse }
func (ListProjectsV1500JSONResponse) VisitListProjectsV1Response ¶
func (response ListProjectsV1500JSONResponse) VisitListProjectsV1Response(w http.ResponseWriter) error
type ListStagesV1Params ¶
type ListStagesV1Params struct {
// LandscapeId Filter by landscapeId
LandscapeId *LandscapeQueryId `form:"landscapeId,omitempty" json:"landscapeId,omitempty"`
}
ListStagesV1Params defines parameters for ListStagesV1.
type ListStagesV1RequestObject ¶
type ListStagesV1RequestObject struct {
ProjectId ProjectPathId `json:"projectId"`
Params ListStagesV1Params
}
type ListStagesV1ResponseObject ¶
type ListStagesV1ResponseObject interface {
VisitListStagesV1Response(w http.ResponseWriter) error
}
type ListStagesV1200JSONResponse ¶
type ListStagesV1200JSONResponse StageList
func (ListStagesV1200JSONResponse) VisitListStagesV1Response ¶
func (response ListStagesV1200JSONResponse) VisitListStagesV1Response(w http.ResponseWriter) error
type ListStagesV1401JSONResponse ¶
func (ListStagesV1401JSONResponse) VisitListStagesV1Response ¶
func (response ListStagesV1401JSONResponse) VisitListStagesV1Response(w http.ResponseWriter) error
type ListStagesV1403JSONResponse ¶
type ListStagesV1403JSONResponse struct{ ForbiddenJSONResponse }
func (ListStagesV1403JSONResponse) VisitListStagesV1Response ¶
func (response ListStagesV1403JSONResponse) VisitListStagesV1Response(w http.ResponseWriter) error
type ListStagesV1500JSONResponse ¶
type ListStagesV1500JSONResponse struct{ InternalErrorJSONResponse }
func (ListStagesV1500JSONResponse) VisitListStagesV1Response ¶
func (response ListStagesV1500JSONResponse) VisitListStagesV1Response(w http.ResponseWriter) error
type ListVectorDeploymentsV1Params ¶
type ListVectorDeploymentsV1Params struct {
// LandscapeId Filter by landscapeId
LandscapeId *LandscapeQueryId `form:"landscapeId,omitempty" json:"landscapeId,omitempty"`
}
ListVectorDeploymentsV1Params defines parameters for ListVectorDeploymentsV1.
type ListVectorDeploymentsV1RequestObject ¶
type ListVectorDeploymentsV1RequestObject struct {
ProjectId ProjectPathId `json:"projectId"`
Params ListVectorDeploymentsV1Params
}
type ListVectorDeploymentsV1ResponseObject ¶
type ListVectorDeploymentsV1ResponseObject interface {
VisitListVectorDeploymentsV1Response(w http.ResponseWriter) error
}
type ListVectorDeploymentsV1200JSONResponse ¶
type ListVectorDeploymentsV1200JSONResponse VectorDeploymentList
func (ListVectorDeploymentsV1200JSONResponse) VisitListVectorDeploymentsV1Response ¶
func (response ListVectorDeploymentsV1200JSONResponse) VisitListVectorDeploymentsV1Response(w http.ResponseWriter) error
type ListVectorDeploymentsV1401JSONResponse ¶
func (ListVectorDeploymentsV1401JSONResponse) VisitListVectorDeploymentsV1Response ¶
func (response ListVectorDeploymentsV1401JSONResponse) VisitListVectorDeploymentsV1Response(w http.ResponseWriter) error
type ListVectorDeploymentsV1403JSONResponse ¶
type ListVectorDeploymentsV1403JSONResponse struct{ ForbiddenJSONResponse }
func (ListVectorDeploymentsV1403JSONResponse) VisitListVectorDeploymentsV1Response ¶
func (response ListVectorDeploymentsV1403JSONResponse) VisitListVectorDeploymentsV1Response(w http.ResponseWriter) error
type ListVectorDeploymentsV1500JSONResponse ¶
type ListVectorDeploymentsV1500JSONResponse struct{ InternalErrorJSONResponse }
func (ListVectorDeploymentsV1500JSONResponse) VisitListVectorDeploymentsV1Response ¶
func (response ListVectorDeploymentsV1500JSONResponse) VisitListVectorDeploymentsV1Response(w http.ResponseWriter) error
type LoginV1Params ¶
type LoginV1Params struct {
// ReturnUrl Fully qualified URL to redirect to after login. The URL must be present in the API server allowlist.
ReturnUrl string `form:"return_url" json:"return_url"`
// CodeChallenge PKCE S256 challenge used for CLI login.
CodeChallenge *string `form:"code_challenge,omitempty" json:"code_challenge,omitempty"`
}
LoginV1Params defines parameters for LoginV1.
type LoginV1RequestObject ¶
type LoginV1RequestObject struct {
Params LoginV1Params
}
type LoginV1ResponseObject ¶
type LoginV1ResponseObject interface {
VisitLoginV1Response(w http.ResponseWriter) error
}
type LoginV1302Response ¶
type LoginV1302Response struct {
Headers LoginV1302ResponseHeaders
}
func (LoginV1302Response) VisitLoginV1Response ¶
func (response LoginV1302Response) VisitLoginV1Response(w http.ResponseWriter) error
type LoginV1302ResponseHeaders ¶
type LoginV1302ResponseHeaders struct {
Location *string
}
type LoginV1400JSONResponse ¶
type LoginV1400JSONResponse struct{ BadRequestJSONResponse }
func (LoginV1400JSONResponse) VisitLoginV1Response ¶
func (response LoginV1400JSONResponse) VisitLoginV1Response(w http.ResponseWriter) error
type LoginV1500JSONResponse ¶
type LoginV1500JSONResponse struct{ InternalErrorJSONResponse }
func (LoginV1500JSONResponse) VisitLoginV1Response ¶
func (response LoginV1500JSONResponse) VisitLoginV1Response(w http.ResponseWriter) error
type LogoutV1RequestObject ¶
type LogoutV1RequestObject struct {
}
type LogoutV1ResponseObject ¶
type LogoutV1ResponseObject interface {
VisitLogoutV1Response(w http.ResponseWriter) error
}
type LogoutV1200Response ¶
type LogoutV1200Response struct {
Headers LogoutV1200ResponseHeaders
}
func (LogoutV1200Response) VisitLogoutV1Response ¶
func (response LogoutV1200Response) VisitLogoutV1Response(w http.ResponseWriter) error
type LogoutV1200ResponseHeaders ¶
type LogoutV1200ResponseHeaders struct {
SetCookie *string
}
type LogoutV1401JSONResponse ¶
func (LogoutV1401JSONResponse) VisitLogoutV1Response ¶
func (response LogoutV1401JSONResponse) VisitLogoutV1Response(w http.ResponseWriter) error
type NotFoundJSONResponse ¶
type NotFoundJSONResponse ErrorResponse
type PostExchangeCodeV1JSONBody ¶
type PostExchangeCodeV1JSONBody struct {
Code string `json:"code"`
Verifier string `json:"verifier"`
}
PostExchangeCodeV1JSONBody defines parameters for PostExchangeCodeV1.
type PostExchangeCodeV1JSONRequestBody ¶
type PostExchangeCodeV1JSONRequestBody PostExchangeCodeV1JSONBody
PostExchangeCodeV1JSONRequestBody defines body for PostExchangeCodeV1 for application/json ContentType.
type PostExchangeCodeV1RequestObject ¶
type PostExchangeCodeV1RequestObject struct {
Body *PostExchangeCodeV1JSONRequestBody
}
type PostExchangeCodeV1ResponseObject ¶
type PostExchangeCodeV1ResponseObject interface {
VisitPostExchangeCodeV1Response(w http.ResponseWriter) error
}
type PostExchangeCodeV1200Response ¶
type PostExchangeCodeV1200Response struct {
Headers PostExchangeCodeV1200ResponseHeaders
}
func (PostExchangeCodeV1200Response) VisitPostExchangeCodeV1Response ¶
func (response PostExchangeCodeV1200Response) VisitPostExchangeCodeV1Response(w http.ResponseWriter) error
type PostExchangeCodeV1200ResponseHeaders ¶
type PostExchangeCodeV1200ResponseHeaders struct {
SetCookie *string
}
type PostExchangeCodeV1401JSONResponse ¶
func (PostExchangeCodeV1401JSONResponse) VisitPostExchangeCodeV1Response ¶
func (response PostExchangeCodeV1401JSONResponse) VisitPostExchangeCodeV1Response(w http.ResponseWriter) error
type PostExchangeCodeV1500JSONResponse ¶
type PostExchangeCodeV1500JSONResponse struct{ InternalErrorJSONResponse }
func (PostExchangeCodeV1500JSONResponse) VisitPostExchangeCodeV1Response ¶
func (response PostExchangeCodeV1500JSONResponse) VisitPostExchangeCodeV1Response(w http.ResponseWriter) error
type Project ¶
type Project struct {
// Id The project id
Id ProjectId `json:"id"`
// Name The name of the project
Name string `json:"name"`
}
Project defines model for Project.
type ProjectList ¶
type ProjectList struct {
Data []Project `json:"data"`
}
ProjectList defines model for ProjectList.
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 {
// AuthCallbackV1 OIDC callback
// (GET /v1/auth/callback)
AuthCallbackV1(w http.ResponseWriter, r *http.Request, params AuthCallbackV1Params)
// PostExchangeCodeV1 Send temp exchange code and PKCE verifier to get session
// (POST /v1/exchange)
PostExchangeCodeV1(w http.ResponseWriter, r *http.Request)
// GetIdentityV1 Get the current user identity
// (GET /v1/identity)
GetIdentityV1(w http.ResponseWriter, r *http.Request)
// LoginV1 Initiate OIDC login
// (GET /v1/login)
LoginV1(w http.ResponseWriter, r *http.Request, params LoginV1Params)
// LogoutV1 Terminate the current session
// (POST /v1/logout)
LogoutV1(w http.ResponseWriter, r *http.Request)
// ListProjectsV1 List all projects
// (GET /v1/projects)
ListProjectsV1(w http.ResponseWriter, r *http.Request)
// ListArtifactDeploymentsV1 List all artifactDeployments for a project.
// (GET /v1/projects/{projectId}/artifactDeployments)
ListArtifactDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListArtifactDeploymentsV1Params)
// ListLandscapesV1 List all landscapes for a specific project
// (GET /v1/projects/{projectId}/landscapes)
ListLandscapesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId)
// ListStagesV1 List all stages for a project
// (GET /v1/projects/{projectId}/stages)
ListStagesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListStagesV1Params)
// ListVectorDeploymentsV1 List all vectorDeployments for a project
// (GET /v1/projects/{projectId}/vectorDeployments)
ListVectorDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListVectorDeploymentsV1Params)
}
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) AuthCallbackV1 ¶
func (siw *ServerInterfaceWrapper) AuthCallbackV1(w http.ResponseWriter, r *http.Request)
AuthCallbackV1 operation middleware
func (*ServerInterfaceWrapper) GetIdentityV1 ¶
func (siw *ServerInterfaceWrapper) GetIdentityV1(w http.ResponseWriter, r *http.Request)
GetIdentityV1 operation middleware
func (*ServerInterfaceWrapper) ListArtifactDeploymentsV1 ¶
func (siw *ServerInterfaceWrapper) ListArtifactDeploymentsV1(w http.ResponseWriter, r *http.Request)
ListArtifactDeploymentsV1 operation middleware
func (*ServerInterfaceWrapper) ListLandscapesV1 ¶
func (siw *ServerInterfaceWrapper) ListLandscapesV1(w http.ResponseWriter, r *http.Request)
ListLandscapesV1 operation middleware
func (*ServerInterfaceWrapper) ListProjectsV1 ¶
func (siw *ServerInterfaceWrapper) ListProjectsV1(w http.ResponseWriter, r *http.Request)
ListProjectsV1 operation middleware
func (*ServerInterfaceWrapper) ListStagesV1 ¶
func (siw *ServerInterfaceWrapper) ListStagesV1(w http.ResponseWriter, r *http.Request)
ListStagesV1 operation middleware
func (*ServerInterfaceWrapper) ListVectorDeploymentsV1 ¶
func (siw *ServerInterfaceWrapper) ListVectorDeploymentsV1(w http.ResponseWriter, r *http.Request)
ListVectorDeploymentsV1 operation middleware
func (*ServerInterfaceWrapper) LoginV1 ¶
func (siw *ServerInterfaceWrapper) LoginV1(w http.ResponseWriter, r *http.Request)
LoginV1 operation middleware
func (*ServerInterfaceWrapper) LogoutV1 ¶
func (siw *ServerInterfaceWrapper) LogoutV1(w http.ResponseWriter, r *http.Request)
LogoutV1 operation middleware
func (*ServerInterfaceWrapper) PostExchangeCodeV1 ¶
func (siw *ServerInterfaceWrapper) PostExchangeCodeV1(w http.ResponseWriter, r *http.Request)
PostExchangeCodeV1 operation middleware
type Stage ¶
type Stage struct {
// Id The stage id
Id StageId `json:"id"`
// LandscapeId The landscape id
LandscapeId LandscapeId `json:"landscapeId"`
// Name The stage name
Name string `json:"name"`
TargetStageVersion StageVersion `json:"targetStageVersion"`
}
Stage defines model for Stage.
type StageList ¶
type StageList struct {
Data []Stage `json:"data"`
}
StageList defines model for StageList.
type StageVersion ¶
type StageVersion struct {
// Active Indicates if this is the latest active stageVersion
Active bool `json:"active"`
// Id The stageVersion id
Id StageVersionId `json:"id"`
// StageGeneration Generation of the parent stage
StageGeneration int `json:"stageGeneration"`
Status StageVersionStatus `json:"status"`
// Vector StageVersion vector
Vector string `json:"vector"`
}
StageVersion defines model for StageVersion.
type StageVersionStatus ¶
type StageVersionStatus string
StageVersionStatus defines model for StageVersion.Status.
const (
DeploymentCreated StageVersionStatus = "DeploymentCreated"
)
Defines values for StageVersionStatus.
func (StageVersionStatus) Valid ¶
func (e StageVersionStatus) Valid() bool
Valid indicates whether the value is a known member of the StageVersionStatus enum.
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 StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// AuthCallbackV1 OIDC callback
// (GET /v1/auth/callback)
AuthCallbackV1(ctx context.Context, request AuthCallbackV1RequestObject) (AuthCallbackV1ResponseObject, error)
// PostExchangeCodeV1 Send temp exchange code and PKCE verifier to get session
// (POST /v1/exchange)
PostExchangeCodeV1(ctx context.Context, request PostExchangeCodeV1RequestObject) (PostExchangeCodeV1ResponseObject, error)
// GetIdentityV1 Get the current user identity
// (GET /v1/identity)
GetIdentityV1(ctx context.Context, request GetIdentityV1RequestObject) (GetIdentityV1ResponseObject, error)
// LoginV1 Initiate OIDC login
// (GET /v1/login)
LoginV1(ctx context.Context, request LoginV1RequestObject) (LoginV1ResponseObject, error)
// LogoutV1 Terminate the current session
// (POST /v1/logout)
LogoutV1(ctx context.Context, request LogoutV1RequestObject) (LogoutV1ResponseObject, error)
// ListProjectsV1 List all projects
// (GET /v1/projects)
ListProjectsV1(ctx context.Context, request ListProjectsV1RequestObject) (ListProjectsV1ResponseObject, error)
// ListArtifactDeploymentsV1 List all artifactDeployments for a project.
// (GET /v1/projects/{projectId}/artifactDeployments)
ListArtifactDeploymentsV1(ctx context.Context, request ListArtifactDeploymentsV1RequestObject) (ListArtifactDeploymentsV1ResponseObject, error)
// ListLandscapesV1 List all landscapes for a specific project
// (GET /v1/projects/{projectId}/landscapes)
ListLandscapesV1(ctx context.Context, request ListLandscapesV1RequestObject) (ListLandscapesV1ResponseObject, error)
// ListStagesV1 List all stages for a project
// (GET /v1/projects/{projectId}/stages)
ListStagesV1(ctx context.Context, request ListStagesV1RequestObject) (ListStagesV1ResponseObject, error)
// ListVectorDeploymentsV1 List all vectorDeployments for a project
// (GET /v1/projects/{projectId}/vectorDeployments)
ListVectorDeploymentsV1(ctx context.Context, request ListVectorDeploymentsV1RequestObject) (ListVectorDeploymentsV1ResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnauthorizedJSONResponse ¶
type UnauthorizedJSONResponse ErrorResponse
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) AuthCallbackV1 ¶
func (_ Unimplemented) AuthCallbackV1(w http.ResponseWriter, r *http.Request, params AuthCallbackV1Params)
AuthCallbackV1 OIDC callback (GET /v1/auth/callback)
func (Unimplemented) GetIdentityV1 ¶
func (_ Unimplemented) GetIdentityV1(w http.ResponseWriter, r *http.Request)
GetIdentityV1 Get the current user identity (GET /v1/identity)
func (Unimplemented) ListArtifactDeploymentsV1 ¶
func (_ Unimplemented) ListArtifactDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListArtifactDeploymentsV1Params)
ListArtifactDeploymentsV1 List all artifactDeployments for a project. (GET /v1/projects/{projectId}/artifactDeployments)
func (Unimplemented) ListLandscapesV1 ¶
func (_ Unimplemented) ListLandscapesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId)
ListLandscapesV1 List all landscapes for a specific project (GET /v1/projects/{projectId}/landscapes)
func (Unimplemented) ListProjectsV1 ¶
func (_ Unimplemented) ListProjectsV1(w http.ResponseWriter, r *http.Request)
ListProjectsV1 List all projects (GET /v1/projects)
func (Unimplemented) ListStagesV1 ¶
func (_ Unimplemented) ListStagesV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListStagesV1Params)
ListStagesV1 List all stages for a project (GET /v1/projects/{projectId}/stages)
func (Unimplemented) ListVectorDeploymentsV1 ¶
func (_ Unimplemented) ListVectorDeploymentsV1(w http.ResponseWriter, r *http.Request, projectId ProjectPathId, params ListVectorDeploymentsV1Params)
ListVectorDeploymentsV1 List all vectorDeployments for a project (GET /v1/projects/{projectId}/vectorDeployments)
func (Unimplemented) LoginV1 ¶
func (_ Unimplemented) LoginV1(w http.ResponseWriter, r *http.Request, params LoginV1Params)
LoginV1 Initiate OIDC login (GET /v1/login)
func (Unimplemented) LogoutV1 ¶
func (_ Unimplemented) LogoutV1(w http.ResponseWriter, r *http.Request)
LogoutV1 Terminate the current session (POST /v1/logout)
func (Unimplemented) PostExchangeCodeV1 ¶
func (_ Unimplemented) PostExchangeCodeV1(w http.ResponseWriter, r *http.Request)
PostExchangeCodeV1 Send temp exchange code and PKCE verifier to get session (POST /v1/exchange)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type VectorDeployment ¶
type VectorDeployment struct {
// Id The vectorDeployment id
Id VectorDeploymentId `json:"id"`
// LandscapeId The landscape id
LandscapeId LandscapeId `json:"landscapeId"`
// StageId The stage id
StageId StageId `json:"stageId"`
// Status The vectorDeployment status
Status VectorDeploymentStatus `json:"status"`
Vector VectorReference `json:"vector"`
}
VectorDeployment defines model for VectorDeployment.
type VectorDeploymentId ¶
type VectorDeploymentId = string
VectorDeploymentId The vectorDeployment id
type VectorDeploymentList ¶
type VectorDeploymentList struct {
Data []VectorDeployment `json:"data"`
}
VectorDeploymentList defines model for VectorDeploymentList.
type VectorDeploymentQueryId ¶
type VectorDeploymentQueryId = string
VectorDeploymentQueryId defines model for VectorDeploymentQueryId.
type VectorDeploymentStatus ¶
type VectorDeploymentStatus string
VectorDeploymentStatus The vectorDeployment status
const ( ArtifactDeploymentCreated VectorDeploymentStatus = "ArtifactDeploymentCreated" VectorDownloaded VectorDeploymentStatus = "VectorDownloaded" )
Defines values for VectorDeploymentStatus.
func (VectorDeploymentStatus) Valid ¶
func (e VectorDeploymentStatus) Valid() bool
Valid indicates whether the value is a known member of the VectorDeploymentStatus enum.
type VectorReference ¶
type VectorReference = ComponentReference
VectorReference defines model for VectorReference.