operations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 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 operations API

func New

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

New creates a new operations API client.

func (*Client) Home

func (a *Client) Home(params *HomeParams, authInfo runtime.ClientAuthInfoWriter) (*HomeOK, error)

Home ans placehold home page

func (*Client) Redirect

func (a *Client) Redirect(params *RedirectParams, authInfo runtime.ClientAuthInfoWriter) error

Redirect redirects to localhost for vs cli login testing

func (*Client) Root

func (a *Client) Root(params *RootParams) (*RootOK, error)

Root ans placehold root page no authentication is required at this point

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type HomeDefault

type HomeDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

HomeDefault handles this case with default header values.

error

func NewHomeDefault

func NewHomeDefault(code int) *HomeDefault

NewHomeDefault creates a HomeDefault with default headers values

func (*HomeDefault) Code

func (o *HomeDefault) Code() int

Code gets the status code for the home default response

func (*HomeDefault) Error

func (o *HomeDefault) Error() string

type HomeOK

type HomeOK struct {
	Payload *models.Message
}

HomeOK handles this case with default header values.

home page

func NewHomeOK

func NewHomeOK() *HomeOK

NewHomeOK creates a HomeOK with default headers values

func (*HomeOK) Error

func (o *HomeOK) Error() string

type HomeParams

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

HomeParams contains all the parameters to send to the API endpoint for the home operation typically these are written to a http.Request

func NewHomeParams

func NewHomeParams() *HomeParams

NewHomeParams creates a new HomeParams object with the default values initialized.

func NewHomeParamsWithContext

func NewHomeParamsWithContext(ctx context.Context) *HomeParams

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

func NewHomeParamsWithHTTPClient

func NewHomeParamsWithHTTPClient(client *http.Client) *HomeParams

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

func NewHomeParamsWithTimeout

func NewHomeParamsWithTimeout(timeout time.Duration) *HomeParams

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

func (*HomeParams) SetContext

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

SetContext adds the context to the home params

func (*HomeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the home params

func (*HomeParams) SetTimeout

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

SetTimeout adds the timeout to the home params

func (*HomeParams) WithContext

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

WithContext adds the context to the home params

func (*HomeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the home params

func (*HomeParams) WithTimeout

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

WithTimeout adds the timeout to the home params

func (*HomeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HomeReader

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

HomeReader is a Reader for the Home structure.

func (*HomeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RedirectDefault

type RedirectDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

RedirectDefault handles this case with default header values.

error

func NewRedirectDefault

func NewRedirectDefault(code int) *RedirectDefault

NewRedirectDefault creates a RedirectDefault with default headers values

func (*RedirectDefault) Code

func (o *RedirectDefault) Code() int

Code gets the status code for the redirect default response

func (*RedirectDefault) Error

func (o *RedirectDefault) Error() string

type RedirectFound

type RedirectFound struct {
	/*redirect location
	 */
	Location string
}

RedirectFound handles this case with default header values.

redirect

func NewRedirectFound

func NewRedirectFound() *RedirectFound

NewRedirectFound creates a RedirectFound with default headers values

func (*RedirectFound) Error

func (o *RedirectFound) Error() string

type RedirectParams

type RedirectParams struct {

	/*Redirect
	  the local server url redirecting to

	*/
	Redirect *string

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

RedirectParams contains all the parameters to send to the API endpoint for the redirect operation typically these are written to a http.Request

func NewRedirectParams

func NewRedirectParams() *RedirectParams

NewRedirectParams creates a new RedirectParams object with the default values initialized.

func NewRedirectParamsWithContext

func NewRedirectParamsWithContext(ctx context.Context) *RedirectParams

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

func NewRedirectParamsWithHTTPClient

func NewRedirectParamsWithHTTPClient(client *http.Client) *RedirectParams

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

func NewRedirectParamsWithTimeout

func NewRedirectParamsWithTimeout(timeout time.Duration) *RedirectParams

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

func (*RedirectParams) SetContext

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

SetContext adds the context to the redirect params

func (*RedirectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the redirect params

func (*RedirectParams) SetRedirect

func (o *RedirectParams) SetRedirect(redirect *string)

SetRedirect adds the redirect to the redirect params

func (*RedirectParams) SetTimeout

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

SetTimeout adds the timeout to the redirect params

func (*RedirectParams) WithContext

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

WithContext adds the context to the redirect params

func (*RedirectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the redirect params

func (*RedirectParams) WithRedirect

func (o *RedirectParams) WithRedirect(redirect *string) *RedirectParams

WithRedirect adds the redirect to the redirect params

func (*RedirectParams) WithTimeout

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

WithTimeout adds the timeout to the redirect params

func (*RedirectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RedirectReader

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

RedirectReader is a Reader for the Redirect structure.

func (*RedirectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RootDefault

type RootDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

RootDefault handles this case with default header values.

error

func NewRootDefault

func NewRootDefault(code int) *RootDefault

NewRootDefault creates a RootDefault with default headers values

func (*RootDefault) Code

func (o *RootDefault) Code() int

Code gets the status code for the root default response

func (*RootDefault) Error

func (o *RootDefault) Error() string

type RootOK

type RootOK struct {
	Payload *models.Message
}

RootOK handles this case with default header values.

home page

func NewRootOK

func NewRootOK() *RootOK

NewRootOK creates a RootOK with default headers values

func (*RootOK) Error

func (o *RootOK) Error() string

type RootParams

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

RootParams contains all the parameters to send to the API endpoint for the root operation typically these are written to a http.Request

func NewRootParams

func NewRootParams() *RootParams

NewRootParams creates a new RootParams object with the default values initialized.

func NewRootParamsWithContext

func NewRootParamsWithContext(ctx context.Context) *RootParams

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

func NewRootParamsWithHTTPClient

func NewRootParamsWithHTTPClient(client *http.Client) *RootParams

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

func NewRootParamsWithTimeout

func NewRootParamsWithTimeout(timeout time.Duration) *RootParams

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

func (*RootParams) SetContext

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

SetContext adds the context to the root params

func (*RootParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the root params

func (*RootParams) SetTimeout

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

SetTimeout adds the timeout to the root params

func (*RootParams) WithContext

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

WithContext adds the context to the root params

func (*RootParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the root params

func (*RootParams) WithTimeout

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

WithTimeout adds the timeout to the root params

func (*RootParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RootReader

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

RootReader is a Reader for the Root structure.

func (*RootReader) ReadResponse

func (o *RootReader) 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