snippet

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for snippet API

func (*Client) GetSnippetsWorkspaceEncodedIDFilesPath

func (a *Client) GetSnippetsWorkspaceEncodedIDFilesPath(params *GetSnippetsWorkspaceEncodedIDFilesPathParams, authInfo runtime.ClientAuthInfoWriter) error
GetSnippetsWorkspaceEncodedIDFilesPath Convenience resource for getting to a snippet's raw files without the

need for first having to retrieve the snippet itself and having to pull out the versioned file links.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetSnippetsWorkspaceEncodedIDFilesPath(params *GetSnippetsWorkspaceEncodedIDFilesPathParams, authInfo runtime.ClientAuthInfoWriter) error

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new snippet API client.

type GetSnippetsWorkspaceEncodedIDFilesPathForbidden

type GetSnippetsWorkspaceEncodedIDFilesPathForbidden struct {
	Payload *models.Error
}

GetSnippetsWorkspaceEncodedIDFilesPathForbidden handles this case with default header values.

If the authenticated user does not have access to the snippet.

func NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden

func NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden() *GetSnippetsWorkspaceEncodedIDFilesPathForbidden

NewGetSnippetsWorkspaceEncodedIDFilesPathForbidden creates a GetSnippetsWorkspaceEncodedIDFilesPathForbidden with default headers values

func (*GetSnippetsWorkspaceEncodedIDFilesPathForbidden) Error

func (*GetSnippetsWorkspaceEncodedIDFilesPathForbidden) GetPayload

type GetSnippetsWorkspaceEncodedIDFilesPathFound

type GetSnippetsWorkspaceEncodedIDFilesPathFound struct {
	/*The URL of the most recent file revision.
	 */
	Location string
}

GetSnippetsWorkspaceEncodedIDFilesPathFound handles this case with default header values.

A redirect to the most recent revision of the specified file.

func NewGetSnippetsWorkspaceEncodedIDFilesPathFound

func NewGetSnippetsWorkspaceEncodedIDFilesPathFound() *GetSnippetsWorkspaceEncodedIDFilesPathFound

NewGetSnippetsWorkspaceEncodedIDFilesPathFound creates a GetSnippetsWorkspaceEncodedIDFilesPathFound with default headers values

func (*GetSnippetsWorkspaceEncodedIDFilesPathFound) Error

type GetSnippetsWorkspaceEncodedIDFilesPathNotFound

type GetSnippetsWorkspaceEncodedIDFilesPathNotFound struct {
	Payload *models.Error
}

GetSnippetsWorkspaceEncodedIDFilesPathNotFound handles this case with default header values.

If the snippet does not exist.

func NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound

func NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound() *GetSnippetsWorkspaceEncodedIDFilesPathNotFound

NewGetSnippetsWorkspaceEncodedIDFilesPathNotFound creates a GetSnippetsWorkspaceEncodedIDFilesPathNotFound with default headers values

func (*GetSnippetsWorkspaceEncodedIDFilesPathNotFound) Error

func (*GetSnippetsWorkspaceEncodedIDFilesPathNotFound) GetPayload

type GetSnippetsWorkspaceEncodedIDFilesPathParams

type GetSnippetsWorkspaceEncodedIDFilesPathParams struct {

	/*EncodedID*/
	EncodedID string
	/*Path*/
	Path string
	/*Workspace
	  This can either be the workspace ID (slug) or the workspace UUID
	surrounded by curly-braces, for example: `{workspace UUID}`.


	*/
	Workspace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSnippetsWorkspaceEncodedIDFilesPathParams contains all the parameters to send to the API endpoint for the get snippets workspace encoded ID files path operation typically these are written to a http.Request

func NewGetSnippetsWorkspaceEncodedIDFilesPathParams

func NewGetSnippetsWorkspaceEncodedIDFilesPathParams() *GetSnippetsWorkspaceEncodedIDFilesPathParams

NewGetSnippetsWorkspaceEncodedIDFilesPathParams creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized.

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext(ctx context.Context) *GetSnippetsWorkspaceEncodedIDFilesPathParams

NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithContext creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a context for a request

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient(client *http.Client) *GetSnippetsWorkspaceEncodedIDFilesPathParams

NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithHTTPClient creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout

func NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout(timeout time.Duration) *GetSnippetsWorkspaceEncodedIDFilesPathParams

NewGetSnippetsWorkspaceEncodedIDFilesPathParamsWithTimeout creates a new GetSnippetsWorkspaceEncodedIDFilesPathParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetContext

SetContext adds the context to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetEncodedID

func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetEncodedID(encodedID string)

SetEncodedID adds the encodedId to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetHTTPClient

func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetPath

SetPath adds the path to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetTimeout

SetTimeout adds the timeout to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) SetWorkspace

func (o *GetSnippetsWorkspaceEncodedIDFilesPathParams) SetWorkspace(workspace string)

SetWorkspace adds the workspace to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithContext

WithContext adds the context to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithEncodedID

WithEncodedID adds the encodedID to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithPath

WithPath adds the path to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithTimeout

WithTimeout adds the timeout to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WithWorkspace

WithWorkspace adds the workspace to the get snippets workspace encoded ID files path params

func (*GetSnippetsWorkspaceEncodedIDFilesPathParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSnippetsWorkspaceEncodedIDFilesPathReader

type GetSnippetsWorkspaceEncodedIDFilesPathReader struct {
	// contains filtered or unexported fields
}

GetSnippetsWorkspaceEncodedIDFilesPathReader is a Reader for the GetSnippetsWorkspaceEncodedIDFilesPath structure.

func (*GetSnippetsWorkspaceEncodedIDFilesPathReader) ReadResponse

func (o *GetSnippetsWorkspaceEncodedIDFilesPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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