Help us shape the future of Go! Take the 2026 Go Developer Survey

operations

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAccepted added in v0.1.13

type AuthAccepted struct {
	XDispatchOrg string

	Payload *v1.Message
}

AuthAccepted handles this case with default header values.

default response if authorized

func NewAuthAccepted added in v0.1.13

func NewAuthAccepted() *AuthAccepted

NewAuthAccepted creates a AuthAccepted with default headers values

func (*AuthAccepted) Error added in v0.1.13

func (o *AuthAccepted) Error() string

type AuthDefault added in v0.1.13

type AuthDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

AuthDefault handles this case with default header values.

error

func NewAuthDefault added in v0.1.13

func NewAuthDefault(code int) *AuthDefault

NewAuthDefault creates a AuthDefault with default headers values

func (*AuthDefault) Code added in v0.1.13

func (o *AuthDefault) Code() int

Code gets the status code for the auth default response

func (*AuthDefault) Error added in v0.1.13

func (o *AuthDefault) Error() string

type AuthForbidden added in v0.1.13

type AuthForbidden struct {
}

AuthForbidden handles this case with default header values.

Forbidden

func NewAuthForbidden added in v0.1.13

func NewAuthForbidden() *AuthForbidden

NewAuthForbidden creates a AuthForbidden with default headers values

func (*AuthForbidden) Error added in v0.1.13

func (o *AuthForbidden) Error() string

type AuthParams added in v0.1.13

type AuthParams struct {

	/*XDispatchOrg*/
	XDispatchOrg *string

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

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

func NewAuthParams added in v0.1.13

func NewAuthParams() *AuthParams

NewAuthParams creates a new AuthParams object with the default values initialized.

func NewAuthParamsWithContext added in v0.1.13

func NewAuthParamsWithContext(ctx context.Context) *AuthParams

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

func NewAuthParamsWithHTTPClient added in v0.1.13

func NewAuthParamsWithHTTPClient(client *http.Client) *AuthParams

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

func NewAuthParamsWithTimeout added in v0.1.13

func NewAuthParamsWithTimeout(timeout time.Duration) *AuthParams

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

func (*AuthParams) SetContext added in v0.1.13

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

SetContext adds the context to the auth params

func (*AuthParams) SetHTTPClient added in v0.1.13

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

SetHTTPClient adds the HTTPClient to the auth params

func (*AuthParams) SetTimeout added in v0.1.13

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

SetTimeout adds the timeout to the auth params

func (*AuthParams) SetXDispatchOrg added in v0.1.18

func (o *AuthParams) SetXDispatchOrg(xDispatchOrg *string)

SetXDispatchOrg adds the xDispatchOrg to the auth params

func (*AuthParams) WithContext added in v0.1.13

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

WithContext adds the context to the auth params

func (*AuthParams) WithHTTPClient added in v0.1.13

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

WithHTTPClient adds the HTTPClient to the auth params

func (*AuthParams) WithTimeout added in v0.1.13

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

WithTimeout adds the timeout to the auth params

func (*AuthParams) WithXDispatchOrg added in v0.1.18

func (o *AuthParams) WithXDispatchOrg(xDispatchOrg *string) *AuthParams

WithXDispatchOrg adds the xDispatchOrg to the auth params

func (*AuthParams) WriteToRequest added in v0.1.13

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

WriteToRequest writes these params to a swagger request

type AuthReader added in v0.1.13

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

AuthReader is a Reader for the Auth structure.

func (*AuthReader) ReadResponse added in v0.1.13

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

ReadResponse reads a server response into the received o.

type AuthUnauthorized added in v0.1.13

type AuthUnauthorized struct {
}

AuthUnauthorized handles this case with default header values.

Unauthorized

func NewAuthUnauthorized added in v0.1.13

func NewAuthUnauthorized() *AuthUnauthorized

NewAuthUnauthorized creates a AuthUnauthorized with default headers values

func (*AuthUnauthorized) Error added in v0.1.13

func (o *AuthUnauthorized) Error() string

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) Auth added in v0.1.13

func (a *Client) Auth(params *AuthParams, authInfo runtime.ClientAuthInfoWriter) (*AuthAccepted, error)

Auth handles authorization

func (*Client) GetVersion added in v0.1.17

func (a *Client) GetVersion(params *GetVersionParams) (*GetVersionOK, error)

GetVersion gets version info

func (*Client) Home

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

Home as placeholder home page no authorization policy is required for this

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 as placeholder root page no authentication is required for this

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetVersionDefault added in v0.1.17

type GetVersionDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

GetVersionDefault handles this case with default header values.

error

func NewGetVersionDefault added in v0.1.17

func NewGetVersionDefault(code int) *GetVersionDefault

NewGetVersionDefault creates a GetVersionDefault with default headers values

func (*GetVersionDefault) Code added in v0.1.17

func (o *GetVersionDefault) Code() int

Code gets the status code for the get version default response

func (*GetVersionDefault) Error added in v0.1.17

func (o *GetVersionDefault) Error() string

type GetVersionOK added in v0.1.17

type GetVersionOK struct {
	Payload *v1.Version
}

GetVersionOK handles this case with default header values.

version info

func NewGetVersionOK added in v0.1.17

func NewGetVersionOK() *GetVersionOK

NewGetVersionOK creates a GetVersionOK with default headers values

func (*GetVersionOK) Error added in v0.1.17

func (o *GetVersionOK) Error() string

type GetVersionParams added in v0.1.17

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 added in v0.1.17

func NewGetVersionParams() *GetVersionParams

NewGetVersionParams creates a new GetVersionParams object with the default values initialized.

func NewGetVersionParamsWithContext added in v0.1.17

func NewGetVersionParamsWithContext(ctx context.Context) *GetVersionParams

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

func NewGetVersionParamsWithHTTPClient added in v0.1.17

func NewGetVersionParamsWithHTTPClient(client *http.Client) *GetVersionParams

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

func NewGetVersionParamsWithTimeout added in v0.1.17

func NewGetVersionParamsWithTimeout(timeout time.Duration) *GetVersionParams

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

func (*GetVersionParams) SetContext added in v0.1.17

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

SetContext adds the context to the get version params

func (*GetVersionParams) SetHTTPClient added in v0.1.17

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

SetHTTPClient adds the HTTPClient to the get version params

func (*GetVersionParams) SetTimeout added in v0.1.17

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

SetTimeout adds the timeout to the get version params

func (*GetVersionParams) WithContext added in v0.1.17

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

WithContext adds the context to the get version params

func (*GetVersionParams) WithHTTPClient added in v0.1.17

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

WithHTTPClient adds the HTTPClient to the get version params

func (*GetVersionParams) WithTimeout added in v0.1.17

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

WithTimeout adds the timeout to the get version params

func (*GetVersionParams) WriteToRequest added in v0.1.17

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

WriteToRequest writes these params to a swagger request

type GetVersionReader added in v0.1.17

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

GetVersionReader is a Reader for the GetVersion structure.

func (*GetVersionReader) ReadResponse added in v0.1.17

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

ReadResponse reads a server response into the received o.

type HomeDefault

type HomeDefault struct {
	Payload *v1.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 HomeForbidden added in v0.1.18

type HomeForbidden struct {
	Payload *v1.Error
}

HomeForbidden handles this case with default header values.

access to this resource is forbidden

func NewHomeForbidden added in v0.1.18

func NewHomeForbidden() *HomeForbidden

NewHomeForbidden creates a HomeForbidden with default headers values

func (*HomeForbidden) Error added in v0.1.18

func (o *HomeForbidden) Error() string

type HomeOK

type HomeOK struct {
	Payload *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string

	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) SetXDispatchOrg added in v0.1.18

func (o *HomeParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithXDispatchOrg added in v0.1.18

func (o *HomeParams) WithXDispatchOrg(xDispatchOrg string) *HomeParams

WithXDispatchOrg adds the xDispatchOrg 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 HomeUnauthorized added in v0.1.18

type HomeUnauthorized struct {
	Payload *v1.Error
}

HomeUnauthorized handles this case with default header values.

Unauthorized Request

func NewHomeUnauthorized added in v0.1.18

func NewHomeUnauthorized() *HomeUnauthorized

NewHomeUnauthorized creates a HomeUnauthorized with default headers values

func (*HomeUnauthorized) Error added in v0.1.18

func (o *HomeUnauthorized) Error() string

type RedirectDefault

type RedirectDefault struct {
	Payload *v1.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 *v1.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 RootForbidden added in v0.1.18

type RootForbidden struct {
	Payload *v1.Error
}

RootForbidden handles this case with default header values.

access to this resource is forbidden

func NewRootForbidden added in v0.1.18

func NewRootForbidden() *RootForbidden

NewRootForbidden creates a RootForbidden with default headers values

func (*RootForbidden) Error added in v0.1.18

func (o *RootForbidden) Error() string

type RootOK

type RootOK struct {
	Payload *v1.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.

type RootUnauthorized added in v0.1.18

type RootUnauthorized struct {
	Payload *v1.Error
}

RootUnauthorized handles this case with default header values.

Unauthorized Request

func NewRootUnauthorized added in v0.1.18

func NewRootUnauthorized() *RootUnauthorized

NewRootUnauthorized creates a RootUnauthorized with default headers values

func (*RootUnauthorized) Error added in v0.1.18

func (o *RootUnauthorized) Error() string

Jump to

Keyboard shortcuts

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