lfsapi

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 11 Imported by: 0

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.8.0 DO NOT EDIT.

Index

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 constructs an http.Request for the LfsBatch method, with any body, and a specified content type

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 constructs an http.Request for the LfsStageMetadata method, with any body, and a specified content type

func NewLfsUploadProxyRequestWithBody

func NewLfsUploadProxyRequestWithBody(server string, oid string, contentType string, body io.Reader) (*http.Request, error)

NewLfsUploadProxyRequestWithBody constructs an http.Request for the LfsUploadProxy method, with any body, and a specified content type

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 constructs an http.Request for the LfsVerify method, with any body, and a specified content type

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

type BatchRequestObject struct {
	Oid  string `json:"oid"`
	Size int64  `json:"size"`
}

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 Checksum

type Checksum struct {
	Checksum string `json:"checksum"`
	Type     string `json:"type"`
}

Checksum defines model for Checksum.

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)

LfsBatchWithApplicationVndGitLfsPlusJSONBody Git LFS Batch API

Requests upload/download actions for one or more LFS objects. Successful responses are HTTP 200, with per-object errors in `objects[].error`.

Takes a body of the `application/vnd.git-lfs+json` content type.

Corresponds with POST /info/lfs/objects/batch (the `LfsBatch` operationId).

func (*Client) LfsBatchWithBody

func (c *Client) LfsBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsBatchWithBody Git LFS Batch API

Requests upload/download actions for one or more LFS objects. Successful responses are HTTP 200, with per-object errors in `objects[].error`.

Takes any type of body and a specified content type.

Corresponds with POST /info/lfs/objects/batch (the `LfsBatch` operationId).

func (*Client) LfsStageMetadata

func (c *Client) LfsStageMetadata(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsStageMetadata Stage metadata for deferred object registration (drs-server extension)

Takes a body of the `application/json` content type.

Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).

func (*Client) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody

func (c *Client) LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody Stage metadata for deferred object registration (drs-server extension)

Takes a body of the `application/vnd.git-lfs+json` content type.

Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).

func (*Client) LfsStageMetadataWithBody

func (c *Client) LfsStageMetadataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsStageMetadataWithBody Stage metadata for deferred object registration (drs-server extension)

Takes any type of body and a specified content type.

Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).

func (*Client) LfsUploadProxyWithBody

func (c *Client) LfsUploadProxyWithBody(ctx context.Context, oid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsUploadProxyWithBody Upload object bytes via drs-server upload proxy (drs-server extension)

Takes any type of body and a specified content type.

Corresponds with PUT /info/lfs/objects/{oid} (the `LfsUploadProxy` operationId).

func (*Client) LfsVerifyWithApplicationVndGitLfsPlusJSONBody

func (c *Client) LfsVerifyWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsVerifyWithApplicationVndGitLfsPlusJSONBody Git LFS Verify API

Verifies uploaded object state. In drs-server this may consume staged metadata and complete object registration if needed.

Takes a body of the `application/vnd.git-lfs+json` content type.

Corresponds with POST /info/lfs/verify (the `LfsVerify` operationId).

func (*Client) LfsVerifyWithBody

func (c *Client) LfsVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LfsVerifyWithBody Git LFS Verify API

Verifies uploaded object state. In drs-server this may consume staged metadata and complete object registration if needed.

Takes any type of body and a specified content type.

Corresponds with POST /info/lfs/verify (the `LfsVerify` operationId).

type ClientInterface

type ClientInterface interface {

	// LfsBatchWithBody Git LFS Batch API
	//
	// Requests upload/download actions for one or more LFS objects.
	// Successful responses are HTTP 200, with per-object errors in `objects[].error`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /info/lfs/objects/batch (the `LfsBatch` operationId).
	LfsBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsBatchWithApplicationVndGitLfsPlusJSONBody Git LFS Batch API
	//
	// Requests upload/download actions for one or more LFS objects.
	// Successful responses are HTTP 200, with per-object errors in `objects[].error`.
	//
	// Takes a body of the `application/vnd.git-lfs+json` content type.
	//
	// Corresponds with POST /info/lfs/objects/batch (the `LfsBatch` operationId).
	LfsBatchWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsBatchApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsStageMetadataWithBody Stage metadata for deferred object registration (drs-server extension)
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).
	LfsStageMetadataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsStageMetadata Stage metadata for deferred object registration (drs-server extension)
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).
	LfsStageMetadata(ctx context.Context, body LfsStageMetadataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody Stage metadata for deferred object registration (drs-server extension)
	//
	// Takes a body of the `application/vnd.git-lfs+json` content type.
	//
	// Corresponds with POST /info/lfs/objects/metadata (the `LfsStageMetadata` operationId).
	LfsStageMetadataWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsStageMetadataApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsUploadProxyWithBody Upload object bytes via drs-server upload proxy (drs-server extension)
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /info/lfs/objects/{oid} (the `LfsUploadProxy` operationId).
	LfsUploadProxyWithBody(ctx context.Context, oid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsVerifyWithBody Git LFS Verify API
	//
	// Verifies uploaded object state. In drs-server this may consume staged metadata
	// and complete object registration if needed.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /info/lfs/verify (the `LfsVerify` operationId).
	LfsVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LfsVerifyWithApplicationVndGitLfsPlusJSONBody Git LFS Verify API
	//
	// Verifies uploaded object state. In drs-server this may consume staged metadata
	// and complete object registration if needed.
	//
	// Takes a body of the `application/vnd.git-lfs+json` content type.
	//
	// Corresponds with POST /info/lfs/verify (the `LfsVerify` operationId).
	LfsVerifyWithApplicationVndGitLfsPlusJSONBody(ctx context.Context, body LfsVerifyApplicationVndGitLfsPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

	// ControlledAccess Existing Syfon access scope retained in pending metadata.
	ControlledAccess *[]string `json:"controlled_access,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
	HandlerMiddlewares []HandlerMiddlewareFunc
}

FiberServerOptions provides options for the Fiber server.

type HandlerMiddlewareFunc added in v0.3.3

type HandlerMiddlewareFunc func(c fiber.Ctx, next fiber.Handler) error

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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 LfsBatchResponseObject interface {
	VisitLfsBatchResponse(ctx fiber.Ctx) error
}

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 LfsStageMetadataResponseObject

type LfsStageMetadataResponseObject interface {
	VisitLfsStageMetadataResponse(ctx fiber.Ctx) error
}

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 LfsUploadProxyRequestObject

type LfsUploadProxyRequestObject struct {
	Oid  string `json:"oid"`
	Body io.Reader
}

type LfsUploadProxyResponse

type LfsUploadProxyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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 LfsUploadProxyResponseObject

type LfsUploadProxyResponseObject interface {
	VisitLfsUploadProxyResponse(ctx fiber.Ctx) error
}

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 LfsVerifyResponseObject interface {
	VisitLfsVerifyResponse(ctx fiber.Ctx) error
}

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 MiddlewareFunc fiber.Handler

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

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// LfsBatch Git LFS Batch API
	// (POST /info/lfs/objects/batch)
	LfsBatch(c fiber.Ctx) error
	// LfsStageMetadata Stage metadata for deferred object registration (drs-server extension)
	// (POST /info/lfs/objects/metadata)
	LfsStageMetadata(c fiber.Ctx) error
	// LfsUploadProxy Upload object bytes via drs-server upload proxy (drs-server extension)
	// (PUT /info/lfs/objects/{oid})
	LfsUploadProxy(c fiber.Ctx, oid string) error
	// LfsVerify 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
	HandlerMiddlewares []HandlerMiddlewareFunc
}

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

func (*ServerInterfaceWrapper) LfsVerify

func (siw *ServerInterfaceWrapper) LfsVerify(c fiber.Ctx) error

LfsVerify operation middleware

type StrictHandlerFunc

type StrictHandlerFunc func(ctx fiber.Ctx, args any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// LfsBatch Git LFS Batch API
	// (POST /info/lfs/objects/batch)
	LfsBatch(ctx context.Context, request LfsBatchRequestObject) (LfsBatchResponseObject, error)
	// LfsStageMetadata Stage metadata for deferred object registration (drs-server extension)
	// (POST /info/lfs/objects/metadata)
	LfsStageMetadata(ctx context.Context, request LfsStageMetadataRequestObject) (LfsStageMetadataResponseObject, error)
	// LfsUploadProxy Upload object bytes via drs-server upload proxy (drs-server extension)
	// (PUT /info/lfs/objects/{oid})
	LfsUploadProxy(ctx context.Context, request LfsUploadProxyRequestObject) (LfsUploadProxyResponseObject, error)
	// LfsVerify Git LFS Verify API
	// (POST /info/lfs/verify)
	LfsVerify(ctx context.Context, request LfsVerifyRequestObject) (LfsVerifyResponseObject, error)
}

StrictServerInterface represents all server handlers.

type VerifyRequest

type VerifyRequest struct {
	Oid  string `json:"oid"`
	Size int64  `json:"size"`
}

VerifyRequest defines model for VerifyRequest.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL