constraints

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 8 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 constraints API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new constraints API client.

func (*Client) DeleteConstraintsAccountName

func (a *Client) DeleteConstraintsAccountName(params *DeleteConstraintsAccountNameParams) error

DeleteConstraintsAccountName deletes public owned or private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) DeleteConstraintsID

func (a *Client) DeleteConstraintsID(params *DeleteConstraintsIDParams) error

DeleteConstraintsID deletes constraint template by id

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) DeleteConstraintsUserName

func (a *Client) DeleteConstraintsUserName(params *DeleteConstraintsUserNameParams) error

DeleteConstraintsUserName deletes private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) GetConstraintsAccount

func (a *Client) GetConstraintsAccount(params *GetConstraintsAccountParams) (*GetConstraintsAccountOK, error)

GetConstraintsAccount retrieves public and private owned constraint templates

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) GetConstraintsAccountName

func (a *Client) GetConstraintsAccountName(params *GetConstraintsAccountNameParams) (*GetConstraintsAccountNameOK, error)

GetConstraintsAccountName retrieves a public or private owned constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) GetConstraintsID

func (a *Client) GetConstraintsID(params *GetConstraintsIDParams) (*GetConstraintsIDOK, error)

GetConstraintsID retrieves constraint template by id

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) GetConstraintsUser

func (a *Client) GetConstraintsUser(params *GetConstraintsUserParams) (*GetConstraintsUserOK, error)

GetConstraintsUser retrieves private constraint templates

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) GetConstraintsUserName

func (a *Client) GetConstraintsUserName(params *GetConstraintsUserNameParams) (*GetConstraintsUserNameOK, error)

GetConstraintsUserName retrieves a private constraint template by name

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) PostConstraintsAccount

func (a *Client) PostConstraintsAccount(params *PostConstraintsAccountParams) (*PostConstraintsAccountOK, error)

PostConstraintsAccount creates constraint template as public resource

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) PostConstraintsUser

func (a *Client) PostConstraintsUser(params *PostConstraintsUserParams) (*PostConstraintsUserOK, error)

PostConstraintsUser creates constraint template as private resource

A constraint template tells Cloudbreak the resource constraints (cpu, memory, disk) of the Ambari containers that will be deployed to the cluster. A constraint template must be created onenvironments where there is no one-to-one mapping between containers and nodes, like Mesos.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteConstraintsAccountNameDefault

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

DeleteConstraintsAccountNameDefault handles this case with default header values.

successful operation

func NewDeleteConstraintsAccountNameDefault

func NewDeleteConstraintsAccountNameDefault(code int) *DeleteConstraintsAccountNameDefault

NewDeleteConstraintsAccountNameDefault creates a DeleteConstraintsAccountNameDefault with default headers values

func (*DeleteConstraintsAccountNameDefault) Code

Code gets the status code for the delete constraints account name default response

func (*DeleteConstraintsAccountNameDefault) Error

type DeleteConstraintsAccountNameParams

type DeleteConstraintsAccountNameParams struct {

	/*Name*/
	Name string
}

DeleteConstraintsAccountNameParams contains all the parameters to send to the API endpoint for the delete constraints account name operation typically these are written to a http.Request

func NewDeleteConstraintsAccountNameParams

func NewDeleteConstraintsAccountNameParams() *DeleteConstraintsAccountNameParams

NewDeleteConstraintsAccountNameParams creates a new DeleteConstraintsAccountNameParams object with the default values initialized.

func (*DeleteConstraintsAccountNameParams) WithName

WithName adds the name to the delete constraints account name params

func (*DeleteConstraintsAccountNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConstraintsAccountNameReader

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

DeleteConstraintsAccountNameReader is a Reader for the DeleteConstraintsAccountName structure.

func (*DeleteConstraintsAccountNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteConstraintsIDDefault

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

DeleteConstraintsIDDefault handles this case with default header values.

successful operation

func NewDeleteConstraintsIDDefault

func NewDeleteConstraintsIDDefault(code int) *DeleteConstraintsIDDefault

NewDeleteConstraintsIDDefault creates a DeleteConstraintsIDDefault with default headers values

func (*DeleteConstraintsIDDefault) Code

func (o *DeleteConstraintsIDDefault) Code() int

Code gets the status code for the delete constraints ID default response

func (*DeleteConstraintsIDDefault) Error

type DeleteConstraintsIDParams

type DeleteConstraintsIDParams struct {

	/*ID*/
	ID int64
}

DeleteConstraintsIDParams contains all the parameters to send to the API endpoint for the delete constraints ID operation typically these are written to a http.Request

func NewDeleteConstraintsIDParams

func NewDeleteConstraintsIDParams() *DeleteConstraintsIDParams

NewDeleteConstraintsIDParams creates a new DeleteConstraintsIDParams object with the default values initialized.

func (*DeleteConstraintsIDParams) WithID

WithID adds the id to the delete constraints ID params

func (*DeleteConstraintsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConstraintsIDReader

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

DeleteConstraintsIDReader is a Reader for the DeleteConstraintsID structure.

func (*DeleteConstraintsIDReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteConstraintsUserNameDefault

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

DeleteConstraintsUserNameDefault handles this case with default header values.

successful operation

func NewDeleteConstraintsUserNameDefault

func NewDeleteConstraintsUserNameDefault(code int) *DeleteConstraintsUserNameDefault

NewDeleteConstraintsUserNameDefault creates a DeleteConstraintsUserNameDefault with default headers values

func (*DeleteConstraintsUserNameDefault) Code

Code gets the status code for the delete constraints user name default response

func (*DeleteConstraintsUserNameDefault) Error

type DeleteConstraintsUserNameParams

type DeleteConstraintsUserNameParams struct {

	/*Name*/
	Name string
}

DeleteConstraintsUserNameParams contains all the parameters to send to the API endpoint for the delete constraints user name operation typically these are written to a http.Request

func NewDeleteConstraintsUserNameParams

func NewDeleteConstraintsUserNameParams() *DeleteConstraintsUserNameParams

NewDeleteConstraintsUserNameParams creates a new DeleteConstraintsUserNameParams object with the default values initialized.

func (*DeleteConstraintsUserNameParams) WithName

WithName adds the name to the delete constraints user name params

func (*DeleteConstraintsUserNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConstraintsUserNameReader

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

DeleteConstraintsUserNameReader is a Reader for the DeleteConstraintsUserName structure.

func (*DeleteConstraintsUserNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConstraintsAccountNameOK

type GetConstraintsAccountNameOK struct {
	Payload *models.ConstraintTemplateResponse
}

GetConstraintsAccountNameOK handles this case with default header values.

successful operation

func NewGetConstraintsAccountNameOK

func NewGetConstraintsAccountNameOK() *GetConstraintsAccountNameOK

NewGetConstraintsAccountNameOK creates a GetConstraintsAccountNameOK with default headers values

func (*GetConstraintsAccountNameOK) Error

type GetConstraintsAccountNameParams

type GetConstraintsAccountNameParams struct {

	/*Name*/
	Name string
}

GetConstraintsAccountNameParams contains all the parameters to send to the API endpoint for the get constraints account name operation typically these are written to a http.Request

func NewGetConstraintsAccountNameParams

func NewGetConstraintsAccountNameParams() *GetConstraintsAccountNameParams

NewGetConstraintsAccountNameParams creates a new GetConstraintsAccountNameParams object with the default values initialized.

func (*GetConstraintsAccountNameParams) WithName

WithName adds the name to the get constraints account name params

func (*GetConstraintsAccountNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConstraintsAccountNameReader

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

GetConstraintsAccountNameReader is a Reader for the GetConstraintsAccountName structure.

func (*GetConstraintsAccountNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConstraintsAccountOK

type GetConstraintsAccountOK struct {
	Payload []*models.ConstraintTemplateResponse
}

GetConstraintsAccountOK handles this case with default header values.

successful operation

func NewGetConstraintsAccountOK

func NewGetConstraintsAccountOK() *GetConstraintsAccountOK

NewGetConstraintsAccountOK creates a GetConstraintsAccountOK with default headers values

func (*GetConstraintsAccountOK) Error

func (o *GetConstraintsAccountOK) Error() string

type GetConstraintsAccountParams

type GetConstraintsAccountParams struct {
}

GetConstraintsAccountParams contains all the parameters to send to the API endpoint for the get constraints account operation typically these are written to a http.Request

func NewGetConstraintsAccountParams

func NewGetConstraintsAccountParams() *GetConstraintsAccountParams

NewGetConstraintsAccountParams creates a new GetConstraintsAccountParams object with the default values initialized.

func (*GetConstraintsAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConstraintsAccountReader

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

GetConstraintsAccountReader is a Reader for the GetConstraintsAccount structure.

func (*GetConstraintsAccountReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConstraintsIDOK

type GetConstraintsIDOK struct {
	Payload *models.ConstraintTemplateResponse
}

GetConstraintsIDOK handles this case with default header values.

successful operation

func NewGetConstraintsIDOK

func NewGetConstraintsIDOK() *GetConstraintsIDOK

NewGetConstraintsIDOK creates a GetConstraintsIDOK with default headers values

func (*GetConstraintsIDOK) Error

func (o *GetConstraintsIDOK) Error() string

type GetConstraintsIDParams

type GetConstraintsIDParams struct {

	/*ID*/
	ID int64
}

GetConstraintsIDParams contains all the parameters to send to the API endpoint for the get constraints ID operation typically these are written to a http.Request

func NewGetConstraintsIDParams

func NewGetConstraintsIDParams() *GetConstraintsIDParams

NewGetConstraintsIDParams creates a new GetConstraintsIDParams object with the default values initialized.

func (*GetConstraintsIDParams) WithID

WithID adds the id to the get constraints ID params

func (*GetConstraintsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConstraintsIDReader

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

GetConstraintsIDReader is a Reader for the GetConstraintsID structure.

func (*GetConstraintsIDReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConstraintsUserNameOK

type GetConstraintsUserNameOK struct {
	Payload *models.ConstraintTemplateResponse
}

GetConstraintsUserNameOK handles this case with default header values.

successful operation

func NewGetConstraintsUserNameOK

func NewGetConstraintsUserNameOK() *GetConstraintsUserNameOK

NewGetConstraintsUserNameOK creates a GetConstraintsUserNameOK with default headers values

func (*GetConstraintsUserNameOK) Error

func (o *GetConstraintsUserNameOK) Error() string

type GetConstraintsUserNameParams

type GetConstraintsUserNameParams struct {

	/*Name*/
	Name string
}

GetConstraintsUserNameParams contains all the parameters to send to the API endpoint for the get constraints user name operation typically these are written to a http.Request

func NewGetConstraintsUserNameParams

func NewGetConstraintsUserNameParams() *GetConstraintsUserNameParams

NewGetConstraintsUserNameParams creates a new GetConstraintsUserNameParams object with the default values initialized.

func (*GetConstraintsUserNameParams) WithName

WithName adds the name to the get constraints user name params

func (*GetConstraintsUserNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConstraintsUserNameReader

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

GetConstraintsUserNameReader is a Reader for the GetConstraintsUserName structure.

func (*GetConstraintsUserNameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConstraintsUserOK

type GetConstraintsUserOK struct {
	Payload []*models.ConstraintTemplateResponse
}

GetConstraintsUserOK handles this case with default header values.

successful operation

func NewGetConstraintsUserOK

func NewGetConstraintsUserOK() *GetConstraintsUserOK

NewGetConstraintsUserOK creates a GetConstraintsUserOK with default headers values

func (*GetConstraintsUserOK) Error

func (o *GetConstraintsUserOK) Error() string

type GetConstraintsUserParams

type GetConstraintsUserParams struct {
}

GetConstraintsUserParams contains all the parameters to send to the API endpoint for the get constraints user operation typically these are written to a http.Request

func NewGetConstraintsUserParams

func NewGetConstraintsUserParams() *GetConstraintsUserParams

NewGetConstraintsUserParams creates a new GetConstraintsUserParams object with the default values initialized.

func (*GetConstraintsUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConstraintsUserReader

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

GetConstraintsUserReader is a Reader for the GetConstraintsUser structure.

func (*GetConstraintsUserReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostConstraintsAccountOK

type PostConstraintsAccountOK struct {
	Payload *models.ID
}

PostConstraintsAccountOK handles this case with default header values.

successful operation

func NewPostConstraintsAccountOK

func NewPostConstraintsAccountOK() *PostConstraintsAccountOK

NewPostConstraintsAccountOK creates a PostConstraintsAccountOK with default headers values

func (*PostConstraintsAccountOK) Error

func (o *PostConstraintsAccountOK) Error() string

type PostConstraintsAccountParams

type PostConstraintsAccountParams struct {

	/*Body*/
	Body *models.ConstraintTemplateRequest
}

PostConstraintsAccountParams contains all the parameters to send to the API endpoint for the post constraints account operation typically these are written to a http.Request

func NewPostConstraintsAccountParams

func NewPostConstraintsAccountParams() *PostConstraintsAccountParams

NewPostConstraintsAccountParams creates a new PostConstraintsAccountParams object with the default values initialized.

func (*PostConstraintsAccountParams) WithBody

WithBody adds the body to the post constraints account params

func (*PostConstraintsAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostConstraintsAccountReader

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

PostConstraintsAccountReader is a Reader for the PostConstraintsAccount structure.

func (*PostConstraintsAccountReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostConstraintsUserOK

type PostConstraintsUserOK struct {
	Payload *models.ID
}

PostConstraintsUserOK handles this case with default header values.

successful operation

func NewPostConstraintsUserOK

func NewPostConstraintsUserOK() *PostConstraintsUserOK

NewPostConstraintsUserOK creates a PostConstraintsUserOK with default headers values

func (*PostConstraintsUserOK) Error

func (o *PostConstraintsUserOK) Error() string

type PostConstraintsUserParams

type PostConstraintsUserParams struct {

	/*Body*/
	Body *models.ConstraintTemplateRequest
}

PostConstraintsUserParams contains all the parameters to send to the API endpoint for the post constraints user operation typically these are written to a http.Request

func NewPostConstraintsUserParams

func NewPostConstraintsUserParams() *PostConstraintsUserParams

NewPostConstraintsUserParams creates a new PostConstraintsUserParams object with the default values initialized.

func (*PostConstraintsUserParams) WithBody

WithBody adds the body to the post constraints user params

func (*PostConstraintsUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostConstraintsUserReader

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

PostConstraintsUserReader is a Reader for the PostConstraintsUser structure.

func (*PostConstraintsUserReader) ReadResponse

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