dhcp

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

func New

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

New creates a new dhcp API client.

func (*Client) DeleteDhcpLeaseMac

func (a *Client) DeleteDhcpLeaseMac(params *DeleteDhcpLeaseMacParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDhcpLeaseMacOK, error)

DeleteDhcpLeaseMac gets list of all catalogs

Delete the lease for the mac specified and return information about deleted lease.

func (*Client) DeleteNodesMacaddressDhcpWhitelist

DeleteNodesMacaddressDhcpWhitelist removes a whitelist of specified mac address

Remove a whitelist of specified mac address

func (*Client) GetDhcp

func (a *Client) GetDhcp(params *GetDhcpParams, authInfo runtime.ClientAuthInfoWriter) (*GetDhcpOK, error)

GetDhcp gets d h c p lease table

Fetch the dhcp leases.

func (*Client) GetDhcpLeaseMac

func (a *Client) GetDhcpLeaseMac(params *GetDhcpLeaseMacParams, authInfo runtime.ClientAuthInfoWriter) (*GetDhcpLeaseMacOK, error)

GetDhcpLeaseMac fetches lease information for the mac specified

Fetch lease information for the mac specified.

func (*Client) PostNodesMacaddressDhcpWhitelist

PostNodesMacaddressDhcpWhitelist adds a whitelist of specified mac address

Add a whitelist of specified mac address

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteDhcpLeaseMacDefault

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

DeleteDhcpLeaseMacDefault handles this case with default header values.

NotFound error

func NewDeleteDhcpLeaseMacDefault

func NewDeleteDhcpLeaseMacDefault(code int) *DeleteDhcpLeaseMacDefault

NewDeleteDhcpLeaseMacDefault creates a DeleteDhcpLeaseMacDefault with default headers values

func (*DeleteDhcpLeaseMacDefault) Code

func (o *DeleteDhcpLeaseMacDefault) Code() int

Code gets the status code for the delete dhcp lease mac default response

func (*DeleteDhcpLeaseMacDefault) Error

func (o *DeleteDhcpLeaseMacDefault) Error() string

type DeleteDhcpLeaseMacOK

type DeleteDhcpLeaseMacOK struct {
	Payload []*models.Lease
}

DeleteDhcpLeaseMacOK handles this case with default header values.

A single lease

func NewDeleteDhcpLeaseMacOK

func NewDeleteDhcpLeaseMacOK() *DeleteDhcpLeaseMacOK

NewDeleteDhcpLeaseMacOK creates a DeleteDhcpLeaseMacOK with default headers values

func (*DeleteDhcpLeaseMacOK) Error

func (o *DeleteDhcpLeaseMacOK) Error() string

type DeleteDhcpLeaseMacParams

type DeleteDhcpLeaseMacParams struct {

	/*Mac
	  identifier of a mac address

	*/
	Mac string
}

DeleteDhcpLeaseMacParams contains all the parameters to send to the API endpoint for the delete dhcp lease mac operation typically these are written to a http.Request

func NewDeleteDhcpLeaseMacParams

func NewDeleteDhcpLeaseMacParams() *DeleteDhcpLeaseMacParams

NewDeleteDhcpLeaseMacParams creates a new DeleteDhcpLeaseMacParams object with the default values initialized.

func (*DeleteDhcpLeaseMacParams) WithMac

WithMac adds the mac to the delete dhcp lease mac params

func (*DeleteDhcpLeaseMacParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDhcpLeaseMacReader

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

DeleteDhcpLeaseMacReader is a Reader for the DeleteDhcpLeaseMac structure.

func (*DeleteDhcpLeaseMacReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteNodesMacaddressDhcpWhitelistDefault

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

DeleteNodesMacaddressDhcpWhitelistDefault handles this case with default header values.

Unexpected error

func NewDeleteNodesMacaddressDhcpWhitelistDefault

func NewDeleteNodesMacaddressDhcpWhitelistDefault(code int) *DeleteNodesMacaddressDhcpWhitelistDefault

NewDeleteNodesMacaddressDhcpWhitelistDefault creates a DeleteNodesMacaddressDhcpWhitelistDefault with default headers values

func (*DeleteNodesMacaddressDhcpWhitelistDefault) Code

Code gets the status code for the delete nodes macaddress dhcp whitelist default response

func (*DeleteNodesMacaddressDhcpWhitelistDefault) Error

type DeleteNodesMacaddressDhcpWhitelistNoContent

type DeleteNodesMacaddressDhcpWhitelistNoContent struct {
}

DeleteNodesMacaddressDhcpWhitelistNoContent handles this case with default header values.

delete completed successfully

func NewDeleteNodesMacaddressDhcpWhitelistNoContent

func NewDeleteNodesMacaddressDhcpWhitelistNoContent() *DeleteNodesMacaddressDhcpWhitelistNoContent

NewDeleteNodesMacaddressDhcpWhitelistNoContent creates a DeleteNodesMacaddressDhcpWhitelistNoContent with default headers values

func (*DeleteNodesMacaddressDhcpWhitelistNoContent) Error

type DeleteNodesMacaddressDhcpWhitelistNotFound

type DeleteNodesMacaddressDhcpWhitelistNotFound struct {
	Payload *models.Error
}

DeleteNodesMacaddressDhcpWhitelistNotFound handles this case with default header values.

The node with the identifier was not found

func NewDeleteNodesMacaddressDhcpWhitelistNotFound

func NewDeleteNodesMacaddressDhcpWhitelistNotFound() *DeleteNodesMacaddressDhcpWhitelistNotFound

NewDeleteNodesMacaddressDhcpWhitelistNotFound creates a DeleteNodesMacaddressDhcpWhitelistNotFound with default headers values

func (*DeleteNodesMacaddressDhcpWhitelistNotFound) Error

type DeleteNodesMacaddressDhcpWhitelistParams

type DeleteNodesMacaddressDhcpWhitelistParams struct {

	/*Macaddress
	  Mac addresses and unique aliases to identify the node by, |
	expect a string or an array of strings.


	*/
	Macaddress string
}

DeleteNodesMacaddressDhcpWhitelistParams contains all the parameters to send to the API endpoint for the delete nodes macaddress dhcp whitelist operation typically these are written to a http.Request

func NewDeleteNodesMacaddressDhcpWhitelistParams

func NewDeleteNodesMacaddressDhcpWhitelistParams() *DeleteNodesMacaddressDhcpWhitelistParams

NewDeleteNodesMacaddressDhcpWhitelistParams creates a new DeleteNodesMacaddressDhcpWhitelistParams object with the default values initialized.

func (*DeleteNodesMacaddressDhcpWhitelistParams) WithMacaddress

WithMacaddress adds the macaddress to the delete nodes macaddress dhcp whitelist params

func (*DeleteNodesMacaddressDhcpWhitelistParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNodesMacaddressDhcpWhitelistReader

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

DeleteNodesMacaddressDhcpWhitelistReader is a Reader for the DeleteNodesMacaddressDhcpWhitelist structure.

func (*DeleteNodesMacaddressDhcpWhitelistReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetDhcpDefault

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

GetDhcpDefault handles this case with default header values.

NotFound error

func NewGetDhcpDefault

func NewGetDhcpDefault(code int) *GetDhcpDefault

NewGetDhcpDefault creates a GetDhcpDefault with default headers values

func (*GetDhcpDefault) Code

func (o *GetDhcpDefault) Code() int

Code gets the status code for the get dhcp default response

func (*GetDhcpDefault) Error

func (o *GetDhcpDefault) Error() string

type GetDhcpLeaseMacDefault

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

GetDhcpLeaseMacDefault handles this case with default header values.

NotFound error

func NewGetDhcpLeaseMacDefault

func NewGetDhcpLeaseMacDefault(code int) *GetDhcpLeaseMacDefault

NewGetDhcpLeaseMacDefault creates a GetDhcpLeaseMacDefault with default headers values

func (*GetDhcpLeaseMacDefault) Code

func (o *GetDhcpLeaseMacDefault) Code() int

Code gets the status code for the get dhcp lease mac default response

func (*GetDhcpLeaseMacDefault) Error

func (o *GetDhcpLeaseMacDefault) Error() string

type GetDhcpLeaseMacOK

type GetDhcpLeaseMacOK struct {
	Payload *models.Lease
}

GetDhcpLeaseMacOK handles this case with default header values.

A single lease

func NewGetDhcpLeaseMacOK

func NewGetDhcpLeaseMacOK() *GetDhcpLeaseMacOK

NewGetDhcpLeaseMacOK creates a GetDhcpLeaseMacOK with default headers values

func (*GetDhcpLeaseMacOK) Error

func (o *GetDhcpLeaseMacOK) Error() string

type GetDhcpLeaseMacParams

type GetDhcpLeaseMacParams struct {

	/*Mac
	  identifier of a mac address

	*/
	Mac string
}

GetDhcpLeaseMacParams contains all the parameters to send to the API endpoint for the get dhcp lease mac operation typically these are written to a http.Request

func NewGetDhcpLeaseMacParams

func NewGetDhcpLeaseMacParams() *GetDhcpLeaseMacParams

NewGetDhcpLeaseMacParams creates a new GetDhcpLeaseMacParams object with the default values initialized.

func (*GetDhcpLeaseMacParams) WithMac

WithMac adds the mac to the get dhcp lease mac params

func (*GetDhcpLeaseMacParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDhcpLeaseMacReader

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

GetDhcpLeaseMacReader is a Reader for the GetDhcpLeaseMac structure.

func (*GetDhcpLeaseMacReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetDhcpOK

type GetDhcpOK struct {
	Payload []*models.Lease
}

GetDhcpOK handles this case with default header values.

A list of all DHCP leases registered with this instance of the service.

func NewGetDhcpOK

func NewGetDhcpOK() *GetDhcpOK

NewGetDhcpOK creates a GetDhcpOK with default headers values

func (*GetDhcpOK) Error

func (o *GetDhcpOK) Error() string

type GetDhcpParams

type GetDhcpParams struct {
}

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

func NewGetDhcpParams

func NewGetDhcpParams() *GetDhcpParams

NewGetDhcpParams creates a new GetDhcpParams object with the default values initialized.

func (*GetDhcpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDhcpReader

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

GetDhcpReader is a Reader for the GetDhcp structure.

func (*GetDhcpReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PostNodesMacaddressDhcpWhitelistCreated

type PostNodesMacaddressDhcpWhitelistCreated struct {
	Payload PostNodesMacaddressDhcpWhitelistCreatedBodyBody
}

PostNodesMacaddressDhcpWhitelistCreated handles this case with default header values.

the add was successful and it returns the whitelist

func NewPostNodesMacaddressDhcpWhitelistCreated

func NewPostNodesMacaddressDhcpWhitelistCreated() *PostNodesMacaddressDhcpWhitelistCreated

NewPostNodesMacaddressDhcpWhitelistCreated creates a PostNodesMacaddressDhcpWhitelistCreated with default headers values

func (*PostNodesMacaddressDhcpWhitelistCreated) Error

type PostNodesMacaddressDhcpWhitelistCreatedBodyBody

type PostNodesMacaddressDhcpWhitelistCreatedBodyBody interface{}

PostNodesMacaddressDhcpWhitelistCreatedBodyBody post nodes macaddress dhcp whitelist created body body

swagger:model PostNodesMacaddressDhcpWhitelistCreatedBodyBody

type PostNodesMacaddressDhcpWhitelistDefault

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

PostNodesMacaddressDhcpWhitelistDefault handles this case with default header values.

Unexpected error

func NewPostNodesMacaddressDhcpWhitelistDefault

func NewPostNodesMacaddressDhcpWhitelistDefault(code int) *PostNodesMacaddressDhcpWhitelistDefault

NewPostNodesMacaddressDhcpWhitelistDefault creates a PostNodesMacaddressDhcpWhitelistDefault with default headers values

func (*PostNodesMacaddressDhcpWhitelistDefault) Code

Code gets the status code for the post nodes macaddress dhcp whitelist default response

func (*PostNodesMacaddressDhcpWhitelistDefault) Error

type PostNodesMacaddressDhcpWhitelistNotFound

type PostNodesMacaddressDhcpWhitelistNotFound struct {
	Payload *models.Error
}

PostNodesMacaddressDhcpWhitelistNotFound handles this case with default header values.

The node with the identifier was not found

func NewPostNodesMacaddressDhcpWhitelistNotFound

func NewPostNodesMacaddressDhcpWhitelistNotFound() *PostNodesMacaddressDhcpWhitelistNotFound

NewPostNodesMacaddressDhcpWhitelistNotFound creates a PostNodesMacaddressDhcpWhitelistNotFound with default headers values

func (*PostNodesMacaddressDhcpWhitelistNotFound) Error

type PostNodesMacaddressDhcpWhitelistParams

type PostNodesMacaddressDhcpWhitelistParams struct {

	/*Body*/
	Body interface{}
	/*Macaddress
	  Mac addresses and unique aliases to identify the node by, |
	expect a string or an array of strings.


	*/
	Macaddress string
}

PostNodesMacaddressDhcpWhitelistParams contains all the parameters to send to the API endpoint for the post nodes macaddress dhcp whitelist operation typically these are written to a http.Request

func NewPostNodesMacaddressDhcpWhitelistParams

func NewPostNodesMacaddressDhcpWhitelistParams() *PostNodesMacaddressDhcpWhitelistParams

NewPostNodesMacaddressDhcpWhitelistParams creates a new PostNodesMacaddressDhcpWhitelistParams object with the default values initialized.

func (*PostNodesMacaddressDhcpWhitelistParams) WithBody

WithBody adds the body to the post nodes macaddress dhcp whitelist params

func (*PostNodesMacaddressDhcpWhitelistParams) WithMacaddress

WithMacaddress adds the macaddress to the post nodes macaddress dhcp whitelist params

func (*PostNodesMacaddressDhcpWhitelistParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostNodesMacaddressDhcpWhitelistReader

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

PostNodesMacaddressDhcpWhitelistReader is a Reader for the PostNodesMacaddressDhcpWhitelist structure.

func (*PostNodesMacaddressDhcpWhitelistReader) ReadResponse

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