tags

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: MIT Imports: 6 Imported by: 3

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 tags API

func New

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

New creates a new tags API client.

func (*Client) DeleteNodesIdentifierTagsTagname

DeleteNodesIdentifierTagsTagname removes tag from specified node

Remove tag from specified node.

func (*Client) GetNodesIdentifierTags

func (a *Client) GetNodesIdentifierTags(params *GetNodesIdentifierTagsParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodesIdentifierTagsOK, error)

GetNodesIdentifierTags gets the tags associated with a node

get the tags associated with a node.

func (*Client) GetTags

func (a *Client) GetTags(params *GetTagsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTagsOK, error)

GetTags fetches tags

Fetch tags

func (*Client) PatchNodesIdentifierTags

func (a *Client) PatchNodesIdentifierTags(params *PatchNodesIdentifierTagsParams, authInfo runtime.ClientAuthInfoWriter) (*PatchNodesIdentifierTagsOK, error)

PatchNodesIdentifierTags patches specified node s tags

Patch specified node's tags

func (*Client) PostTags

func (a *Client) PostTags(params *PostTagsParams, authInfo runtime.ClientAuthInfoWriter) (*PostTagsCreated, error)

PostTags posts tag

create new tag

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteNodesIdentifierTagsTagnameDefault

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

DeleteNodesIdentifierTagsTagnameDefault handles this case with default header values.

Unexpected error

func NewDeleteNodesIdentifierTagsTagnameDefault

func NewDeleteNodesIdentifierTagsTagnameDefault(code int) *DeleteNodesIdentifierTagsTagnameDefault

NewDeleteNodesIdentifierTagsTagnameDefault creates a DeleteNodesIdentifierTagsTagnameDefault with default headers values

func (*DeleteNodesIdentifierTagsTagnameDefault) Code

Code gets the status code for the delete nodes identifier tags tagname default response

func (*DeleteNodesIdentifierTagsTagnameDefault) Error

type DeleteNodesIdentifierTagsTagnameNotFound

type DeleteNodesIdentifierTagsTagnameNotFound struct {
	Payload *models.Error
}

DeleteNodesIdentifierTagsTagnameNotFound handles this case with default header values.

The node with the identifier was not found.

func NewDeleteNodesIdentifierTagsTagnameNotFound

func NewDeleteNodesIdentifierTagsTagnameNotFound() *DeleteNodesIdentifierTagsTagnameNotFound

NewDeleteNodesIdentifierTagsTagnameNotFound creates a DeleteNodesIdentifierTagsTagnameNotFound with default headers values

func (*DeleteNodesIdentifierTagsTagnameNotFound) Error

type DeleteNodesIdentifierTagsTagnameOK

type DeleteNodesIdentifierTagsTagnameOK struct {
}

DeleteNodesIdentifierTagsTagnameOK handles this case with default header values.

Delete successful

func NewDeleteNodesIdentifierTagsTagnameOK

func NewDeleteNodesIdentifierTagsTagnameOK() *DeleteNodesIdentifierTagsTagnameOK

NewDeleteNodesIdentifierTagsTagnameOK creates a DeleteNodesIdentifierTagsTagnameOK with default headers values

func (*DeleteNodesIdentifierTagsTagnameOK) Error

type DeleteNodesIdentifierTagsTagnameParams

type DeleteNodesIdentifierTagsTagnameParams struct {

	/*Identifier
	  Mac addresses and unique aliases to identify the node by


	*/
	Identifier string
	/*Tagname
	  tag to remove from node


	*/
	Tagname string
}

DeleteNodesIdentifierTagsTagnameParams contains all the parameters to send to the API endpoint for the delete nodes identifier tags tagname operation typically these are written to a http.Request

func NewDeleteNodesIdentifierTagsTagnameParams

func NewDeleteNodesIdentifierTagsTagnameParams() *DeleteNodesIdentifierTagsTagnameParams

NewDeleteNodesIdentifierTagsTagnameParams creates a new DeleteNodesIdentifierTagsTagnameParams object with the default values initialized.

func (*DeleteNodesIdentifierTagsTagnameParams) WithIdentifier

WithIdentifier adds the identifier to the delete nodes identifier tags tagname params

func (*DeleteNodesIdentifierTagsTagnameParams) WithTagname

WithTagname adds the tagname to the delete nodes identifier tags tagname params

func (*DeleteNodesIdentifierTagsTagnameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNodesIdentifierTagsTagnameReader

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

DeleteNodesIdentifierTagsTagnameReader is a Reader for the DeleteNodesIdentifierTagsTagname structure.

func (*DeleteNodesIdentifierTagsTagnameReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetNodesIdentifierTagsDefault

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

GetNodesIdentifierTagsDefault handles this case with default header values.

Unexpected error

func NewGetNodesIdentifierTagsDefault

func NewGetNodesIdentifierTagsDefault(code int) *GetNodesIdentifierTagsDefault

NewGetNodesIdentifierTagsDefault creates a GetNodesIdentifierTagsDefault with default headers values

func (*GetNodesIdentifierTagsDefault) Code

Code gets the status code for the get nodes identifier tags default response

func (*GetNodesIdentifierTagsDefault) Error

type GetNodesIdentifierTagsOK

type GetNodesIdentifierTagsOK struct {
	Payload []string
}

GetNodesIdentifierTagsOK handles this case with default header values.

tags

func NewGetNodesIdentifierTagsOK

func NewGetNodesIdentifierTagsOK() *GetNodesIdentifierTagsOK

NewGetNodesIdentifierTagsOK creates a GetNodesIdentifierTagsOK with default headers values

func (*GetNodesIdentifierTagsOK) Error

func (o *GetNodesIdentifierTagsOK) Error() string

type GetNodesIdentifierTagsParams

type GetNodesIdentifierTagsParams struct {

	/*Identifier
	  Mac addresses and unique aliases to identify the node by


	*/
	Identifier string
}

GetNodesIdentifierTagsParams contains all the parameters to send to the API endpoint for the get nodes identifier tags operation typically these are written to a http.Request

func NewGetNodesIdentifierTagsParams

func NewGetNodesIdentifierTagsParams() *GetNodesIdentifierTagsParams

NewGetNodesIdentifierTagsParams creates a new GetNodesIdentifierTagsParams object with the default values initialized.

func (*GetNodesIdentifierTagsParams) WithIdentifier

func (o *GetNodesIdentifierTagsParams) WithIdentifier(Identifier string) *GetNodesIdentifierTagsParams

WithIdentifier adds the identifier to the get nodes identifier tags params

func (*GetNodesIdentifierTagsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNodesIdentifierTagsReader

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

GetNodesIdentifierTagsReader is a Reader for the GetNodesIdentifierTags structure.

func (*GetNodesIdentifierTagsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetTagsDefault

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

GetTagsDefault handles this case with default header values.

Unexpected error

func NewGetTagsDefault

func NewGetTagsDefault(code int) *GetTagsDefault

NewGetTagsDefault creates a GetTagsDefault with default headers values

func (*GetTagsDefault) Code

func (o *GetTagsDefault) Code() int

Code gets the status code for the get tags default response

func (*GetTagsDefault) Error

func (o *GetTagsDefault) Error() string

type GetTagsOK

type GetTagsOK struct {
	Payload []interface{}
}

GetTagsOK handles this case with default header values.

array of all tags fetched

func NewGetTagsOK

func NewGetTagsOK() *GetTagsOK

NewGetTagsOK creates a GetTagsOK with default headers values

func (*GetTagsOK) Error

func (o *GetTagsOK) Error() string

type GetTagsParams

type GetTagsParams struct {
}

GetTagsParams contains all the parameters to send to the API endpoint for the get tags operation typically these are written to a http.Request

func NewGetTagsParams

func NewGetTagsParams() *GetTagsParams

NewGetTagsParams creates a new GetTagsParams object with the default values initialized.

func (*GetTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTagsReader

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

GetTagsReader is a Reader for the GetTags structure.

func (*GetTagsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PatchNodesIdentifierTagsDefault

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

PatchNodesIdentifierTagsDefault handles this case with default header values.

Unexpected error

func NewPatchNodesIdentifierTagsDefault

func NewPatchNodesIdentifierTagsDefault(code int) *PatchNodesIdentifierTagsDefault

NewPatchNodesIdentifierTagsDefault creates a PatchNodesIdentifierTagsDefault with default headers values

func (*PatchNodesIdentifierTagsDefault) Code

Code gets the status code for the patch nodes identifier tags default response

func (*PatchNodesIdentifierTagsDefault) Error

type PatchNodesIdentifierTagsNotFound

type PatchNodesIdentifierTagsNotFound struct {
	Payload *models.Error
}

PatchNodesIdentifierTagsNotFound handles this case with default header values.

Not found

func NewPatchNodesIdentifierTagsNotFound

func NewPatchNodesIdentifierTagsNotFound() *PatchNodesIdentifierTagsNotFound

NewPatchNodesIdentifierTagsNotFound creates a PatchNodesIdentifierTagsNotFound with default headers values

func (*PatchNodesIdentifierTagsNotFound) Error

type PatchNodesIdentifierTagsOK

type PatchNodesIdentifierTagsOK struct {
	Payload PatchNodesIdentifierTagsOKBodyBody
}

PatchNodesIdentifierTagsOK handles this case with default header values.

patch succeeded

func NewPatchNodesIdentifierTagsOK

func NewPatchNodesIdentifierTagsOK() *PatchNodesIdentifierTagsOK

NewPatchNodesIdentifierTagsOK creates a PatchNodesIdentifierTagsOK with default headers values

func (*PatchNodesIdentifierTagsOK) Error

type PatchNodesIdentifierTagsOKBodyBody

type PatchNodesIdentifierTagsOKBodyBody interface{}

PatchNodesIdentifierTagsOKBodyBody patch nodes identifier tags o k body body

swagger:model PatchNodesIdentifierTagsOKBodyBody

type PatchNodesIdentifierTagsParams

type PatchNodesIdentifierTagsParams struct {

	/*Body
	  tags to apply


	*/
	Body interface{}
	/*Identifier
	  Mac addresses and unique aliases to identify the node by


	*/
	Identifier string
}

PatchNodesIdentifierTagsParams contains all the parameters to send to the API endpoint for the patch nodes identifier tags operation typically these are written to a http.Request

func NewPatchNodesIdentifierTagsParams

func NewPatchNodesIdentifierTagsParams() *PatchNodesIdentifierTagsParams

NewPatchNodesIdentifierTagsParams creates a new PatchNodesIdentifierTagsParams object with the default values initialized.

func (*PatchNodesIdentifierTagsParams) WithBody

func (o *PatchNodesIdentifierTagsParams) WithBody(Body interface{}) *PatchNodesIdentifierTagsParams

WithBody adds the body to the patch nodes identifier tags params

func (*PatchNodesIdentifierTagsParams) WithIdentifier

WithIdentifier adds the identifier to the patch nodes identifier tags params

func (*PatchNodesIdentifierTagsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchNodesIdentifierTagsReader

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

PatchNodesIdentifierTagsReader is a Reader for the PatchNodesIdentifierTags structure.

func (*PatchNodesIdentifierTagsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostTagsConflict

type PostTagsConflict struct {
	Payload *models.Error
}

PostTagsConflict handles this case with default header values.

tag already exists

func NewPostTagsConflict

func NewPostTagsConflict() *PostTagsConflict

NewPostTagsConflict creates a PostTagsConflict with default headers values

func (*PostTagsConflict) Error

func (o *PostTagsConflict) Error() string

type PostTagsCreated

type PostTagsCreated struct {
}

PostTagsCreated handles this case with default header values.

tag accepted successfully

func NewPostTagsCreated

func NewPostTagsCreated() *PostTagsCreated

NewPostTagsCreated creates a PostTagsCreated with default headers values

func (*PostTagsCreated) Error

func (o *PostTagsCreated) Error() string

type PostTagsDefault

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

PostTagsDefault handles this case with default header values.

Unexpected error

func NewPostTagsDefault

func NewPostTagsDefault(code int) *PostTagsDefault

NewPostTagsDefault creates a PostTagsDefault with default headers values

func (*PostTagsDefault) Code

func (o *PostTagsDefault) Code() int

Code gets the status code for the post tags default response

func (*PostTagsDefault) Error

func (o *PostTagsDefault) Error() string

type PostTagsParams

type PostTagsParams struct {

	/*Body*/
	Body interface{}
}

PostTagsParams contains all the parameters to send to the API endpoint for the post tags operation typically these are written to a http.Request

func NewPostTagsParams

func NewPostTagsParams() *PostTagsParams

NewPostTagsParams creates a new PostTagsParams object with the default values initialized.

func (*PostTagsParams) WithBody

func (o *PostTagsParams) WithBody(Body interface{}) *PostTagsParams

WithBody adds the body to the post tags params

func (*PostTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostTagsReader

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

PostTagsReader is a Reader for the PostTags structure.

func (*PostTagsReader) ReadResponse

func (o *PostTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.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