operations

package
v2.0.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 9 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 client.Transport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) CreateClusterDetails

func (a *Client) CreateClusterDetails(params *CreateClusterDetailsParams) (*CreateClusterDetailsOK, error)

CreateClusterDetails creates a cluster with all components

func (*Client) GetClusterByID

func (a *Client) GetClusterByID(params *GetClusterByIDParams) (*GetClusterByIDOK, error)

GetClusterByID reads a cluster details

func (*Client) GetClustersByAge

func (a *Client) GetClustersByAge(params *GetClustersByAgeParams) (*GetClustersByAgeOK, error)

GetClustersByAge lists clusters

func (*Client) GetClustersCount

func (a *Client) GetClustersCount(params *GetClustersCountParams) (*GetClustersCountOK, error)

GetClustersCount reads the count of the known deis clusters

func (*Client) GetComponentByName

func (a *Client) GetComponentByName(params *GetComponentByNameParams) (*GetComponentByNameOK, error)

GetComponentByName lists the releases of a component

func (*Client) GetComponentByRelease

func (a *Client) GetComponentByRelease(params *GetComponentByReleaseParams) (*GetComponentByReleaseOK, error)

GetComponentByRelease reads the specified release of a component

func (*Client) GetComponentsByLatestRelease

func (a *Client) GetComponentsByLatestRelease(params *GetComponentsByLatestReleaseParams) (*GetComponentsByLatestReleaseOK, error)

GetComponentsByLatestRelease lists the latest release version of the components

func (*Client) PublishComponentRelease

func (a *Client) PublishComponentRelease(params *PublishComponentReleaseParams) (*PublishComponentReleaseOK, error)

PublishComponentRelease publishes a new release for the component

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type CreateClusterDetailsDefault

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

CreateClusterDetailsDefault handles this case with default header values.

unexpected error

func NewCreateClusterDetailsDefault

func NewCreateClusterDetailsDefault(code int) *CreateClusterDetailsDefault

NewCreateClusterDetailsDefault creates a CreateClusterDetailsDefault with default headers values

func (*CreateClusterDetailsDefault) Code

func (o *CreateClusterDetailsDefault) Code() int

Code gets the status code for the create cluster details default response

func (*CreateClusterDetailsDefault) Error

type CreateClusterDetailsOK

type CreateClusterDetailsOK struct {
	Payload *models.Cluster
}

CreateClusterDetailsOK handles this case with default header values.

clusters details response

func NewCreateClusterDetailsOK

func NewCreateClusterDetailsOK() *CreateClusterDetailsOK

NewCreateClusterDetailsOK creates a CreateClusterDetailsOK with default headers values

func (*CreateClusterDetailsOK) Error

func (o *CreateClusterDetailsOK) Error() string

type CreateClusterDetailsParams

type CreateClusterDetailsParams struct {

	/*Body*/
	Body *models.Cluster
}

CreateClusterDetailsParams contains all the parameters to send to the API endpoint for the create cluster details operation typically these are written to a http.Request

func NewCreateClusterDetailsParams

func NewCreateClusterDetailsParams() *CreateClusterDetailsParams

NewCreateClusterDetailsParams creates a new CreateClusterDetailsParams object with the default values initialized.

func (*CreateClusterDetailsParams) WithBody

WithBody adds the body to the create cluster details params

func (*CreateClusterDetailsParams) WriteToRequest

func (o *CreateClusterDetailsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateClusterDetailsReader

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

CreateClusterDetailsReader is a Reader for the CreateClusterDetails structure.

func (*CreateClusterDetailsReader) ReadResponse

func (o *CreateClusterDetailsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetClusterByIDDefault

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

GetClusterByIDDefault handles this case with default header values.

unexpected error

func NewGetClusterByIDDefault

func NewGetClusterByIDDefault(code int) *GetClusterByIDDefault

NewGetClusterByIDDefault creates a GetClusterByIDDefault with default headers values

func (*GetClusterByIDDefault) Code

func (o *GetClusterByIDDefault) Code() int

Code gets the status code for the get cluster by id default response

func (*GetClusterByIDDefault) Error

func (o *GetClusterByIDDefault) Error() string

type GetClusterByIDOK

type GetClusterByIDOK struct {
	Payload *models.Cluster
}

GetClusterByIDOK handles this case with default header values.

clusters details response

func NewGetClusterByIDOK

func NewGetClusterByIDOK() *GetClusterByIDOK

NewGetClusterByIDOK creates a GetClusterByIDOK with default headers values

func (*GetClusterByIDOK) Error

func (o *GetClusterByIDOK) Error() string

type GetClusterByIDParams

type GetClusterByIDParams struct {

	/*ID*/
	ID string
}

GetClusterByIDParams contains all the parameters to send to the API endpoint for the get cluster by id operation typically these are written to a http.Request

func NewGetClusterByIDParams

func NewGetClusterByIDParams() *GetClusterByIDParams

NewGetClusterByIDParams creates a new GetClusterByIDParams object with the default values initialized.

func (*GetClusterByIDParams) WithID

WithID adds the id to the get cluster by id params

func (*GetClusterByIDParams) WriteToRequest

func (o *GetClusterByIDParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetClusterByIDReader

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

GetClusterByIDReader is a Reader for the GetClusterByID structure.

func (*GetClusterByIDReader) ReadResponse

func (o *GetClusterByIDReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetClustersByAgeDefault

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

GetClustersByAgeDefault handles this case with default header values.

unexpected error

func NewGetClustersByAgeDefault

func NewGetClustersByAgeDefault(code int) *GetClustersByAgeDefault

NewGetClustersByAgeDefault creates a GetClustersByAgeDefault with default headers values

func (*GetClustersByAgeDefault) Code

func (o *GetClustersByAgeDefault) Code() int

Code gets the status code for the get clusters by age default response

func (*GetClustersByAgeDefault) Error

func (o *GetClustersByAgeDefault) Error() string

type GetClustersByAgeOK

type GetClustersByAgeOK struct {
	Payload GetClustersByAgeOKBodyBody
}

GetClustersByAgeOK handles this case with default header values.

clusters details response

func NewGetClustersByAgeOK

func NewGetClustersByAgeOK() *GetClustersByAgeOK

NewGetClustersByAgeOK creates a GetClustersByAgeOK with default headers values

func (*GetClustersByAgeOK) Error

func (o *GetClustersByAgeOK) Error() string

type GetClustersByAgeOKBodyBody

type GetClustersByAgeOKBodyBody struct {

	/* data

	Required: true
	*/
	Data []*models.Cluster `json:"data"`
}

GetClustersByAgeOKBodyBody get clusters by age o k body body

swagger:model GetClustersByAgeOKBodyBody

func (*GetClustersByAgeOKBodyBody) Validate

func (o *GetClustersByAgeOKBodyBody) Validate(formats strfmt.Registry) error

Validate validates this get clusters by age o k body body

type GetClustersByAgeParams

type GetClustersByAgeParams struct {

	/*CheckedInAfter*/
	CheckedInAfter *strfmt.DateTime
	/*CheckedInBefore*/
	CheckedInBefore *strfmt.DateTime
	/*CreatedAfter*/
	CreatedAfter *strfmt.DateTime
	/*CreatedBefore*/
	CreatedBefore *strfmt.DateTime
}

GetClustersByAgeParams contains all the parameters to send to the API endpoint for the get clusters by age operation typically these are written to a http.Request

func NewGetClustersByAgeParams

func NewGetClustersByAgeParams() *GetClustersByAgeParams

NewGetClustersByAgeParams creates a new GetClustersByAgeParams object with the default values initialized.

func (*GetClustersByAgeParams) WithCheckedInAfter

func (o *GetClustersByAgeParams) WithCheckedInAfter(checkedInAfter *strfmt.DateTime) *GetClustersByAgeParams

WithCheckedInAfter adds the checkedInAfter to the get clusters by age params

func (*GetClustersByAgeParams) WithCheckedInBefore

func (o *GetClustersByAgeParams) WithCheckedInBefore(checkedInBefore *strfmt.DateTime) *GetClustersByAgeParams

WithCheckedInBefore adds the checkedInBefore to the get clusters by age params

func (*GetClustersByAgeParams) WithCreatedAfter

func (o *GetClustersByAgeParams) WithCreatedAfter(createdAfter *strfmt.DateTime) *GetClustersByAgeParams

WithCreatedAfter adds the createdAfter to the get clusters by age params

func (*GetClustersByAgeParams) WithCreatedBefore

func (o *GetClustersByAgeParams) WithCreatedBefore(createdBefore *strfmt.DateTime) *GetClustersByAgeParams

WithCreatedBefore adds the createdBefore to the get clusters by age params

func (*GetClustersByAgeParams) WriteToRequest

func (o *GetClustersByAgeParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetClustersByAgeReader

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

GetClustersByAgeReader is a Reader for the GetClustersByAge structure.

func (*GetClustersByAgeReader) ReadResponse

func (o *GetClustersByAgeReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetClustersCountDefault

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

GetClustersCountDefault handles this case with default header values.

unexpected error

func NewGetClustersCountDefault

func NewGetClustersCountDefault(code int) *GetClustersCountDefault

NewGetClustersCountDefault creates a GetClustersCountDefault with default headers values

func (*GetClustersCountDefault) Code

func (o *GetClustersCountDefault) Code() int

Code gets the status code for the get clusters count default response

func (*GetClustersCountDefault) Error

func (o *GetClustersCountDefault) Error() string

type GetClustersCountOK

type GetClustersCountOK struct {
	Payload int64
}

GetClustersCountOK handles this case with default header values.

clusters count response

func NewGetClustersCountOK

func NewGetClustersCountOK() *GetClustersCountOK

NewGetClustersCountOK creates a GetClustersCountOK with default headers values

func (*GetClustersCountOK) Error

func (o *GetClustersCountOK) Error() string

type GetClustersCountParams

type GetClustersCountParams struct {
}

GetClustersCountParams contains all the parameters to send to the API endpoint for the get clusters count operation typically these are written to a http.Request

func NewGetClustersCountParams

func NewGetClustersCountParams() *GetClustersCountParams

NewGetClustersCountParams creates a new GetClustersCountParams object with the default values initialized.

func (*GetClustersCountParams) WriteToRequest

func (o *GetClustersCountParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetClustersCountReader

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

GetClustersCountReader is a Reader for the GetClustersCount structure.

func (*GetClustersCountReader) ReadResponse

func (o *GetClustersCountReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetComponentByNameDefault

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

GetComponentByNameDefault handles this case with default header values.

unexpected error

func NewGetComponentByNameDefault

func NewGetComponentByNameDefault(code int) *GetComponentByNameDefault

NewGetComponentByNameDefault creates a GetComponentByNameDefault with default headers values

func (*GetComponentByNameDefault) Code

func (o *GetComponentByNameDefault) Code() int

Code gets the status code for the get component by name default response

func (*GetComponentByNameDefault) Error

func (o *GetComponentByNameDefault) Error() string

type GetComponentByNameOK

type GetComponentByNameOK struct {
	Payload GetComponentByNameOKBodyBody
}

GetComponentByNameOK handles this case with default header values.

component releases response

func NewGetComponentByNameOK

func NewGetComponentByNameOK() *GetComponentByNameOK

NewGetComponentByNameOK creates a GetComponentByNameOK with default headers values

func (*GetComponentByNameOK) Error

func (o *GetComponentByNameOK) Error() string

type GetComponentByNameOKBodyBody

type GetComponentByNameOKBodyBody struct {

	/* data

	Required: true
	*/
	Data []*models.ComponentVersion `json:"data"`
}

GetComponentByNameOKBodyBody get component by name o k body body

swagger:model GetComponentByNameOKBodyBody

func (*GetComponentByNameOKBodyBody) Validate

func (o *GetComponentByNameOKBodyBody) Validate(formats strfmt.Registry) error

Validate validates this get component by name o k body body

type GetComponentByNameParams

type GetComponentByNameParams struct {

	/*Component
	  A component is a single deis component, e.g., deis-router

	*/
	Component string
	/*Train
	  A train is a release cadence type, e.g., "beta" or "stable"

	*/
	Train string
}

GetComponentByNameParams contains all the parameters to send to the API endpoint for the get component by name operation typically these are written to a http.Request

func NewGetComponentByNameParams

func NewGetComponentByNameParams() *GetComponentByNameParams

NewGetComponentByNameParams creates a new GetComponentByNameParams object with the default values initialized.

func (*GetComponentByNameParams) WithComponent

func (o *GetComponentByNameParams) WithComponent(component string) *GetComponentByNameParams

WithComponent adds the component to the get component by name params

func (*GetComponentByNameParams) WithTrain

WithTrain adds the train to the get component by name params

func (*GetComponentByNameParams) WriteToRequest

func (o *GetComponentByNameParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetComponentByNameReader

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

GetComponentByNameReader is a Reader for the GetComponentByName structure.

func (*GetComponentByNameReader) ReadResponse

func (o *GetComponentByNameReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetComponentByReleaseDefault

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

GetComponentByReleaseDefault handles this case with default header values.

unexpected error

func NewGetComponentByReleaseDefault

func NewGetComponentByReleaseDefault(code int) *GetComponentByReleaseDefault

NewGetComponentByReleaseDefault creates a GetComponentByReleaseDefault with default headers values

func (*GetComponentByReleaseDefault) Code

Code gets the status code for the get component by release default response

func (*GetComponentByReleaseDefault) Error

type GetComponentByReleaseOK

type GetComponentByReleaseOK struct {
	Payload *models.ComponentVersion
}

GetComponentByReleaseOK handles this case with default header values.

component release response

func NewGetComponentByReleaseOK

func NewGetComponentByReleaseOK() *GetComponentByReleaseOK

NewGetComponentByReleaseOK creates a GetComponentByReleaseOK with default headers values

func (*GetComponentByReleaseOK) Error

func (o *GetComponentByReleaseOK) Error() string

type GetComponentByReleaseParams

type GetComponentByReleaseParams struct {

	/*Component
	  A component is a single deis component, e.g., deis-router

	*/
	Component string
	/*Release
	  The release version of the deis component, eg., 2.0.0-beta2

	*/
	Release string
	/*Train
	  A train is a release cadence type, e.g., "beta" or "stable"

	*/
	Train string
}

GetComponentByReleaseParams contains all the parameters to send to the API endpoint for the get component by release operation typically these are written to a http.Request

func NewGetComponentByReleaseParams

func NewGetComponentByReleaseParams() *GetComponentByReleaseParams

NewGetComponentByReleaseParams creates a new GetComponentByReleaseParams object with the default values initialized.

func (*GetComponentByReleaseParams) WithComponent

func (o *GetComponentByReleaseParams) WithComponent(component string) *GetComponentByReleaseParams

WithComponent adds the component to the get component by release params

func (*GetComponentByReleaseParams) WithRelease

WithRelease adds the release to the get component by release params

func (*GetComponentByReleaseParams) WithTrain

WithTrain adds the train to the get component by release params

func (*GetComponentByReleaseParams) WriteToRequest

func (o *GetComponentByReleaseParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetComponentByReleaseReader

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

GetComponentByReleaseReader is a Reader for the GetComponentByRelease structure.

func (*GetComponentByReleaseReader) ReadResponse

func (o *GetComponentByReleaseReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetComponentsByLatestReleaseBody

type GetComponentsByLatestReleaseBody struct {

	/* data
	 */
	Data []*models.ComponentVersion `json:"data,omitempty"`
}

GetComponentsByLatestReleaseBody get components by latest release body

swagger:model GetComponentsByLatestReleaseBody

func (*GetComponentsByLatestReleaseBody) Validate

Validate validates this get components by latest release body

type GetComponentsByLatestReleaseDefault

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

GetComponentsByLatestReleaseDefault handles this case with default header values.

unexpected error

func NewGetComponentsByLatestReleaseDefault

func NewGetComponentsByLatestReleaseDefault(code int) *GetComponentsByLatestReleaseDefault

NewGetComponentsByLatestReleaseDefault creates a GetComponentsByLatestReleaseDefault with default headers values

func (*GetComponentsByLatestReleaseDefault) Code

Code gets the status code for the get components by latest release default response

func (*GetComponentsByLatestReleaseDefault) Error

type GetComponentsByLatestReleaseOK

type GetComponentsByLatestReleaseOK struct {
	Payload GetComponentsByLatestReleaseOKBodyBody
}

GetComponentsByLatestReleaseOK handles this case with default header values.

component releases response

func NewGetComponentsByLatestReleaseOK

func NewGetComponentsByLatestReleaseOK() *GetComponentsByLatestReleaseOK

NewGetComponentsByLatestReleaseOK creates a GetComponentsByLatestReleaseOK with default headers values

func (*GetComponentsByLatestReleaseOK) Error

type GetComponentsByLatestReleaseOKBodyBody

type GetComponentsByLatestReleaseOKBodyBody struct {

	/* data

	Required: true
	*/
	Data []*models.ComponentVersion `json:"data"`
}

GetComponentsByLatestReleaseOKBodyBody get components by latest release o k body body

swagger:model GetComponentsByLatestReleaseOKBodyBody

func (*GetComponentsByLatestReleaseOKBodyBody) Validate

Validate validates this get components by latest release o k body body

type GetComponentsByLatestReleaseParams

type GetComponentsByLatestReleaseParams struct {

	/*Body*/
	Body GetComponentsByLatestReleaseBody
}

GetComponentsByLatestReleaseParams contains all the parameters to send to the API endpoint for the get components by latest release operation typically these are written to a http.Request

func NewGetComponentsByLatestReleaseParams

func NewGetComponentsByLatestReleaseParams() *GetComponentsByLatestReleaseParams

NewGetComponentsByLatestReleaseParams creates a new GetComponentsByLatestReleaseParams object with the default values initialized.

func (*GetComponentsByLatestReleaseParams) WithBody

WithBody adds the body to the get components by latest release params

func (*GetComponentsByLatestReleaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetComponentsByLatestReleaseReader

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

GetComponentsByLatestReleaseReader is a Reader for the GetComponentsByLatestRelease structure.

func (*GetComponentsByLatestReleaseReader) ReadResponse

func (o *GetComponentsByLatestReleaseReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type PublishComponentReleaseDefault

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

PublishComponentReleaseDefault handles this case with default header values.

unexpected error

func NewPublishComponentReleaseDefault

func NewPublishComponentReleaseDefault(code int) *PublishComponentReleaseDefault

NewPublishComponentReleaseDefault creates a PublishComponentReleaseDefault with default headers values

func (*PublishComponentReleaseDefault) Code

Code gets the status code for the publish component release default response

func (*PublishComponentReleaseDefault) Error

type PublishComponentReleaseOK

type PublishComponentReleaseOK struct {
	Payload *models.ComponentVersion
}

PublishComponentReleaseOK handles this case with default header values.

publish component release response

func NewPublishComponentReleaseOK

func NewPublishComponentReleaseOK() *PublishComponentReleaseOK

NewPublishComponentReleaseOK creates a PublishComponentReleaseOK with default headers values

func (*PublishComponentReleaseOK) Error

func (o *PublishComponentReleaseOK) Error() string

type PublishComponentReleaseParams

type PublishComponentReleaseParams struct {

	/*Body*/
	Body *models.ComponentVersion
	/*Component
	  A component is a single deis component, e.g., deis-router

	*/
	Component string
	/*Release
	  The release version of the deis component, eg., 2.0.0-beta2

	*/
	Release string
	/*Train
	  A train is a release cadence type, e.g., "beta" or "stable"

	*/
	Train string
}

PublishComponentReleaseParams contains all the parameters to send to the API endpoint for the publish component release operation typically these are written to a http.Request

func NewPublishComponentReleaseParams

func NewPublishComponentReleaseParams() *PublishComponentReleaseParams

NewPublishComponentReleaseParams creates a new PublishComponentReleaseParams object with the default values initialized.

func (*PublishComponentReleaseParams) WithBody

WithBody adds the body to the publish component release params

func (*PublishComponentReleaseParams) WithComponent

WithComponent adds the component to the publish component release params

func (*PublishComponentReleaseParams) WithRelease

WithRelease adds the release to the publish component release params

func (*PublishComponentReleaseParams) WithTrain

WithTrain adds the train to the publish component release params

func (*PublishComponentReleaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublishComponentReleaseReader

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

PublishComponentReleaseReader is a Reader for the PublishComponentRelease structure.

func (*PublishComponentReleaseReader) ReadResponse

func (o *PublishComponentReleaseReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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