miscellaneous

package
v0.0.0-...-078138e Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptTextHTML

func WithAcceptTextHTML(r *runtime.ClientOperation)

WithAcceptTextHTML sets the Accept header to "text/html".

func WithAcceptTextPlain

func WithAcceptTextPlain(r *runtime.ClientOperation)

WithAcceptTextPlain sets the Accept header to "text/plain".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeTextPlain

func WithContentTypeTextPlain(r *runtime.ClientOperation)

WithContentTypeTextPlain sets the Content-Type header to "text/plain".

Types

type Client

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

Client for miscellaneous API

func (*Client) GetGitignoreTemplateInfo

func (a *Client) GetGitignoreTemplateInfo(params *GetGitignoreTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGitignoreTemplateInfoOK, error)

GetGitignoreTemplateInfo returns information about a gitignore template

func (*Client) GetLabelTemplateInfo

func (a *Client) GetLabelTemplateInfo(params *GetLabelTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLabelTemplateInfoOK, error)

GetLabelTemplateInfo returns all labels in a template

func (*Client) GetLicenseTemplateInfo

func (a *Client) GetLicenseTemplateInfo(params *GetLicenseTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLicenseTemplateInfoOK, error)

GetLicenseTemplateInfo returns information about a license template

func (*Client) GetNodeInfo

func (a *Client) GetNodeInfo(params *GetNodeInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNodeInfoOK, error)

GetNodeInfo returns the nodeinfo of the gitea application

func (*Client) GetSigningKey

func (a *Client) GetSigningKey(params *GetSigningKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSigningKeyOK, error)

GetSigningKey gets default signing key gpg

func (*Client) GetVersion

func (a *Client) GetVersion(params *GetVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionOK, error)

GetVersion returns the version of the gitea application

func (*Client) ListGitignoresTemplates

func (a *Client) ListGitignoresTemplates(params *ListGitignoresTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGitignoresTemplatesOK, error)

ListGitignoresTemplates returns a list of all gitignore templates

func (*Client) ListLabelTemplates

func (a *Client) ListLabelTemplates(params *ListLabelTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLabelTemplatesOK, error)

ListLabelTemplates returns a list of all label templates

func (*Client) ListLicenseTemplates

func (a *Client) ListLicenseTemplates(params *ListLicenseTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLicenseTemplatesOK, error)

ListLicenseTemplates returns a list of all license templates

func (*Client) RenderMarkdown

func (a *Client) RenderMarkdown(params *RenderMarkdownParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkdownOK, error)

RenderMarkdown renders a markdown document as HTML

func (*Client) RenderMarkdownRaw

func (a *Client) RenderMarkdownRaw(params *RenderMarkdownRawParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkdownRawOK, error)

RenderMarkdownRaw renders raw markdown as HTML

func (*Client) RenderMarkup

func (a *Client) RenderMarkup(params *RenderMarkupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkupOK, error)

RenderMarkup renders a markup document as HTML

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetGitignoreTemplateInfo(params *GetGitignoreTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGitignoreTemplateInfoOK, error)

	GetLabelTemplateInfo(params *GetLabelTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLabelTemplateInfoOK, error)

	GetLicenseTemplateInfo(params *GetLicenseTemplateInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLicenseTemplateInfoOK, error)

	GetNodeInfo(params *GetNodeInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNodeInfoOK, error)

	GetSigningKey(params *GetSigningKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSigningKeyOK, error)

	GetVersion(params *GetVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionOK, error)

	ListGitignoresTemplates(params *ListGitignoresTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGitignoresTemplatesOK, error)

	ListLabelTemplates(params *ListLabelTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLabelTemplatesOK, error)

	ListLicenseTemplates(params *ListLicenseTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLicenseTemplatesOK, error)

	RenderMarkdown(params *RenderMarkdownParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkdownOK, error)

	RenderMarkdownRaw(params *RenderMarkdownRawParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkdownRawOK, error)

	RenderMarkup(params *RenderMarkupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RenderMarkupOK, 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 miscellaneous API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new miscellaneous API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new miscellaneous API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetGitignoreTemplateInfoNotFound

type GetGitignoreTemplateInfoNotFound struct {
}

GetGitignoreTemplateInfoNotFound describes a response with status code 404, with default header values.

APINotFound is a not found empty response

func NewGetGitignoreTemplateInfoNotFound

func NewGetGitignoreTemplateInfoNotFound() *GetGitignoreTemplateInfoNotFound

NewGetGitignoreTemplateInfoNotFound creates a GetGitignoreTemplateInfoNotFound with default headers values

func (*GetGitignoreTemplateInfoNotFound) Code

Code gets the status code for the get gitignore template info not found response

func (*GetGitignoreTemplateInfoNotFound) Error

func (*GetGitignoreTemplateInfoNotFound) IsClientError

func (o *GetGitignoreTemplateInfoNotFound) IsClientError() bool

IsClientError returns true when this get gitignore template info not found response has a 4xx status code

func (*GetGitignoreTemplateInfoNotFound) IsCode

func (o *GetGitignoreTemplateInfoNotFound) IsCode(code int) bool

IsCode returns true when this get gitignore template info not found response a status code equal to that given

func (*GetGitignoreTemplateInfoNotFound) IsRedirect

func (o *GetGitignoreTemplateInfoNotFound) IsRedirect() bool

IsRedirect returns true when this get gitignore template info not found response has a 3xx status code

func (*GetGitignoreTemplateInfoNotFound) IsServerError

func (o *GetGitignoreTemplateInfoNotFound) IsServerError() bool

IsServerError returns true when this get gitignore template info not found response has a 5xx status code

func (*GetGitignoreTemplateInfoNotFound) IsSuccess

func (o *GetGitignoreTemplateInfoNotFound) IsSuccess() bool

IsSuccess returns true when this get gitignore template info not found response has a 2xx status code

func (*GetGitignoreTemplateInfoNotFound) String

type GetGitignoreTemplateInfoOK

type GetGitignoreTemplateInfoOK struct {
	Payload *models.GitignoreTemplateInfo
}

GetGitignoreTemplateInfoOK describes a response with status code 200, with default header values.

GitignoreTemplateInfo

func NewGetGitignoreTemplateInfoOK

func NewGetGitignoreTemplateInfoOK() *GetGitignoreTemplateInfoOK

NewGetGitignoreTemplateInfoOK creates a GetGitignoreTemplateInfoOK with default headers values

func (*GetGitignoreTemplateInfoOK) Code

func (o *GetGitignoreTemplateInfoOK) Code() int

Code gets the status code for the get gitignore template info o k response

func (*GetGitignoreTemplateInfoOK) Error

func (*GetGitignoreTemplateInfoOK) GetPayload

func (*GetGitignoreTemplateInfoOK) IsClientError

func (o *GetGitignoreTemplateInfoOK) IsClientError() bool

IsClientError returns true when this get gitignore template info o k response has a 4xx status code

func (*GetGitignoreTemplateInfoOK) IsCode

func (o *GetGitignoreTemplateInfoOK) IsCode(code int) bool

IsCode returns true when this get gitignore template info o k response a status code equal to that given

func (*GetGitignoreTemplateInfoOK) IsRedirect

func (o *GetGitignoreTemplateInfoOK) IsRedirect() bool

IsRedirect returns true when this get gitignore template info o k response has a 3xx status code

func (*GetGitignoreTemplateInfoOK) IsServerError

func (o *GetGitignoreTemplateInfoOK) IsServerError() bool

IsServerError returns true when this get gitignore template info o k response has a 5xx status code

func (*GetGitignoreTemplateInfoOK) IsSuccess

func (o *GetGitignoreTemplateInfoOK) IsSuccess() bool

IsSuccess returns true when this get gitignore template info o k response has a 2xx status code

func (*GetGitignoreTemplateInfoOK) String

func (o *GetGitignoreTemplateInfoOK) String() string

type GetGitignoreTemplateInfoParams

type GetGitignoreTemplateInfoParams struct {

	/* Name.

	   name of the template
	*/
	Name string

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

GetGitignoreTemplateInfoParams contains all the parameters to send to the API endpoint

for the get gitignore template info operation.

Typically these are written to a http.Request.

func NewGetGitignoreTemplateInfoParams

func NewGetGitignoreTemplateInfoParams() *GetGitignoreTemplateInfoParams

NewGetGitignoreTemplateInfoParams creates a new GetGitignoreTemplateInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGitignoreTemplateInfoParamsWithContext

func NewGetGitignoreTemplateInfoParamsWithContext(ctx context.Context) *GetGitignoreTemplateInfoParams

NewGetGitignoreTemplateInfoParamsWithContext creates a new GetGitignoreTemplateInfoParams object with the ability to set a context for a request.

func NewGetGitignoreTemplateInfoParamsWithHTTPClient

func NewGetGitignoreTemplateInfoParamsWithHTTPClient(client *http.Client) *GetGitignoreTemplateInfoParams

NewGetGitignoreTemplateInfoParamsWithHTTPClient creates a new GetGitignoreTemplateInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetGitignoreTemplateInfoParamsWithTimeout

func NewGetGitignoreTemplateInfoParamsWithTimeout(timeout time.Duration) *GetGitignoreTemplateInfoParams

NewGetGitignoreTemplateInfoParamsWithTimeout creates a new GetGitignoreTemplateInfoParams object with the ability to set a timeout on a request.

func (*GetGitignoreTemplateInfoParams) SetContext

func (o *GetGitignoreTemplateInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) SetDefaults

func (o *GetGitignoreTemplateInfoParams) SetDefaults()

SetDefaults hydrates default values in the get gitignore template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetGitignoreTemplateInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) SetName

func (o *GetGitignoreTemplateInfoParams) SetName(name string)

SetName adds the name to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) SetTimeout

func (o *GetGitignoreTemplateInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) WithContext

WithContext adds the context to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) WithDefaults

WithDefaults hydrates default values in the get gitignore template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetGitignoreTemplateInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) WithName

WithName adds the name to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) WithTimeout

WithTimeout adds the timeout to the get gitignore template info params

func (*GetGitignoreTemplateInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGitignoreTemplateInfoReader

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

GetGitignoreTemplateInfoReader is a Reader for the GetGitignoreTemplateInfo structure.

func (*GetGitignoreTemplateInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLabelTemplateInfoNotFound

type GetLabelTemplateInfoNotFound struct {
}

GetLabelTemplateInfoNotFound describes a response with status code 404, with default header values.

APINotFound is a not found empty response

func NewGetLabelTemplateInfoNotFound

func NewGetLabelTemplateInfoNotFound() *GetLabelTemplateInfoNotFound

NewGetLabelTemplateInfoNotFound creates a GetLabelTemplateInfoNotFound with default headers values

func (*GetLabelTemplateInfoNotFound) Code

Code gets the status code for the get label template info not found response

func (*GetLabelTemplateInfoNotFound) Error

func (*GetLabelTemplateInfoNotFound) IsClientError

func (o *GetLabelTemplateInfoNotFound) IsClientError() bool

IsClientError returns true when this get label template info not found response has a 4xx status code

func (*GetLabelTemplateInfoNotFound) IsCode

func (o *GetLabelTemplateInfoNotFound) IsCode(code int) bool

IsCode returns true when this get label template info not found response a status code equal to that given

func (*GetLabelTemplateInfoNotFound) IsRedirect

func (o *GetLabelTemplateInfoNotFound) IsRedirect() bool

IsRedirect returns true when this get label template info not found response has a 3xx status code

func (*GetLabelTemplateInfoNotFound) IsServerError

func (o *GetLabelTemplateInfoNotFound) IsServerError() bool

IsServerError returns true when this get label template info not found response has a 5xx status code

func (*GetLabelTemplateInfoNotFound) IsSuccess

func (o *GetLabelTemplateInfoNotFound) IsSuccess() bool

IsSuccess returns true when this get label template info not found response has a 2xx status code

func (*GetLabelTemplateInfoNotFound) String

type GetLabelTemplateInfoOK

type GetLabelTemplateInfoOK struct {
	Payload []*models.LabelTemplate
}

GetLabelTemplateInfoOK describes a response with status code 200, with default header values.

LabelTemplateInfo

func NewGetLabelTemplateInfoOK

func NewGetLabelTemplateInfoOK() *GetLabelTemplateInfoOK

NewGetLabelTemplateInfoOK creates a GetLabelTemplateInfoOK with default headers values

func (*GetLabelTemplateInfoOK) Code

func (o *GetLabelTemplateInfoOK) Code() int

Code gets the status code for the get label template info o k response

func (*GetLabelTemplateInfoOK) Error

func (o *GetLabelTemplateInfoOK) Error() string

func (*GetLabelTemplateInfoOK) GetPayload

func (o *GetLabelTemplateInfoOK) GetPayload() []*models.LabelTemplate

func (*GetLabelTemplateInfoOK) IsClientError

func (o *GetLabelTemplateInfoOK) IsClientError() bool

IsClientError returns true when this get label template info o k response has a 4xx status code

func (*GetLabelTemplateInfoOK) IsCode

func (o *GetLabelTemplateInfoOK) IsCode(code int) bool

IsCode returns true when this get label template info o k response a status code equal to that given

func (*GetLabelTemplateInfoOK) IsRedirect

func (o *GetLabelTemplateInfoOK) IsRedirect() bool

IsRedirect returns true when this get label template info o k response has a 3xx status code

func (*GetLabelTemplateInfoOK) IsServerError

func (o *GetLabelTemplateInfoOK) IsServerError() bool

IsServerError returns true when this get label template info o k response has a 5xx status code

func (*GetLabelTemplateInfoOK) IsSuccess

func (o *GetLabelTemplateInfoOK) IsSuccess() bool

IsSuccess returns true when this get label template info o k response has a 2xx status code

func (*GetLabelTemplateInfoOK) String

func (o *GetLabelTemplateInfoOK) String() string

type GetLabelTemplateInfoParams

type GetLabelTemplateInfoParams struct {

	/* Name.

	   name of the template
	*/
	Name string

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

GetLabelTemplateInfoParams contains all the parameters to send to the API endpoint

for the get label template info operation.

Typically these are written to a http.Request.

func NewGetLabelTemplateInfoParams

func NewGetLabelTemplateInfoParams() *GetLabelTemplateInfoParams

NewGetLabelTemplateInfoParams creates a new GetLabelTemplateInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetLabelTemplateInfoParamsWithContext

func NewGetLabelTemplateInfoParamsWithContext(ctx context.Context) *GetLabelTemplateInfoParams

NewGetLabelTemplateInfoParamsWithContext creates a new GetLabelTemplateInfoParams object with the ability to set a context for a request.

func NewGetLabelTemplateInfoParamsWithHTTPClient

func NewGetLabelTemplateInfoParamsWithHTTPClient(client *http.Client) *GetLabelTemplateInfoParams

NewGetLabelTemplateInfoParamsWithHTTPClient creates a new GetLabelTemplateInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetLabelTemplateInfoParamsWithTimeout

func NewGetLabelTemplateInfoParamsWithTimeout(timeout time.Duration) *GetLabelTemplateInfoParams

NewGetLabelTemplateInfoParamsWithTimeout creates a new GetLabelTemplateInfoParams object with the ability to set a timeout on a request.

func (*GetLabelTemplateInfoParams) SetContext

func (o *GetLabelTemplateInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get label template info params

func (*GetLabelTemplateInfoParams) SetDefaults

func (o *GetLabelTemplateInfoParams) SetDefaults()

SetDefaults hydrates default values in the get label template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetLabelTemplateInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get label template info params

func (*GetLabelTemplateInfoParams) SetName

func (o *GetLabelTemplateInfoParams) SetName(name string)

SetName adds the name to the get label template info params

func (*GetLabelTemplateInfoParams) SetTimeout

func (o *GetLabelTemplateInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get label template info params

func (*GetLabelTemplateInfoParams) WithContext

WithContext adds the context to the get label template info params

func (*GetLabelTemplateInfoParams) WithDefaults

WithDefaults hydrates default values in the get label template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetLabelTemplateInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get label template info params

func (*GetLabelTemplateInfoParams) WithName

WithName adds the name to the get label template info params

func (*GetLabelTemplateInfoParams) WithTimeout

WithTimeout adds the timeout to the get label template info params

func (*GetLabelTemplateInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLabelTemplateInfoReader

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

GetLabelTemplateInfoReader is a Reader for the GetLabelTemplateInfo structure.

func (*GetLabelTemplateInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLicenseTemplateInfoNotFound

type GetLicenseTemplateInfoNotFound struct {
}

GetLicenseTemplateInfoNotFound describes a response with status code 404, with default header values.

APINotFound is a not found empty response

func NewGetLicenseTemplateInfoNotFound

func NewGetLicenseTemplateInfoNotFound() *GetLicenseTemplateInfoNotFound

NewGetLicenseTemplateInfoNotFound creates a GetLicenseTemplateInfoNotFound with default headers values

func (*GetLicenseTemplateInfoNotFound) Code

Code gets the status code for the get license template info not found response

func (*GetLicenseTemplateInfoNotFound) Error

func (*GetLicenseTemplateInfoNotFound) IsClientError

func (o *GetLicenseTemplateInfoNotFound) IsClientError() bool

IsClientError returns true when this get license template info not found response has a 4xx status code

func (*GetLicenseTemplateInfoNotFound) IsCode

func (o *GetLicenseTemplateInfoNotFound) IsCode(code int) bool

IsCode returns true when this get license template info not found response a status code equal to that given

func (*GetLicenseTemplateInfoNotFound) IsRedirect

func (o *GetLicenseTemplateInfoNotFound) IsRedirect() bool

IsRedirect returns true when this get license template info not found response has a 3xx status code

func (*GetLicenseTemplateInfoNotFound) IsServerError

func (o *GetLicenseTemplateInfoNotFound) IsServerError() bool

IsServerError returns true when this get license template info not found response has a 5xx status code

func (*GetLicenseTemplateInfoNotFound) IsSuccess

func (o *GetLicenseTemplateInfoNotFound) IsSuccess() bool

IsSuccess returns true when this get license template info not found response has a 2xx status code

func (*GetLicenseTemplateInfoNotFound) String

type GetLicenseTemplateInfoOK

type GetLicenseTemplateInfoOK struct {
	Payload *models.LicenseTemplateInfo
}

GetLicenseTemplateInfoOK describes a response with status code 200, with default header values.

LicenseTemplateInfo

func NewGetLicenseTemplateInfoOK

func NewGetLicenseTemplateInfoOK() *GetLicenseTemplateInfoOK

NewGetLicenseTemplateInfoOK creates a GetLicenseTemplateInfoOK with default headers values

func (*GetLicenseTemplateInfoOK) Code

func (o *GetLicenseTemplateInfoOK) Code() int

Code gets the status code for the get license template info o k response

func (*GetLicenseTemplateInfoOK) Error

func (o *GetLicenseTemplateInfoOK) Error() string

func (*GetLicenseTemplateInfoOK) GetPayload

func (*GetLicenseTemplateInfoOK) IsClientError

func (o *GetLicenseTemplateInfoOK) IsClientError() bool

IsClientError returns true when this get license template info o k response has a 4xx status code

func (*GetLicenseTemplateInfoOK) IsCode

func (o *GetLicenseTemplateInfoOK) IsCode(code int) bool

IsCode returns true when this get license template info o k response a status code equal to that given

func (*GetLicenseTemplateInfoOK) IsRedirect

func (o *GetLicenseTemplateInfoOK) IsRedirect() bool

IsRedirect returns true when this get license template info o k response has a 3xx status code

func (*GetLicenseTemplateInfoOK) IsServerError

func (o *GetLicenseTemplateInfoOK) IsServerError() bool

IsServerError returns true when this get license template info o k response has a 5xx status code

func (*GetLicenseTemplateInfoOK) IsSuccess

func (o *GetLicenseTemplateInfoOK) IsSuccess() bool

IsSuccess returns true when this get license template info o k response has a 2xx status code

func (*GetLicenseTemplateInfoOK) String

func (o *GetLicenseTemplateInfoOK) String() string

type GetLicenseTemplateInfoParams

type GetLicenseTemplateInfoParams struct {

	/* Name.

	   name of the license
	*/
	Name string

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

GetLicenseTemplateInfoParams contains all the parameters to send to the API endpoint

for the get license template info operation.

Typically these are written to a http.Request.

func NewGetLicenseTemplateInfoParams

func NewGetLicenseTemplateInfoParams() *GetLicenseTemplateInfoParams

NewGetLicenseTemplateInfoParams creates a new GetLicenseTemplateInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetLicenseTemplateInfoParamsWithContext

func NewGetLicenseTemplateInfoParamsWithContext(ctx context.Context) *GetLicenseTemplateInfoParams

NewGetLicenseTemplateInfoParamsWithContext creates a new GetLicenseTemplateInfoParams object with the ability to set a context for a request.

func NewGetLicenseTemplateInfoParamsWithHTTPClient

func NewGetLicenseTemplateInfoParamsWithHTTPClient(client *http.Client) *GetLicenseTemplateInfoParams

NewGetLicenseTemplateInfoParamsWithHTTPClient creates a new GetLicenseTemplateInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetLicenseTemplateInfoParamsWithTimeout

func NewGetLicenseTemplateInfoParamsWithTimeout(timeout time.Duration) *GetLicenseTemplateInfoParams

NewGetLicenseTemplateInfoParamsWithTimeout creates a new GetLicenseTemplateInfoParams object with the ability to set a timeout on a request.

func (*GetLicenseTemplateInfoParams) SetContext

func (o *GetLicenseTemplateInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get license template info params

func (*GetLicenseTemplateInfoParams) SetDefaults

func (o *GetLicenseTemplateInfoParams) SetDefaults()

SetDefaults hydrates default values in the get license template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetLicenseTemplateInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get license template info params

func (*GetLicenseTemplateInfoParams) SetName

func (o *GetLicenseTemplateInfoParams) SetName(name string)

SetName adds the name to the get license template info params

func (*GetLicenseTemplateInfoParams) SetTimeout

func (o *GetLicenseTemplateInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get license template info params

func (*GetLicenseTemplateInfoParams) WithContext

WithContext adds the context to the get license template info params

func (*GetLicenseTemplateInfoParams) WithDefaults

WithDefaults hydrates default values in the get license template info params (not the query body).

All values with no default are reset to their zero value.

func (*GetLicenseTemplateInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get license template info params

func (*GetLicenseTemplateInfoParams) WithName

WithName adds the name to the get license template info params

func (*GetLicenseTemplateInfoParams) WithTimeout

WithTimeout adds the timeout to the get license template info params

func (*GetLicenseTemplateInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLicenseTemplateInfoReader

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

GetLicenseTemplateInfoReader is a Reader for the GetLicenseTemplateInfo structure.

func (*GetLicenseTemplateInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNodeInfoOK

type GetNodeInfoOK struct {
	Payload *models.NodeInfo
}

GetNodeInfoOK describes a response with status code 200, with default header values.

NodeInfo

func NewGetNodeInfoOK

func NewGetNodeInfoOK() *GetNodeInfoOK

NewGetNodeInfoOK creates a GetNodeInfoOK with default headers values

func (*GetNodeInfoOK) Code

func (o *GetNodeInfoOK) Code() int

Code gets the status code for the get node info o k response

func (*GetNodeInfoOK) Error

func (o *GetNodeInfoOK) Error() string

func (*GetNodeInfoOK) GetPayload

func (o *GetNodeInfoOK) GetPayload() *models.NodeInfo

func (*GetNodeInfoOK) IsClientError

func (o *GetNodeInfoOK) IsClientError() bool

IsClientError returns true when this get node info o k response has a 4xx status code

func (*GetNodeInfoOK) IsCode

func (o *GetNodeInfoOK) IsCode(code int) bool

IsCode returns true when this get node info o k response a status code equal to that given

func (*GetNodeInfoOK) IsRedirect

func (o *GetNodeInfoOK) IsRedirect() bool

IsRedirect returns true when this get node info o k response has a 3xx status code

func (*GetNodeInfoOK) IsServerError

func (o *GetNodeInfoOK) IsServerError() bool

IsServerError returns true when this get node info o k response has a 5xx status code

func (*GetNodeInfoOK) IsSuccess

func (o *GetNodeInfoOK) IsSuccess() bool

IsSuccess returns true when this get node info o k response has a 2xx status code

func (*GetNodeInfoOK) String

func (o *GetNodeInfoOK) String() string

type GetNodeInfoParams

type GetNodeInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetNodeInfoParams contains all the parameters to send to the API endpoint

for the get node info operation.

Typically these are written to a http.Request.

func NewGetNodeInfoParams

func NewGetNodeInfoParams() *GetNodeInfoParams

NewGetNodeInfoParams creates a new GetNodeInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetNodeInfoParamsWithContext

func NewGetNodeInfoParamsWithContext(ctx context.Context) *GetNodeInfoParams

NewGetNodeInfoParamsWithContext creates a new GetNodeInfoParams object with the ability to set a context for a request.

func NewGetNodeInfoParamsWithHTTPClient

func NewGetNodeInfoParamsWithHTTPClient(client *http.Client) *GetNodeInfoParams

NewGetNodeInfoParamsWithHTTPClient creates a new GetNodeInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetNodeInfoParamsWithTimeout

func NewGetNodeInfoParamsWithTimeout(timeout time.Duration) *GetNodeInfoParams

NewGetNodeInfoParamsWithTimeout creates a new GetNodeInfoParams object with the ability to set a timeout on a request.

func (*GetNodeInfoParams) SetContext

func (o *GetNodeInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get node info params

func (*GetNodeInfoParams) SetDefaults

func (o *GetNodeInfoParams) SetDefaults()

SetDefaults hydrates default values in the get node info params (not the query body).

All values with no default are reset to their zero value.

func (*GetNodeInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get node info params

func (*GetNodeInfoParams) SetTimeout

func (o *GetNodeInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get node info params

func (*GetNodeInfoParams) WithContext

func (o *GetNodeInfoParams) WithContext(ctx context.Context) *GetNodeInfoParams

WithContext adds the context to the get node info params

func (*GetNodeInfoParams) WithDefaults

func (o *GetNodeInfoParams) WithDefaults() *GetNodeInfoParams

WithDefaults hydrates default values in the get node info params (not the query body).

All values with no default are reset to their zero value.

func (*GetNodeInfoParams) WithHTTPClient

func (o *GetNodeInfoParams) WithHTTPClient(client *http.Client) *GetNodeInfoParams

WithHTTPClient adds the HTTPClient to the get node info params

func (*GetNodeInfoParams) WithTimeout

func (o *GetNodeInfoParams) WithTimeout(timeout time.Duration) *GetNodeInfoParams

WithTimeout adds the timeout to the get node info params

func (*GetNodeInfoParams) WriteToRequest

func (o *GetNodeInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNodeInfoReader

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

GetNodeInfoReader is a Reader for the GetNodeInfo structure.

func (*GetNodeInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSigningKeyOK

type GetSigningKeyOK struct {
	Payload string
}

GetSigningKeyOK describes a response with status code 200, with default header values.

GPG armored public key

func NewGetSigningKeyOK

func NewGetSigningKeyOK() *GetSigningKeyOK

NewGetSigningKeyOK creates a GetSigningKeyOK with default headers values

func (*GetSigningKeyOK) Code

func (o *GetSigningKeyOK) Code() int

Code gets the status code for the get signing key o k response

func (*GetSigningKeyOK) Error

func (o *GetSigningKeyOK) Error() string

func (*GetSigningKeyOK) GetPayload

func (o *GetSigningKeyOK) GetPayload() string

func (*GetSigningKeyOK) IsClientError

func (o *GetSigningKeyOK) IsClientError() bool

IsClientError returns true when this get signing key o k response has a 4xx status code

func (*GetSigningKeyOK) IsCode

func (o *GetSigningKeyOK) IsCode(code int) bool

IsCode returns true when this get signing key o k response a status code equal to that given

func (*GetSigningKeyOK) IsRedirect

func (o *GetSigningKeyOK) IsRedirect() bool

IsRedirect returns true when this get signing key o k response has a 3xx status code

func (*GetSigningKeyOK) IsServerError

func (o *GetSigningKeyOK) IsServerError() bool

IsServerError returns true when this get signing key o k response has a 5xx status code

func (*GetSigningKeyOK) IsSuccess

func (o *GetSigningKeyOK) IsSuccess() bool

IsSuccess returns true when this get signing key o k response has a 2xx status code

func (*GetSigningKeyOK) String

func (o *GetSigningKeyOK) String() string

type GetSigningKeyParams

type GetSigningKeyParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSigningKeyParams contains all the parameters to send to the API endpoint

for the get signing key operation.

Typically these are written to a http.Request.

func NewGetSigningKeyParams

func NewGetSigningKeyParams() *GetSigningKeyParams

NewGetSigningKeyParams creates a new GetSigningKeyParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSigningKeyParamsWithContext

func NewGetSigningKeyParamsWithContext(ctx context.Context) *GetSigningKeyParams

NewGetSigningKeyParamsWithContext creates a new GetSigningKeyParams object with the ability to set a context for a request.

func NewGetSigningKeyParamsWithHTTPClient

func NewGetSigningKeyParamsWithHTTPClient(client *http.Client) *GetSigningKeyParams

NewGetSigningKeyParamsWithHTTPClient creates a new GetSigningKeyParams object with the ability to set a custom HTTPClient for a request.

func NewGetSigningKeyParamsWithTimeout

func NewGetSigningKeyParamsWithTimeout(timeout time.Duration) *GetSigningKeyParams

NewGetSigningKeyParamsWithTimeout creates a new GetSigningKeyParams object with the ability to set a timeout on a request.

func (*GetSigningKeyParams) SetContext

func (o *GetSigningKeyParams) SetContext(ctx context.Context)

SetContext adds the context to the get signing key params

func (*GetSigningKeyParams) SetDefaults

func (o *GetSigningKeyParams) SetDefaults()

SetDefaults hydrates default values in the get signing key params (not the query body).

All values with no default are reset to their zero value.

func (*GetSigningKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get signing key params

func (*GetSigningKeyParams) SetTimeout

func (o *GetSigningKeyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get signing key params

func (*GetSigningKeyParams) WithContext

WithContext adds the context to the get signing key params

func (*GetSigningKeyParams) WithDefaults

func (o *GetSigningKeyParams) WithDefaults() *GetSigningKeyParams

WithDefaults hydrates default values in the get signing key params (not the query body).

All values with no default are reset to their zero value.

func (*GetSigningKeyParams) WithHTTPClient

func (o *GetSigningKeyParams) WithHTTPClient(client *http.Client) *GetSigningKeyParams

WithHTTPClient adds the HTTPClient to the get signing key params

func (*GetSigningKeyParams) WithTimeout

func (o *GetSigningKeyParams) WithTimeout(timeout time.Duration) *GetSigningKeyParams

WithTimeout adds the timeout to the get signing key params

func (*GetSigningKeyParams) WriteToRequest

func (o *GetSigningKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSigningKeyReader

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

GetSigningKeyReader is a Reader for the GetSigningKey structure.

func (*GetSigningKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetVersionOK

type GetVersionOK struct {
	Payload *models.ServerVersion
}

GetVersionOK describes a response with status code 200, with default header values.

ServerVersion

func NewGetVersionOK

func NewGetVersionOK() *GetVersionOK

NewGetVersionOK creates a GetVersionOK with default headers values

func (*GetVersionOK) Code

func (o *GetVersionOK) Code() int

Code gets the status code for the get version o k response

func (*GetVersionOK) Error

func (o *GetVersionOK) Error() string

func (*GetVersionOK) GetPayload

func (o *GetVersionOK) GetPayload() *models.ServerVersion

func (*GetVersionOK) IsClientError

func (o *GetVersionOK) IsClientError() bool

IsClientError returns true when this get version o k response has a 4xx status code

func (*GetVersionOK) IsCode

func (o *GetVersionOK) IsCode(code int) bool

IsCode returns true when this get version o k response a status code equal to that given

func (*GetVersionOK) IsRedirect

func (o *GetVersionOK) IsRedirect() bool

IsRedirect returns true when this get version o k response has a 3xx status code

func (*GetVersionOK) IsServerError

func (o *GetVersionOK) IsServerError() bool

IsServerError returns true when this get version o k response has a 5xx status code

func (*GetVersionOK) IsSuccess

func (o *GetVersionOK) IsSuccess() bool

IsSuccess returns true when this get version o k response has a 2xx status code

func (*GetVersionOK) String

func (o *GetVersionOK) String() string

type GetVersionParams

type GetVersionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVersionParams contains all the parameters to send to the API endpoint

for the get version operation.

Typically these are written to a http.Request.

func NewGetVersionParams

func NewGetVersionParams() *GetVersionParams

NewGetVersionParams creates a new GetVersionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetVersionParamsWithContext

func NewGetVersionParamsWithContext(ctx context.Context) *GetVersionParams

NewGetVersionParamsWithContext creates a new GetVersionParams object with the ability to set a context for a request.

func NewGetVersionParamsWithHTTPClient

func NewGetVersionParamsWithHTTPClient(client *http.Client) *GetVersionParams

NewGetVersionParamsWithHTTPClient creates a new GetVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetVersionParamsWithTimeout

func NewGetVersionParamsWithTimeout(timeout time.Duration) *GetVersionParams

NewGetVersionParamsWithTimeout creates a new GetVersionParams object with the ability to set a timeout on a request.

func (*GetVersionParams) SetContext

func (o *GetVersionParams) SetContext(ctx context.Context)

SetContext adds the context to the get version params

func (*GetVersionParams) SetDefaults

func (o *GetVersionParams) SetDefaults()

SetDefaults hydrates default values in the get version params (not the query body).

All values with no default are reset to their zero value.

func (*GetVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get version params

func (*GetVersionParams) SetTimeout

func (o *GetVersionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get version params

func (*GetVersionParams) WithContext

func (o *GetVersionParams) WithContext(ctx context.Context) *GetVersionParams

WithContext adds the context to the get version params

func (*GetVersionParams) WithDefaults

func (o *GetVersionParams) WithDefaults() *GetVersionParams

WithDefaults hydrates default values in the get version params (not the query body).

All values with no default are reset to their zero value.

func (*GetVersionParams) WithHTTPClient

func (o *GetVersionParams) WithHTTPClient(client *http.Client) *GetVersionParams

WithHTTPClient adds the HTTPClient to the get version params

func (*GetVersionParams) WithTimeout

func (o *GetVersionParams) WithTimeout(timeout time.Duration) *GetVersionParams

WithTimeout adds the timeout to the get version params

func (*GetVersionParams) WriteToRequest

func (o *GetVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetVersionReader

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

GetVersionReader is a Reader for the GetVersion structure.

func (*GetVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListGitignoresTemplatesOK

type ListGitignoresTemplatesOK struct {
	Payload []string
}

ListGitignoresTemplatesOK describes a response with status code 200, with default header values.

GitignoreTemplateList

func NewListGitignoresTemplatesOK

func NewListGitignoresTemplatesOK() *ListGitignoresTemplatesOK

NewListGitignoresTemplatesOK creates a ListGitignoresTemplatesOK with default headers values

func (*ListGitignoresTemplatesOK) Code

func (o *ListGitignoresTemplatesOK) Code() int

Code gets the status code for the list gitignores templates o k response

func (*ListGitignoresTemplatesOK) Error

func (o *ListGitignoresTemplatesOK) Error() string

func (*ListGitignoresTemplatesOK) GetPayload

func (o *ListGitignoresTemplatesOK) GetPayload() []string

func (*ListGitignoresTemplatesOK) IsClientError

func (o *ListGitignoresTemplatesOK) IsClientError() bool

IsClientError returns true when this list gitignores templates o k response has a 4xx status code

func (*ListGitignoresTemplatesOK) IsCode

func (o *ListGitignoresTemplatesOK) IsCode(code int) bool

IsCode returns true when this list gitignores templates o k response a status code equal to that given

func (*ListGitignoresTemplatesOK) IsRedirect

func (o *ListGitignoresTemplatesOK) IsRedirect() bool

IsRedirect returns true when this list gitignores templates o k response has a 3xx status code

func (*ListGitignoresTemplatesOK) IsServerError

func (o *ListGitignoresTemplatesOK) IsServerError() bool

IsServerError returns true when this list gitignores templates o k response has a 5xx status code

func (*ListGitignoresTemplatesOK) IsSuccess

func (o *ListGitignoresTemplatesOK) IsSuccess() bool

IsSuccess returns true when this list gitignores templates o k response has a 2xx status code

func (*ListGitignoresTemplatesOK) String

func (o *ListGitignoresTemplatesOK) String() string

type ListGitignoresTemplatesParams

type ListGitignoresTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListGitignoresTemplatesParams contains all the parameters to send to the API endpoint

for the list gitignores templates operation.

Typically these are written to a http.Request.

func NewListGitignoresTemplatesParams

func NewListGitignoresTemplatesParams() *ListGitignoresTemplatesParams

NewListGitignoresTemplatesParams creates a new ListGitignoresTemplatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListGitignoresTemplatesParamsWithContext

func NewListGitignoresTemplatesParamsWithContext(ctx context.Context) *ListGitignoresTemplatesParams

NewListGitignoresTemplatesParamsWithContext creates a new ListGitignoresTemplatesParams object with the ability to set a context for a request.

func NewListGitignoresTemplatesParamsWithHTTPClient

func NewListGitignoresTemplatesParamsWithHTTPClient(client *http.Client) *ListGitignoresTemplatesParams

NewListGitignoresTemplatesParamsWithHTTPClient creates a new ListGitignoresTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListGitignoresTemplatesParamsWithTimeout

func NewListGitignoresTemplatesParamsWithTimeout(timeout time.Duration) *ListGitignoresTemplatesParams

NewListGitignoresTemplatesParamsWithTimeout creates a new ListGitignoresTemplatesParams object with the ability to set a timeout on a request.

func (*ListGitignoresTemplatesParams) SetContext

func (o *ListGitignoresTemplatesParams) SetContext(ctx context.Context)

SetContext adds the context to the list gitignores templates params

func (*ListGitignoresTemplatesParams) SetDefaults

func (o *ListGitignoresTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the list gitignores templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListGitignoresTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list gitignores templates params

func (*ListGitignoresTemplatesParams) SetTimeout

func (o *ListGitignoresTemplatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list gitignores templates params

func (*ListGitignoresTemplatesParams) WithContext

WithContext adds the context to the list gitignores templates params

func (*ListGitignoresTemplatesParams) WithDefaults

WithDefaults hydrates default values in the list gitignores templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListGitignoresTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list gitignores templates params

func (*ListGitignoresTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list gitignores templates params

func (*ListGitignoresTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListGitignoresTemplatesReader

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

ListGitignoresTemplatesReader is a Reader for the ListGitignoresTemplates structure.

func (*ListGitignoresTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLabelTemplatesOK

type ListLabelTemplatesOK struct {
	Payload []string
}

ListLabelTemplatesOK describes a response with status code 200, with default header values.

LabelTemplateList

func NewListLabelTemplatesOK

func NewListLabelTemplatesOK() *ListLabelTemplatesOK

NewListLabelTemplatesOK creates a ListLabelTemplatesOK with default headers values

func (*ListLabelTemplatesOK) Code

func (o *ListLabelTemplatesOK) Code() int

Code gets the status code for the list label templates o k response

func (*ListLabelTemplatesOK) Error

func (o *ListLabelTemplatesOK) Error() string

func (*ListLabelTemplatesOK) GetPayload

func (o *ListLabelTemplatesOK) GetPayload() []string

func (*ListLabelTemplatesOK) IsClientError

func (o *ListLabelTemplatesOK) IsClientError() bool

IsClientError returns true when this list label templates o k response has a 4xx status code

func (*ListLabelTemplatesOK) IsCode

func (o *ListLabelTemplatesOK) IsCode(code int) bool

IsCode returns true when this list label templates o k response a status code equal to that given

func (*ListLabelTemplatesOK) IsRedirect

func (o *ListLabelTemplatesOK) IsRedirect() bool

IsRedirect returns true when this list label templates o k response has a 3xx status code

func (*ListLabelTemplatesOK) IsServerError

func (o *ListLabelTemplatesOK) IsServerError() bool

IsServerError returns true when this list label templates o k response has a 5xx status code

func (*ListLabelTemplatesOK) IsSuccess

func (o *ListLabelTemplatesOK) IsSuccess() bool

IsSuccess returns true when this list label templates o k response has a 2xx status code

func (*ListLabelTemplatesOK) String

func (o *ListLabelTemplatesOK) String() string

type ListLabelTemplatesParams

type ListLabelTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListLabelTemplatesParams contains all the parameters to send to the API endpoint

for the list label templates operation.

Typically these are written to a http.Request.

func NewListLabelTemplatesParams

func NewListLabelTemplatesParams() *ListLabelTemplatesParams

NewListLabelTemplatesParams creates a new ListLabelTemplatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListLabelTemplatesParamsWithContext

func NewListLabelTemplatesParamsWithContext(ctx context.Context) *ListLabelTemplatesParams

NewListLabelTemplatesParamsWithContext creates a new ListLabelTemplatesParams object with the ability to set a context for a request.

func NewListLabelTemplatesParamsWithHTTPClient

func NewListLabelTemplatesParamsWithHTTPClient(client *http.Client) *ListLabelTemplatesParams

NewListLabelTemplatesParamsWithHTTPClient creates a new ListLabelTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListLabelTemplatesParamsWithTimeout

func NewListLabelTemplatesParamsWithTimeout(timeout time.Duration) *ListLabelTemplatesParams

NewListLabelTemplatesParamsWithTimeout creates a new ListLabelTemplatesParams object with the ability to set a timeout on a request.

func (*ListLabelTemplatesParams) SetContext

func (o *ListLabelTemplatesParams) SetContext(ctx context.Context)

SetContext adds the context to the list label templates params

func (*ListLabelTemplatesParams) SetDefaults

func (o *ListLabelTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the list label templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListLabelTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list label templates params

func (*ListLabelTemplatesParams) SetTimeout

func (o *ListLabelTemplatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list label templates params

func (*ListLabelTemplatesParams) WithContext

WithContext adds the context to the list label templates params

func (*ListLabelTemplatesParams) WithDefaults

WithDefaults hydrates default values in the list label templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListLabelTemplatesParams) WithHTTPClient

func (o *ListLabelTemplatesParams) WithHTTPClient(client *http.Client) *ListLabelTemplatesParams

WithHTTPClient adds the HTTPClient to the list label templates params

func (*ListLabelTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list label templates params

func (*ListLabelTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLabelTemplatesReader

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

ListLabelTemplatesReader is a Reader for the ListLabelTemplates structure.

func (*ListLabelTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLicenseTemplatesOK

type ListLicenseTemplatesOK struct {
	Payload []*models.LicensesTemplateListEntry
}

ListLicenseTemplatesOK describes a response with status code 200, with default header values.

LicenseTemplateList

func NewListLicenseTemplatesOK

func NewListLicenseTemplatesOK() *ListLicenseTemplatesOK

NewListLicenseTemplatesOK creates a ListLicenseTemplatesOK with default headers values

func (*ListLicenseTemplatesOK) Code

func (o *ListLicenseTemplatesOK) Code() int

Code gets the status code for the list license templates o k response

func (*ListLicenseTemplatesOK) Error

func (o *ListLicenseTemplatesOK) Error() string

func (*ListLicenseTemplatesOK) GetPayload

func (*ListLicenseTemplatesOK) IsClientError

func (o *ListLicenseTemplatesOK) IsClientError() bool

IsClientError returns true when this list license templates o k response has a 4xx status code

func (*ListLicenseTemplatesOK) IsCode

func (o *ListLicenseTemplatesOK) IsCode(code int) bool

IsCode returns true when this list license templates o k response a status code equal to that given

func (*ListLicenseTemplatesOK) IsRedirect

func (o *ListLicenseTemplatesOK) IsRedirect() bool

IsRedirect returns true when this list license templates o k response has a 3xx status code

func (*ListLicenseTemplatesOK) IsServerError

func (o *ListLicenseTemplatesOK) IsServerError() bool

IsServerError returns true when this list license templates o k response has a 5xx status code

func (*ListLicenseTemplatesOK) IsSuccess

func (o *ListLicenseTemplatesOK) IsSuccess() bool

IsSuccess returns true when this list license templates o k response has a 2xx status code

func (*ListLicenseTemplatesOK) String

func (o *ListLicenseTemplatesOK) String() string

type ListLicenseTemplatesParams

type ListLicenseTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListLicenseTemplatesParams contains all the parameters to send to the API endpoint

for the list license templates operation.

Typically these are written to a http.Request.

func NewListLicenseTemplatesParams

func NewListLicenseTemplatesParams() *ListLicenseTemplatesParams

NewListLicenseTemplatesParams creates a new ListLicenseTemplatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListLicenseTemplatesParamsWithContext

func NewListLicenseTemplatesParamsWithContext(ctx context.Context) *ListLicenseTemplatesParams

NewListLicenseTemplatesParamsWithContext creates a new ListLicenseTemplatesParams object with the ability to set a context for a request.

func NewListLicenseTemplatesParamsWithHTTPClient

func NewListLicenseTemplatesParamsWithHTTPClient(client *http.Client) *ListLicenseTemplatesParams

NewListLicenseTemplatesParamsWithHTTPClient creates a new ListLicenseTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewListLicenseTemplatesParamsWithTimeout

func NewListLicenseTemplatesParamsWithTimeout(timeout time.Duration) *ListLicenseTemplatesParams

NewListLicenseTemplatesParamsWithTimeout creates a new ListLicenseTemplatesParams object with the ability to set a timeout on a request.

func (*ListLicenseTemplatesParams) SetContext

func (o *ListLicenseTemplatesParams) SetContext(ctx context.Context)

SetContext adds the context to the list license templates params

func (*ListLicenseTemplatesParams) SetDefaults

func (o *ListLicenseTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the list license templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListLicenseTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list license templates params

func (*ListLicenseTemplatesParams) SetTimeout

func (o *ListLicenseTemplatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list license templates params

func (*ListLicenseTemplatesParams) WithContext

WithContext adds the context to the list license templates params

func (*ListLicenseTemplatesParams) WithDefaults

WithDefaults hydrates default values in the list license templates params (not the query body).

All values with no default are reset to their zero value.

func (*ListLicenseTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list license templates params

func (*ListLicenseTemplatesParams) WithTimeout

WithTimeout adds the timeout to the list license templates params

func (*ListLicenseTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLicenseTemplatesReader

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

ListLicenseTemplatesReader is a Reader for the ListLicenseTemplates structure.

func (*ListLicenseTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RenderMarkdownOK

type RenderMarkdownOK struct {
	Payload string
}

RenderMarkdownOK describes a response with status code 200, with default header values.

MarkdownRender is a rendered markdown document

func NewRenderMarkdownOK

func NewRenderMarkdownOK() *RenderMarkdownOK

NewRenderMarkdownOK creates a RenderMarkdownOK with default headers values

func (*RenderMarkdownOK) Code

func (o *RenderMarkdownOK) Code() int

Code gets the status code for the render markdown o k response

func (*RenderMarkdownOK) Error

func (o *RenderMarkdownOK) Error() string

func (*RenderMarkdownOK) GetPayload

func (o *RenderMarkdownOK) GetPayload() string

func (*RenderMarkdownOK) IsClientError

func (o *RenderMarkdownOK) IsClientError() bool

IsClientError returns true when this render markdown o k response has a 4xx status code

func (*RenderMarkdownOK) IsCode

func (o *RenderMarkdownOK) IsCode(code int) bool

IsCode returns true when this render markdown o k response a status code equal to that given

func (*RenderMarkdownOK) IsRedirect

func (o *RenderMarkdownOK) IsRedirect() bool

IsRedirect returns true when this render markdown o k response has a 3xx status code

func (*RenderMarkdownOK) IsServerError

func (o *RenderMarkdownOK) IsServerError() bool

IsServerError returns true when this render markdown o k response has a 5xx status code

func (*RenderMarkdownOK) IsSuccess

func (o *RenderMarkdownOK) IsSuccess() bool

IsSuccess returns true when this render markdown o k response has a 2xx status code

func (*RenderMarkdownOK) String

func (o *RenderMarkdownOK) String() string

type RenderMarkdownParams

type RenderMarkdownParams struct {

	// Body.
	Body *models.MarkdownOption

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

RenderMarkdownParams contains all the parameters to send to the API endpoint

for the render markdown operation.

Typically these are written to a http.Request.

func NewRenderMarkdownParams

func NewRenderMarkdownParams() *RenderMarkdownParams

NewRenderMarkdownParams creates a new RenderMarkdownParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRenderMarkdownParamsWithContext

func NewRenderMarkdownParamsWithContext(ctx context.Context) *RenderMarkdownParams

NewRenderMarkdownParamsWithContext creates a new RenderMarkdownParams object with the ability to set a context for a request.

func NewRenderMarkdownParamsWithHTTPClient

func NewRenderMarkdownParamsWithHTTPClient(client *http.Client) *RenderMarkdownParams

NewRenderMarkdownParamsWithHTTPClient creates a new RenderMarkdownParams object with the ability to set a custom HTTPClient for a request.

func NewRenderMarkdownParamsWithTimeout

func NewRenderMarkdownParamsWithTimeout(timeout time.Duration) *RenderMarkdownParams

NewRenderMarkdownParamsWithTimeout creates a new RenderMarkdownParams object with the ability to set a timeout on a request.

func (*RenderMarkdownParams) SetBody

func (o *RenderMarkdownParams) SetBody(body *models.MarkdownOption)

SetBody adds the body to the render markdown params

func (*RenderMarkdownParams) SetContext

func (o *RenderMarkdownParams) SetContext(ctx context.Context)

SetContext adds the context to the render markdown params

func (*RenderMarkdownParams) SetDefaults

func (o *RenderMarkdownParams) SetDefaults()

SetDefaults hydrates default values in the render markdown params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkdownParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the render markdown params

func (*RenderMarkdownParams) SetTimeout

func (o *RenderMarkdownParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the render markdown params

func (*RenderMarkdownParams) WithBody

WithBody adds the body to the render markdown params

func (*RenderMarkdownParams) WithContext

WithContext adds the context to the render markdown params

func (*RenderMarkdownParams) WithDefaults

func (o *RenderMarkdownParams) WithDefaults() *RenderMarkdownParams

WithDefaults hydrates default values in the render markdown params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkdownParams) WithHTTPClient

func (o *RenderMarkdownParams) WithHTTPClient(client *http.Client) *RenderMarkdownParams

WithHTTPClient adds the HTTPClient to the render markdown params

func (*RenderMarkdownParams) WithTimeout

func (o *RenderMarkdownParams) WithTimeout(timeout time.Duration) *RenderMarkdownParams

WithTimeout adds the timeout to the render markdown params

func (*RenderMarkdownParams) WriteToRequest

func (o *RenderMarkdownParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RenderMarkdownRawOK

type RenderMarkdownRawOK struct {
	Payload string
}

RenderMarkdownRawOK describes a response with status code 200, with default header values.

MarkdownRender is a rendered markdown document

func NewRenderMarkdownRawOK

func NewRenderMarkdownRawOK() *RenderMarkdownRawOK

NewRenderMarkdownRawOK creates a RenderMarkdownRawOK with default headers values

func (*RenderMarkdownRawOK) Code

func (o *RenderMarkdownRawOK) Code() int

Code gets the status code for the render markdown raw o k response

func (*RenderMarkdownRawOK) Error

func (o *RenderMarkdownRawOK) Error() string

func (*RenderMarkdownRawOK) GetPayload

func (o *RenderMarkdownRawOK) GetPayload() string

func (*RenderMarkdownRawOK) IsClientError

func (o *RenderMarkdownRawOK) IsClientError() bool

IsClientError returns true when this render markdown raw o k response has a 4xx status code

func (*RenderMarkdownRawOK) IsCode

func (o *RenderMarkdownRawOK) IsCode(code int) bool

IsCode returns true when this render markdown raw o k response a status code equal to that given

func (*RenderMarkdownRawOK) IsRedirect

func (o *RenderMarkdownRawOK) IsRedirect() bool

IsRedirect returns true when this render markdown raw o k response has a 3xx status code

func (*RenderMarkdownRawOK) IsServerError

func (o *RenderMarkdownRawOK) IsServerError() bool

IsServerError returns true when this render markdown raw o k response has a 5xx status code

func (*RenderMarkdownRawOK) IsSuccess

func (o *RenderMarkdownRawOK) IsSuccess() bool

IsSuccess returns true when this render markdown raw o k response has a 2xx status code

func (*RenderMarkdownRawOK) String

func (o *RenderMarkdownRawOK) String() string

type RenderMarkdownRawParams

type RenderMarkdownRawParams struct {

	/* Body.

	   Request body to render
	*/
	Body string

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

RenderMarkdownRawParams contains all the parameters to send to the API endpoint

for the render markdown raw operation.

Typically these are written to a http.Request.

func NewRenderMarkdownRawParams

func NewRenderMarkdownRawParams() *RenderMarkdownRawParams

NewRenderMarkdownRawParams creates a new RenderMarkdownRawParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRenderMarkdownRawParamsWithContext

func NewRenderMarkdownRawParamsWithContext(ctx context.Context) *RenderMarkdownRawParams

NewRenderMarkdownRawParamsWithContext creates a new RenderMarkdownRawParams object with the ability to set a context for a request.

func NewRenderMarkdownRawParamsWithHTTPClient

func NewRenderMarkdownRawParamsWithHTTPClient(client *http.Client) *RenderMarkdownRawParams

NewRenderMarkdownRawParamsWithHTTPClient creates a new RenderMarkdownRawParams object with the ability to set a custom HTTPClient for a request.

func NewRenderMarkdownRawParamsWithTimeout

func NewRenderMarkdownRawParamsWithTimeout(timeout time.Duration) *RenderMarkdownRawParams

NewRenderMarkdownRawParamsWithTimeout creates a new RenderMarkdownRawParams object with the ability to set a timeout on a request.

func (*RenderMarkdownRawParams) SetBody

func (o *RenderMarkdownRawParams) SetBody(body string)

SetBody adds the body to the render markdown raw params

func (*RenderMarkdownRawParams) SetContext

func (o *RenderMarkdownRawParams) SetContext(ctx context.Context)

SetContext adds the context to the render markdown raw params

func (*RenderMarkdownRawParams) SetDefaults

func (o *RenderMarkdownRawParams) SetDefaults()

SetDefaults hydrates default values in the render markdown raw params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkdownRawParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the render markdown raw params

func (*RenderMarkdownRawParams) SetTimeout

func (o *RenderMarkdownRawParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the render markdown raw params

func (*RenderMarkdownRawParams) WithBody

WithBody adds the body to the render markdown raw params

func (*RenderMarkdownRawParams) WithContext

WithContext adds the context to the render markdown raw params

func (*RenderMarkdownRawParams) WithDefaults

WithDefaults hydrates default values in the render markdown raw params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkdownRawParams) WithHTTPClient

func (o *RenderMarkdownRawParams) WithHTTPClient(client *http.Client) *RenderMarkdownRawParams

WithHTTPClient adds the HTTPClient to the render markdown raw params

func (*RenderMarkdownRawParams) WithTimeout

WithTimeout adds the timeout to the render markdown raw params

func (*RenderMarkdownRawParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RenderMarkdownRawReader

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

RenderMarkdownRawReader is a Reader for the RenderMarkdownRaw structure.

func (*RenderMarkdownRawReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RenderMarkdownRawUnprocessableEntity

type RenderMarkdownRawUnprocessableEntity struct {
	Message string
	URL     string
}

RenderMarkdownRawUnprocessableEntity describes a response with status code 422, with default header values.

APIValidationError is error format response related to input validation

func NewRenderMarkdownRawUnprocessableEntity

func NewRenderMarkdownRawUnprocessableEntity() *RenderMarkdownRawUnprocessableEntity

NewRenderMarkdownRawUnprocessableEntity creates a RenderMarkdownRawUnprocessableEntity with default headers values

func (*RenderMarkdownRawUnprocessableEntity) Code

Code gets the status code for the render markdown raw unprocessable entity response

func (*RenderMarkdownRawUnprocessableEntity) Error

func (*RenderMarkdownRawUnprocessableEntity) IsClientError

func (o *RenderMarkdownRawUnprocessableEntity) IsClientError() bool

IsClientError returns true when this render markdown raw unprocessable entity response has a 4xx status code

func (*RenderMarkdownRawUnprocessableEntity) IsCode

IsCode returns true when this render markdown raw unprocessable entity response a status code equal to that given

func (*RenderMarkdownRawUnprocessableEntity) IsRedirect

IsRedirect returns true when this render markdown raw unprocessable entity response has a 3xx status code

func (*RenderMarkdownRawUnprocessableEntity) IsServerError

func (o *RenderMarkdownRawUnprocessableEntity) IsServerError() bool

IsServerError returns true when this render markdown raw unprocessable entity response has a 5xx status code

func (*RenderMarkdownRawUnprocessableEntity) IsSuccess

IsSuccess returns true when this render markdown raw unprocessable entity response has a 2xx status code

func (*RenderMarkdownRawUnprocessableEntity) String

type RenderMarkdownReader

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

RenderMarkdownReader is a Reader for the RenderMarkdown structure.

func (*RenderMarkdownReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RenderMarkdownUnprocessableEntity

type RenderMarkdownUnprocessableEntity struct {
	Message string
	URL     string
}

RenderMarkdownUnprocessableEntity describes a response with status code 422, with default header values.

APIValidationError is error format response related to input validation

func NewRenderMarkdownUnprocessableEntity

func NewRenderMarkdownUnprocessableEntity() *RenderMarkdownUnprocessableEntity

NewRenderMarkdownUnprocessableEntity creates a RenderMarkdownUnprocessableEntity with default headers values

func (*RenderMarkdownUnprocessableEntity) Code

Code gets the status code for the render markdown unprocessable entity response

func (*RenderMarkdownUnprocessableEntity) Error

func (*RenderMarkdownUnprocessableEntity) IsClientError

func (o *RenderMarkdownUnprocessableEntity) IsClientError() bool

IsClientError returns true when this render markdown unprocessable entity response has a 4xx status code

func (*RenderMarkdownUnprocessableEntity) IsCode

func (o *RenderMarkdownUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this render markdown unprocessable entity response a status code equal to that given

func (*RenderMarkdownUnprocessableEntity) IsRedirect

func (o *RenderMarkdownUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this render markdown unprocessable entity response has a 3xx status code

func (*RenderMarkdownUnprocessableEntity) IsServerError

func (o *RenderMarkdownUnprocessableEntity) IsServerError() bool

IsServerError returns true when this render markdown unprocessable entity response has a 5xx status code

func (*RenderMarkdownUnprocessableEntity) IsSuccess

func (o *RenderMarkdownUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this render markdown unprocessable entity response has a 2xx status code

func (*RenderMarkdownUnprocessableEntity) String

type RenderMarkupOK

type RenderMarkupOK struct {
	Payload string
}

RenderMarkupOK describes a response with status code 200, with default header values.

MarkupRender is a rendered markup document

func NewRenderMarkupOK

func NewRenderMarkupOK() *RenderMarkupOK

NewRenderMarkupOK creates a RenderMarkupOK with default headers values

func (*RenderMarkupOK) Code

func (o *RenderMarkupOK) Code() int

Code gets the status code for the render markup o k response

func (*RenderMarkupOK) Error

func (o *RenderMarkupOK) Error() string

func (*RenderMarkupOK) GetPayload

func (o *RenderMarkupOK) GetPayload() string

func (*RenderMarkupOK) IsClientError

func (o *RenderMarkupOK) IsClientError() bool

IsClientError returns true when this render markup o k response has a 4xx status code

func (*RenderMarkupOK) IsCode

func (o *RenderMarkupOK) IsCode(code int) bool

IsCode returns true when this render markup o k response a status code equal to that given

func (*RenderMarkupOK) IsRedirect

func (o *RenderMarkupOK) IsRedirect() bool

IsRedirect returns true when this render markup o k response has a 3xx status code

func (*RenderMarkupOK) IsServerError

func (o *RenderMarkupOK) IsServerError() bool

IsServerError returns true when this render markup o k response has a 5xx status code

func (*RenderMarkupOK) IsSuccess

func (o *RenderMarkupOK) IsSuccess() bool

IsSuccess returns true when this render markup o k response has a 2xx status code

func (*RenderMarkupOK) String

func (o *RenderMarkupOK) String() string

type RenderMarkupParams

type RenderMarkupParams struct {

	// Body.
	Body *models.MarkupOption

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

RenderMarkupParams contains all the parameters to send to the API endpoint

for the render markup operation.

Typically these are written to a http.Request.

func NewRenderMarkupParams

func NewRenderMarkupParams() *RenderMarkupParams

NewRenderMarkupParams creates a new RenderMarkupParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRenderMarkupParamsWithContext

func NewRenderMarkupParamsWithContext(ctx context.Context) *RenderMarkupParams

NewRenderMarkupParamsWithContext creates a new RenderMarkupParams object with the ability to set a context for a request.

func NewRenderMarkupParamsWithHTTPClient

func NewRenderMarkupParamsWithHTTPClient(client *http.Client) *RenderMarkupParams

NewRenderMarkupParamsWithHTTPClient creates a new RenderMarkupParams object with the ability to set a custom HTTPClient for a request.

func NewRenderMarkupParamsWithTimeout

func NewRenderMarkupParamsWithTimeout(timeout time.Duration) *RenderMarkupParams

NewRenderMarkupParamsWithTimeout creates a new RenderMarkupParams object with the ability to set a timeout on a request.

func (*RenderMarkupParams) SetBody

func (o *RenderMarkupParams) SetBody(body *models.MarkupOption)

SetBody adds the body to the render markup params

func (*RenderMarkupParams) SetContext

func (o *RenderMarkupParams) SetContext(ctx context.Context)

SetContext adds the context to the render markup params

func (*RenderMarkupParams) SetDefaults

func (o *RenderMarkupParams) SetDefaults()

SetDefaults hydrates default values in the render markup params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the render markup params

func (*RenderMarkupParams) SetTimeout

func (o *RenderMarkupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the render markup params

func (*RenderMarkupParams) WithBody

WithBody adds the body to the render markup params

func (*RenderMarkupParams) WithContext

WithContext adds the context to the render markup params

func (*RenderMarkupParams) WithDefaults

func (o *RenderMarkupParams) WithDefaults() *RenderMarkupParams

WithDefaults hydrates default values in the render markup params (not the query body).

All values with no default are reset to their zero value.

func (*RenderMarkupParams) WithHTTPClient

func (o *RenderMarkupParams) WithHTTPClient(client *http.Client) *RenderMarkupParams

WithHTTPClient adds the HTTPClient to the render markup params

func (*RenderMarkupParams) WithTimeout

func (o *RenderMarkupParams) WithTimeout(timeout time.Duration) *RenderMarkupParams

WithTimeout adds the timeout to the render markup params

func (*RenderMarkupParams) WriteToRequest

func (o *RenderMarkupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RenderMarkupReader

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

RenderMarkupReader is a Reader for the RenderMarkup structure.

func (*RenderMarkupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RenderMarkupUnprocessableEntity

type RenderMarkupUnprocessableEntity struct {
	Message string
	URL     string
}

RenderMarkupUnprocessableEntity describes a response with status code 422, with default header values.

APIValidationError is error format response related to input validation

func NewRenderMarkupUnprocessableEntity

func NewRenderMarkupUnprocessableEntity() *RenderMarkupUnprocessableEntity

NewRenderMarkupUnprocessableEntity creates a RenderMarkupUnprocessableEntity with default headers values

func (*RenderMarkupUnprocessableEntity) Code

Code gets the status code for the render markup unprocessable entity response

func (*RenderMarkupUnprocessableEntity) Error

func (*RenderMarkupUnprocessableEntity) IsClientError

func (o *RenderMarkupUnprocessableEntity) IsClientError() bool

IsClientError returns true when this render markup unprocessable entity response has a 4xx status code

func (*RenderMarkupUnprocessableEntity) IsCode

func (o *RenderMarkupUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this render markup unprocessable entity response a status code equal to that given

func (*RenderMarkupUnprocessableEntity) IsRedirect

func (o *RenderMarkupUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this render markup unprocessable entity response has a 3xx status code

func (*RenderMarkupUnprocessableEntity) IsServerError

func (o *RenderMarkupUnprocessableEntity) IsServerError() bool

IsServerError returns true when this render markup unprocessable entity response has a 5xx status code

func (*RenderMarkupUnprocessableEntity) IsSuccess

func (o *RenderMarkupUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this render markup unprocessable entity response has a 2xx status code

func (*RenderMarkupUnprocessableEntity) String

Jump to

Keyboard shortcuts

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