Documentation
¶
Overview ¶
Package lfsapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- func NewLfsBatchRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
- func NewLfsBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLfsStageMetadataRequest(server string, body LfsStageMetadataJSONRequestBody) (*http.Request, error)
- func NewLfsStageMetadataRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
- func NewLfsStageMetadataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLfsUploadProxyRequestWithBody(server string, oid string, contentType string, body io.Reader) (*http.Request, error)
- func NewLfsVerifyRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
- func NewLfsVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func RegisterHandlers(router fiber.Router, si ServerInterface)
- func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
- type AccessMethod
- type AccessMethodAccessUrl
- type AccessMethodAuthorizations
- type Action
- type BatchActions
- type BatchRequest
- type BatchRequestObject
- type BatchRequestOperation
- type BatchResponse
- type BatchResponseObject
- type Checksum
- type Client
- func (c *Client) LfsBatchWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LfsBatchWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LfsStageMetadata(ctx context.Context, body LfsStageMetadataJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) LfsStageMetadataWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LfsUploadProxyWithBody(ctx context.Context, oid string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LfsVerifyWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LfsVerifyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) LfsBatchWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, ...) (*LfsBatchResponse, error)
- func (c *ClientWithResponses) LfsBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LfsBatchResponse, error)
- func (c *ClientWithResponses) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, ...) (*LfsStageMetadataResponse, error)
- func (c *ClientWithResponses) LfsStageMetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LfsStageMetadataResponse, error)
- func (c *ClientWithResponses) LfsStageMetadataWithResponse(ctx context.Context, body LfsStageMetadataJSONRequestBody, ...) (*LfsStageMetadataResponse, error)
- func (c *ClientWithResponses) LfsUploadProxyWithBodyWithResponse(ctx context.Context, oid string, contentType string, body io.Reader, ...) (*LfsUploadProxyResponse, error)
- func (c *ClientWithResponses) LfsVerifyWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, ...) (*LfsVerifyResponse, error)
- func (c *ClientWithResponses) LfsVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LfsVerifyResponse, error)
- type ClientWithResponsesInterface
- type DrsObjectCandidate
- type FiberServerOptions
- type HttpRequestDoer
- type LFSErrorResponse
- type LfsBatch200ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch401ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch401ResponseHeaders
- type LfsBatch403ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch404ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch406ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch413ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch422ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch429ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch500ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch502ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch503ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch504ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch507ApplicationVndGitLfsPlusJSONResponse
- type LfsBatch509ApplicationVndGitLfsPlusJSONResponse
- type LfsBatchApplicationVndGitLfsPlusJSONRequestBody
- type LfsBatchRequestObject
- type LfsBatchResponse
- type LfsBatchResponseObject
- type LfsStageMetadata200ApplicationVndGitLfsPlusJSONResponse
- type LfsStageMetadata200JSONResponse
- type LfsStageMetadata400JSONResponse
- type LfsStageMetadata401JSONResponse
- type LfsStageMetadata401ResponseHeaders
- type LfsStageMetadata403JSONResponse
- type LfsStageMetadata500JSONResponse
- type LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody
- type LfsStageMetadataJSONRequestBody
- type LfsStageMetadataRequestObject
- type LfsStageMetadataResponse
- type LfsStageMetadataResponseObject
- type LfsUploadProxy200Response
- type LfsUploadProxy400TextResponse
- type LfsUploadProxy401TextResponse
- type LfsUploadProxy403TextResponse
- type LfsUploadProxy500TextResponse
- type LfsUploadProxy502TextResponse
- type LfsUploadProxy507TextResponse
- type LfsUploadProxyRequestObject
- type LfsUploadProxyResponse
- type LfsUploadProxyResponseObject
- type LfsVerify200Response
- type LfsVerify400ApplicationVndGitLfsPlusJSONResponse
- type LfsVerify401ApplicationVndGitLfsPlusJSONResponse
- type LfsVerify401ResponseHeaders
- type LfsVerify403ApplicationVndGitLfsPlusJSONResponse
- type LfsVerify404ApplicationVndGitLfsPlusJSONResponse
- type LfsVerify500ApplicationVndGitLfsPlusJSONResponse
- type LfsVerifyApplicationVndGitLfsPlusJSONRequestBody
- type LfsVerifyRequestObject
- type LfsVerifyResponse
- type LfsVerifyResponseObject
- type MetadataSubmitRequest
- type MetadataSubmitResponse
- type MiddlewareFunc
- type ObjectError
- type RefSpec
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type VerifyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLfsBatchRequestWithApplicationVndGitLfsPlusJSONBody ¶
func NewLfsBatchRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
NewLfsBatchRequestWithApplicationVndGitLfsPlusJSONBody calls the generic LfsBatch builder with application/vnd.git-lfs+json body
func NewLfsBatchRequestWithBody ¶
func NewLfsBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLfsBatchRequestWithBody generates requests for LfsBatch with any type of body
func NewLfsStageMetadataRequest ¶
func NewLfsStageMetadataRequest(server string, body LfsStageMetadataJSONRequestBody) (*http.Request, error)
NewLfsStageMetadataRequest calls the generic LfsStageMetadata builder with application/json body
func NewLfsStageMetadataRequestWithApplicationVndGitLfsPlusJSONBody ¶
func NewLfsStageMetadataRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
NewLfsStageMetadataRequestWithApplicationVndGitLfsPlusJSONBody calls the generic LfsStageMetadata builder with application/vnd.git-lfs+json body
func NewLfsStageMetadataRequestWithBody ¶
func NewLfsStageMetadataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLfsStageMetadataRequestWithBody generates requests for LfsStageMetadata with any type of body
func NewLfsUploadProxyRequestWithBody ¶
func NewLfsUploadProxyRequestWithBody(server string, oid string, contentType string, body io.Reader) (*http.Request, error)
NewLfsUploadProxyRequestWithBody generates requests for LfsUploadProxy with any type of body
func NewLfsVerifyRequestWithApplicationVndGitLfsPlusJSONBody ¶
func NewLfsVerifyRequestWithApplicationVndGitLfsPlusJSONBody(server string, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody) (*http.Request, error)
NewLfsVerifyRequestWithApplicationVndGitLfsPlusJSONBody calls the generic LfsVerify builder with application/vnd.git-lfs+json body
func NewLfsVerifyRequestWithBody ¶
func NewLfsVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLfsVerifyRequestWithBody generates requests for LfsVerify with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router fiber.Router, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AccessMethod ¶
type AccessMethod struct {
AccessId *string `json:"access_id,omitempty"`
AccessUrl *AccessMethodAccessUrl `json:"access_url,omitempty"`
Authorizations *AccessMethodAuthorizations `json:"authorizations,omitempty"`
Region *string `json:"region,omitempty"`
Type *string `json:"type,omitempty"`
}
AccessMethod defines model for AccessMethod.
type AccessMethodAccessUrl ¶
type AccessMethodAccessUrl struct {
Url *string `json:"url,omitempty"`
}
AccessMethodAccessUrl defines model for AccessMethodAccessUrl.
type AccessMethodAuthorizations ¶
type AccessMethodAuthorizations struct {
BearerAuthIssuers *[]string `json:"bearer_auth_issuers,omitempty"`
}
AccessMethodAuthorizations defines model for AccessMethodAuthorizations.
type Action ¶
type Action struct {
// ExpiresAt RFC3339 timestamp
ExpiresAt *time.Time `json:"expires_at,omitempty"`
ExpiresIn *int32 `json:"expires_in,omitempty"`
Header *map[string]string `json:"header,omitempty"`
Href string `json:"href"`
}
Action defines model for Action.
type BatchActions ¶
type BatchActions struct {
Download *Action `json:"download,omitempty"`
Upload *Action `json:"upload,omitempty"`
Verify *Action `json:"verify,omitempty"`
}
BatchActions defines model for BatchActions.
type BatchRequest ¶
type BatchRequest struct {
HashAlgo *string `json:"hash_algo,omitempty"`
Objects []BatchRequestObject `json:"objects"`
Operation BatchRequestOperation `json:"operation"`
Ref *RefSpec `json:"ref,omitempty"`
Transfers *[]string `json:"transfers,omitempty"`
}
BatchRequest defines model for BatchRequest.
type BatchRequestObject ¶
BatchRequestObject defines model for BatchRequestObject.
type BatchRequestOperation ¶
type BatchRequestOperation string
BatchRequestOperation defines model for BatchRequest.Operation.
const ( Download BatchRequestOperation = "download" Upload BatchRequestOperation = "upload" )
Defines values for BatchRequestOperation.
type BatchResponse ¶
type BatchResponse struct {
HashAlgo *string `json:"hash_algo,omitempty"`
Objects []BatchResponseObject `json:"objects"`
Transfer *string `json:"transfer,omitempty"`
}
BatchResponse defines model for BatchResponse.
type BatchResponseObject ¶
type BatchResponseObject struct {
Actions *BatchActions `json:"actions,omitempty"`
Authenticated *bool `json:"authenticated,omitempty"`
Error *ObjectError `json:"error,omitempty"`
Oid string `json:"oid"`
Size int64 `json:"size"`
}
BatchResponseObject defines model for BatchResponseObject.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) LfsBatchWithApplicationVndGitLfsPlusJSONBody ¶
func (c *Client) LfsBatchWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LfsBatchWithBody ¶
func (*Client) LfsStageMetadata ¶
func (c *Client) LfsStageMetadata(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody ¶
func (c *Client) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LfsStageMetadataWithBody ¶
func (*Client) LfsUploadProxyWithBody ¶
func (*Client) LfsVerifyWithApplicationVndGitLfsPlusJSONBody ¶
func (c *Client) LfsVerifyWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// LfsBatchWithBody request with any body
LfsBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LfsBatchWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LfsStageMetadataWithBody request with any body
LfsStageMetadataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LfsStageMetadata(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LfsUploadProxyWithBody request with any body
LfsUploadProxyWithBody(ctx context.Context, oid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// LfsVerifyWithBody request with any body
LfsVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LfsVerifyWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) LfsBatchWithApplicationVndGitLfsPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) LfsBatchWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsBatchResponse, error)
func (*ClientWithResponses) LfsBatchWithBodyWithResponse ¶
func (c *ClientWithResponses) LfsBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsBatchResponse, error)
LfsBatchWithBodyWithResponse request with arbitrary body returning *LfsBatchResponse
func (*ClientWithResponses) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
func (*ClientWithResponses) LfsStageMetadataWithBodyWithResponse ¶
func (c *ClientWithResponses) LfsStageMetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
LfsStageMetadataWithBodyWithResponse request with arbitrary body returning *LfsStageMetadataResponse
func (*ClientWithResponses) LfsStageMetadataWithResponse ¶
func (c *ClientWithResponses) LfsStageMetadataWithResponse(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
func (*ClientWithResponses) LfsUploadProxyWithBodyWithResponse ¶
func (c *ClientWithResponses) LfsUploadProxyWithBodyWithResponse(ctx context.Context, oid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsUploadProxyResponse, error)
LfsUploadProxyWithBodyWithResponse request with arbitrary body returning *LfsUploadProxyResponse
func (*ClientWithResponses) LfsVerifyWithApplicationVndGitLfsPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) LfsVerifyWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsVerifyResponse, error)
func (*ClientWithResponses) LfsVerifyWithBodyWithResponse ¶
func (c *ClientWithResponses) LfsVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsVerifyResponse, error)
LfsVerifyWithBodyWithResponse request with arbitrary body returning *LfsVerifyResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// LfsBatchWithBodyWithResponse request with any body
LfsBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsBatchResponse, error)
LfsBatchWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsBatchResponse, error)
// LfsStageMetadataWithBodyWithResponse request with any body
LfsStageMetadataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
LfsStageMetadataWithResponse(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
LfsStageMetadataWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsStageMetadataResponse, error)
// LfsUploadProxyWithBodyWithResponse request with any body
LfsUploadProxyWithBodyWithResponse(ctx context.Context, oid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsUploadProxyResponse, error)
// LfsVerifyWithBodyWithResponse request with any body
LfsVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LfsVerifyResponse, error)
LfsVerifyWithApplicationVndGitLfsPlusJSONBodyWithResponse(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*LfsVerifyResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DrsObjectCandidate ¶
type DrsObjectCandidate struct {
AccessMethods *[]AccessMethod `json:"access_methods,omitempty"`
Aliases *[]string `json:"aliases,omitempty"`
Checksums *[]Checksum `json:"checksums,omitempty"`
Description *string `json:"description,omitempty"`
Id *string `json:"id,omitempty"`
MimeType *string `json:"mime_type,omitempty"`
Name *string `json:"name,omitempty"`
Size *int64 `json:"size,omitempty"`
}
DrsObjectCandidate defines model for DrsObjectCandidate.
type FiberServerOptions ¶
type FiberServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
}
FiberServerOptions provides options for the Fiber server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LFSErrorResponse ¶
type LFSErrorResponse struct {
DocumentationUrl *string `json:"documentation_url,omitempty"`
Message string `json:"message"`
RequestId *string `json:"request_id,omitempty"`
}
LFSErrorResponse defines model for LFSErrorResponse.
type LfsBatch200ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch200ApplicationVndGitLfsPlusJSONResponse BatchResponse
func (LfsBatch200ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch200ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch401ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch401ApplicationVndGitLfsPlusJSONResponse struct {
Body LFSErrorResponse
Headers LfsBatch401ResponseHeaders
}
func (LfsBatch401ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch401ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch401ResponseHeaders ¶
type LfsBatch401ResponseHeaders struct {
LFSAuthenticate string
}
type LfsBatch403ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch403ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch403ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch403ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch404ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch404ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch404ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch404ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch406ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch406ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch406ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch406ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch413ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch413ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch413ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch413ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch422ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch422ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch422ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch422ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch429ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch429ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch429ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch429ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch500ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch500ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch500ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch500ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch502ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch502ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch502ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch502ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch503ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch503ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch503ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch503ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch504ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch504ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch504ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch504ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch507ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch507ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch507ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch507ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatch509ApplicationVndGitLfsPlusJSONResponse ¶
type LfsBatch509ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsBatch509ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse ¶
func (response LfsBatch509ApplicationVndGitLfsPlusJSONResponse) VisitLfsBatchResponse(ctx fiber.Ctx) error
type LfsBatchApplicationVndGitLfsPlusJSONRequestBody ¶
type LfsBatchApplicationVndGitLfsPlusJSONRequestBody = BatchRequest
LfsBatchApplicationVndGitLfsPlusJSONRequestBody defines body for LfsBatch for application/vnd.git-lfs+json ContentType.
type LfsBatchRequestObject ¶
type LfsBatchRequestObject struct {
Body *LfsBatchApplicationVndGitLfsPlusJSONRequestBody
}
type LfsBatchResponse ¶
type LfsBatchResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndGitLfsJSON200 *BatchResponse
ApplicationvndGitLfsJSON401 *LFSErrorResponse
ApplicationvndGitLfsJSON403 *LFSErrorResponse
ApplicationvndGitLfsJSON404 *LFSErrorResponse
ApplicationvndGitLfsJSON406 *LFSErrorResponse
ApplicationvndGitLfsJSON413 *LFSErrorResponse
ApplicationvndGitLfsJSON422 *LFSErrorResponse
ApplicationvndGitLfsJSON429 *LFSErrorResponse
ApplicationvndGitLfsJSON500 *LFSErrorResponse
ApplicationvndGitLfsJSON502 *LFSErrorResponse
ApplicationvndGitLfsJSON503 *LFSErrorResponse
ApplicationvndGitLfsJSON504 *LFSErrorResponse
ApplicationvndGitLfsJSON507 *LFSErrorResponse
ApplicationvndGitLfsJSON509 *LFSErrorResponse
}
func ParseLfsBatchResponse ¶
func ParseLfsBatchResponse(rsp *http.Response) (*LfsBatchResponse, error)
ParseLfsBatchResponse parses an HTTP response from a LfsBatchWithResponse call
func (LfsBatchResponse) Status ¶
func (r LfsBatchResponse) Status() string
Status returns HTTPResponse.Status
func (LfsBatchResponse) StatusCode ¶
func (r LfsBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LfsBatchResponseObject ¶
type LfsStageMetadata200ApplicationVndGitLfsPlusJSONResponse ¶
type LfsStageMetadata200ApplicationVndGitLfsPlusJSONResponse MetadataSubmitResponse
func (LfsStageMetadata200ApplicationVndGitLfsPlusJSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata200ApplicationVndGitLfsPlusJSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadata200JSONResponse ¶
type LfsStageMetadata200JSONResponse MetadataSubmitResponse
func (LfsStageMetadata200JSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata200JSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadata400JSONResponse ¶
type LfsStageMetadata400JSONResponse LFSErrorResponse
func (LfsStageMetadata400JSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata400JSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadata401JSONResponse ¶
type LfsStageMetadata401JSONResponse struct {
Body LFSErrorResponse
Headers LfsStageMetadata401ResponseHeaders
}
func (LfsStageMetadata401JSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata401JSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadata401ResponseHeaders ¶
type LfsStageMetadata401ResponseHeaders struct {
LFSAuthenticate string
}
type LfsStageMetadata403JSONResponse ¶
type LfsStageMetadata403JSONResponse LFSErrorResponse
func (LfsStageMetadata403JSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata403JSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadata500JSONResponse ¶
type LfsStageMetadata500JSONResponse LFSErrorResponse
func (LfsStageMetadata500JSONResponse) VisitLfsStageMetadataResponse ¶
func (response LfsStageMetadata500JSONResponse) VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
type LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody ¶
type LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody = MetadataSubmitRequest
LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody defines body for LfsStageMetadata for application/vnd.git-lfs+json ContentType.
type LfsStageMetadataJSONRequestBody ¶
type LfsStageMetadataJSONRequestBody = MetadataSubmitRequest
LfsStageMetadataJSONRequestBody defines body for LfsStageMetadata for application/json ContentType.
type LfsStageMetadataRequestObject ¶
type LfsStageMetadataRequestObject struct {
JSONBody *LfsStageMetadataJSONRequestBody
ApplicationVndGitLfsPlusJSONBody *LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody
}
type LfsStageMetadataResponse ¶
type LfsStageMetadataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MetadataSubmitResponse
ApplicationvndGitLfsJSON200 *MetadataSubmitResponse
JSON400 *LFSErrorResponse
JSON401 *LFSErrorResponse
JSON403 *LFSErrorResponse
JSON500 *LFSErrorResponse
}
func ParseLfsStageMetadataResponse ¶
func ParseLfsStageMetadataResponse(rsp *http.Response) (*LfsStageMetadataResponse, error)
ParseLfsStageMetadataResponse parses an HTTP response from a LfsStageMetadataWithResponse call
func (LfsStageMetadataResponse) Status ¶
func (r LfsStageMetadataResponse) Status() string
Status returns HTTPResponse.Status
func (LfsStageMetadataResponse) StatusCode ¶
func (r LfsStageMetadataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LfsUploadProxy200Response ¶
type LfsUploadProxy200Response struct {
}
func (LfsUploadProxy200Response) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy200Response) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy400TextResponse ¶
type LfsUploadProxy400TextResponse string
func (LfsUploadProxy400TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy400TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy401TextResponse ¶
type LfsUploadProxy401TextResponse string
func (LfsUploadProxy401TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy401TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy403TextResponse ¶
type LfsUploadProxy403TextResponse string
func (LfsUploadProxy403TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy403TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy500TextResponse ¶
type LfsUploadProxy500TextResponse string
func (LfsUploadProxy500TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy500TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy502TextResponse ¶
type LfsUploadProxy502TextResponse string
func (LfsUploadProxy502TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy502TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxy507TextResponse ¶
type LfsUploadProxy507TextResponse string
func (LfsUploadProxy507TextResponse) VisitLfsUploadProxyResponse ¶
func (response LfsUploadProxy507TextResponse) VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
type LfsUploadProxyResponse ¶
func ParseLfsUploadProxyResponse ¶
func ParseLfsUploadProxyResponse(rsp *http.Response) (*LfsUploadProxyResponse, error)
ParseLfsUploadProxyResponse parses an HTTP response from a LfsUploadProxyWithResponse call
func (LfsUploadProxyResponse) Status ¶
func (r LfsUploadProxyResponse) Status() string
Status returns HTTPResponse.Status
func (LfsUploadProxyResponse) StatusCode ¶
func (r LfsUploadProxyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LfsVerify200Response ¶
type LfsVerify200Response struct {
}
func (LfsVerify200Response) VisitLfsVerifyResponse ¶
func (response LfsVerify200Response) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerify400ApplicationVndGitLfsPlusJSONResponse ¶
type LfsVerify400ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsVerify400ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse ¶
func (response LfsVerify400ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerify401ApplicationVndGitLfsPlusJSONResponse ¶
type LfsVerify401ApplicationVndGitLfsPlusJSONResponse struct {
Body LFSErrorResponse
Headers LfsVerify401ResponseHeaders
}
func (LfsVerify401ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse ¶
func (response LfsVerify401ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerify401ResponseHeaders ¶
type LfsVerify401ResponseHeaders struct {
LFSAuthenticate string
}
type LfsVerify403ApplicationVndGitLfsPlusJSONResponse ¶
type LfsVerify403ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsVerify403ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse ¶
func (response LfsVerify403ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerify404ApplicationVndGitLfsPlusJSONResponse ¶
type LfsVerify404ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsVerify404ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse ¶
func (response LfsVerify404ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerify500ApplicationVndGitLfsPlusJSONResponse ¶
type LfsVerify500ApplicationVndGitLfsPlusJSONResponse LFSErrorResponse
func (LfsVerify500ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse ¶
func (response LfsVerify500ApplicationVndGitLfsPlusJSONResponse) VisitLfsVerifyResponse(ctx fiber.Ctx) error
type LfsVerifyApplicationVndGitLfsPlusJSONRequestBody ¶
type LfsVerifyApplicationVndGitLfsPlusJSONRequestBody = VerifyRequest
LfsVerifyApplicationVndGitLfsPlusJSONRequestBody defines body for LfsVerify for application/vnd.git-lfs+json ContentType.
type LfsVerifyRequestObject ¶
type LfsVerifyRequestObject struct {
Body *LfsVerifyApplicationVndGitLfsPlusJSONRequestBody
}
type LfsVerifyResponse ¶
type LfsVerifyResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndGitLfsJSON400 *LFSErrorResponse
ApplicationvndGitLfsJSON401 *LFSErrorResponse
ApplicationvndGitLfsJSON403 *LFSErrorResponse
ApplicationvndGitLfsJSON404 *LFSErrorResponse
ApplicationvndGitLfsJSON500 *LFSErrorResponse
}
func ParseLfsVerifyResponse ¶
func ParseLfsVerifyResponse(rsp *http.Response) (*LfsVerifyResponse, error)
ParseLfsVerifyResponse parses an HTTP response from a LfsVerifyWithResponse call
func (LfsVerifyResponse) Status ¶
func (r LfsVerifyResponse) Status() string
Status returns HTTPResponse.Status
func (LfsVerifyResponse) StatusCode ¶
func (r LfsVerifyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LfsVerifyResponseObject ¶
type MetadataSubmitRequest ¶
type MetadataSubmitRequest struct {
Candidates []DrsObjectCandidate `json:"candidates"`
TtlSeconds *int64 `json:"ttl_seconds,omitempty"`
}
MetadataSubmitRequest defines model for MetadataSubmitRequest.
type MetadataSubmitResponse ¶
type MetadataSubmitResponse struct {
Staged int32 `json:"staged"`
}
MetadataSubmitResponse defines model for MetadataSubmitResponse.
type MiddlewareFunc ¶
type ObjectError ¶
type ObjectError struct {
// Code Object-level error code (commonly HTTP-like status code)
Code int32 `json:"code"`
Message string `json:"message"`
}
ObjectError defines model for ObjectError.
type RefSpec ¶
type RefSpec struct {
// Name Fully-qualified server refspec
Name *string `json:"name,omitempty"`
}
RefSpec defines model for RefSpec.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// Git LFS Batch API
// (POST /info/lfs/objects/batch)
LfsBatch(c fiber.Ctx) error
// Stage metadata for deferred object registration (drs-server extension)
// (POST /info/lfs/objects/metadata)
LfsStageMetadata(c fiber.Ctx) error
// Upload object bytes via drs-server upload proxy (drs-server extension)
// (PUT /info/lfs/objects/{oid})
LfsUploadProxy(c fiber.Ctx, oid string) error
// Git LFS Verify API
// (POST /info/lfs/verify)
LfsVerify(c fiber.Ctx) error
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) LfsBatch ¶
func (siw *ServerInterfaceWrapper) LfsBatch(c fiber.Ctx) error
LfsBatch operation middleware
func (*ServerInterfaceWrapper) LfsStageMetadata ¶
func (siw *ServerInterfaceWrapper) LfsStageMetadata(c fiber.Ctx) error
LfsStageMetadata operation middleware
func (*ServerInterfaceWrapper) LfsUploadProxy ¶
func (siw *ServerInterfaceWrapper) LfsUploadProxy(c fiber.Ctx) error
LfsUploadProxy operation middleware
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Git LFS Batch API
// (POST /info/lfs/objects/batch)
LfsBatch(ctx context.Context, request LfsBatchRequestObject) (LfsBatchResponseObject, error)
// Stage metadata for deferred object registration (drs-server extension)
// (POST /info/lfs/objects/metadata)
LfsStageMetadata(ctx context.Context, request LfsStageMetadataRequestObject) (LfsStageMetadataResponseObject, error)
// Upload object bytes via drs-server upload proxy (drs-server extension)
// (PUT /info/lfs/objects/{oid})
LfsUploadProxy(ctx context.Context, request LfsUploadProxyRequestObject) (LfsUploadProxyResponseObject, error)
// Git LFS Verify API
// (POST /info/lfs/verify)
LfsVerify(ctx context.Context, request LfsVerifyRequestObject) (LfsVerifyResponseObject, error)
}
StrictServerInterface represents all server handlers.
type VerifyRequest ¶
VerifyRequest defines model for VerifyRequest.