ipam

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteIPAMIPDisabledCode int = 501

DeleteIPAMIPDisabledCode is the HTTP code returned for type DeleteIPAMIPDisabled

View Source
const DeleteIPAMIPFailureCode int = 500

DeleteIPAMIPFailureCode is the HTTP code returned for type DeleteIPAMIPFailure

View Source
const DeleteIPAMIPInvalidCode int = 400

DeleteIPAMIPInvalidCode is the HTTP code returned for type DeleteIPAMIPInvalid

View Source
const DeleteIPAMIPNotFoundCode int = 404

DeleteIPAMIPNotFoundCode is the HTTP code returned for type DeleteIPAMIPNotFound

View Source
const DeleteIPAMIPOKCode int = 200

DeleteIPAMIPOKCode is the HTTP code returned for type DeleteIPAMIPOK

View Source
const PostIPAMCreatedCode int = 201

PostIPAMCreatedCode is the HTTP code returned for type PostIPAMCreated

View Source
const PostIPAMFailureCode int = 502

PostIPAMFailureCode is the HTTP code returned for type PostIPAMFailure

View Source
const PostIPAMIPDisabledCode int = 501

PostIPAMIPDisabledCode is the HTTP code returned for type PostIPAMIPDisabled

View Source
const PostIPAMIPExistsCode int = 409

PostIPAMIPExistsCode is the HTTP code returned for type PostIPAMIPExists

View Source
const PostIPAMIPFailureCode int = 500

PostIPAMIPFailureCode is the HTTP code returned for type PostIPAMIPFailure

View Source
const PostIPAMIPInvalidCode int = 400

PostIPAMIPInvalidCode is the HTTP code returned for type PostIPAMIPInvalid

View Source
const PostIPAMIPOKCode int = 200

PostIPAMIPOKCode is the HTTP code returned for type PostIPAMIPOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteIPAMIP

type DeleteIPAMIP struct {
	Context *middleware.Context
	Handler DeleteIPAMIPHandler
}

DeleteIPAMIP swagger:route DELETE /ipam/{ip} ipam deleteIpAMIp

Release an allocated IP address

func NewDeleteIPAMIP

func NewDeleteIPAMIP(ctx *middleware.Context, handler DeleteIPAMIPHandler) *DeleteIPAMIP

NewDeleteIPAMIP creates a new http.Handler for the delete IP a m IP operation

func (*DeleteIPAMIP) ServeHTTP

func (o *DeleteIPAMIP) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteIPAMIPDisabled

type DeleteIPAMIPDisabled struct {
}

DeleteIPAMIPDisabled Allocation for address family disabled

swagger:response deleteIpAMIpDisabled

func NewDeleteIPAMIPDisabled

func NewDeleteIPAMIPDisabled() *DeleteIPAMIPDisabled

NewDeleteIPAMIPDisabled creates DeleteIPAMIPDisabled with default headers values

func (*DeleteIPAMIPDisabled) WriteResponse

func (o *DeleteIPAMIPDisabled) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteIPAMIPFailure

type DeleteIPAMIPFailure struct {

	/*
	  In: Body
	*/
	Payload models.Error `json:"body,omitempty"`
}

DeleteIPAMIPFailure Address release failure

swagger:response deleteIpAMIpFailure

func NewDeleteIPAMIPFailure

func NewDeleteIPAMIPFailure() *DeleteIPAMIPFailure

NewDeleteIPAMIPFailure creates DeleteIPAMIPFailure with default headers values

func (*DeleteIPAMIPFailure) SetPayload

func (o *DeleteIPAMIPFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the delete Ip a m Ip failure response

func (*DeleteIPAMIPFailure) WithPayload

func (o *DeleteIPAMIPFailure) WithPayload(payload models.Error) *DeleteIPAMIPFailure

WithPayload adds the payload to the delete Ip a m Ip failure response

func (*DeleteIPAMIPFailure) WriteResponse

func (o *DeleteIPAMIPFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteIPAMIPHandler

type DeleteIPAMIPHandler interface {
	Handle(DeleteIPAMIPParams) middleware.Responder
}

DeleteIPAMIPHandler interface for that can handle valid delete IP a m IP params

type DeleteIPAMIPHandlerFunc

type DeleteIPAMIPHandlerFunc func(DeleteIPAMIPParams) middleware.Responder

DeleteIPAMIPHandlerFunc turns a function with the right signature into a delete IP a m IP handler

func (DeleteIPAMIPHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteIPAMIPInvalid

type DeleteIPAMIPInvalid struct {
}

DeleteIPAMIPInvalid Invalid IP address

swagger:response deleteIpAMIpInvalid

func NewDeleteIPAMIPInvalid

func NewDeleteIPAMIPInvalid() *DeleteIPAMIPInvalid

NewDeleteIPAMIPInvalid creates DeleteIPAMIPInvalid with default headers values

func (*DeleteIPAMIPInvalid) WriteResponse

func (o *DeleteIPAMIPInvalid) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteIPAMIPNotFound

type DeleteIPAMIPNotFound struct {
}

DeleteIPAMIPNotFound IP address not found

swagger:response deleteIpAMIpNotFound

func NewDeleteIPAMIPNotFound

func NewDeleteIPAMIPNotFound() *DeleteIPAMIPNotFound

NewDeleteIPAMIPNotFound creates DeleteIPAMIPNotFound with default headers values

func (*DeleteIPAMIPNotFound) WriteResponse

func (o *DeleteIPAMIPNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteIPAMIPOK

type DeleteIPAMIPOK struct {
}

DeleteIPAMIPOK Success

swagger:response deleteIpAMIpOK

func NewDeleteIPAMIPOK

func NewDeleteIPAMIPOK() *DeleteIPAMIPOK

NewDeleteIPAMIPOK creates DeleteIPAMIPOK with default headers values

func (*DeleteIPAMIPOK) WriteResponse

func (o *DeleteIPAMIPOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteIPAMIPParams

type DeleteIPAMIPParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*IP address or owner name
	  Required: true
	  In: path
	*/
	IP string
}

DeleteIPAMIPParams contains all the bound params for the delete IP a m IP operation typically these are obtained from a http.Request

swagger:parameters DeleteIPAMIP

func NewDeleteIPAMIPParams

func NewDeleteIPAMIPParams() DeleteIPAMIPParams

NewDeleteIPAMIPParams creates a new DeleteIPAMIPParams object no default values defined in spec.

func (*DeleteIPAMIPParams) BindRequest

func (o *DeleteIPAMIPParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteIPAMIPParams() beforehand.

type DeleteIPAMIPURL

type DeleteIPAMIPURL struct {
	IP string
	// contains filtered or unexported fields
}

DeleteIPAMIPURL generates an URL for the delete IP a m IP operation

func (*DeleteIPAMIPURL) Build

func (o *DeleteIPAMIPURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteIPAMIPURL) BuildFull

func (o *DeleteIPAMIPURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteIPAMIPURL) Must

func (o *DeleteIPAMIPURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteIPAMIPURL) SetBasePath

func (o *DeleteIPAMIPURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteIPAMIPURL) String

func (o *DeleteIPAMIPURL) String() string

String returns the string representation of the path with query string

func (*DeleteIPAMIPURL) StringFull

func (o *DeleteIPAMIPURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteIPAMIPURL) WithBasePath

func (o *DeleteIPAMIPURL) WithBasePath(bp string) *DeleteIPAMIPURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostIPAM

type PostIPAM struct {
	Context *middleware.Context
	Handler PostIPAMHandler
}

PostIPAM swagger:route POST /ipam ipam postIpAM

Allocate an IP address

func NewPostIPAM

func NewPostIPAM(ctx *middleware.Context, handler PostIPAMHandler) *PostIPAM

NewPostIPAM creates a new http.Handler for the post IP a m operation

func (*PostIPAM) ServeHTTP

func (o *PostIPAM) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostIPAMCreated

type PostIPAMCreated struct {

	/*
	  In: Body
	*/
	Payload *models.IPAMResponse `json:"body,omitempty"`
}

PostIPAMCreated Success

swagger:response postIpAMCreated

func NewPostIPAMCreated

func NewPostIPAMCreated() *PostIPAMCreated

NewPostIPAMCreated creates PostIPAMCreated with default headers values

func (*PostIPAMCreated) SetPayload

func (o *PostIPAMCreated) SetPayload(payload *models.IPAMResponse)

SetPayload sets the payload to the post Ip a m created response

func (*PostIPAMCreated) WithPayload

func (o *PostIPAMCreated) WithPayload(payload *models.IPAMResponse) *PostIPAMCreated

WithPayload adds the payload to the post Ip a m created response

func (*PostIPAMCreated) WriteResponse

func (o *PostIPAMCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMFailure

type PostIPAMFailure struct {

	/*
	  In: Body
	*/
	Payload models.Error `json:"body,omitempty"`
}

PostIPAMFailure Allocation failure

swagger:response postIpAMFailure

func NewPostIPAMFailure

func NewPostIPAMFailure() *PostIPAMFailure

NewPostIPAMFailure creates PostIPAMFailure with default headers values

func (*PostIPAMFailure) SetPayload

func (o *PostIPAMFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the post Ip a m failure response

func (*PostIPAMFailure) WithPayload

func (o *PostIPAMFailure) WithPayload(payload models.Error) *PostIPAMFailure

WithPayload adds the payload to the post Ip a m failure response

func (*PostIPAMFailure) WriteResponse

func (o *PostIPAMFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMHandler

type PostIPAMHandler interface {
	Handle(PostIPAMParams) middleware.Responder
}

PostIPAMHandler interface for that can handle valid post IP a m params

type PostIPAMHandlerFunc

type PostIPAMHandlerFunc func(PostIPAMParams) middleware.Responder

PostIPAMHandlerFunc turns a function with the right signature into a post IP a m handler

func (PostIPAMHandlerFunc) Handle

Handle executing the request and returning a response

type PostIPAMIP

type PostIPAMIP struct {
	Context *middleware.Context
	Handler PostIPAMIPHandler
}

PostIPAMIP swagger:route POST /ipam/{ip} ipam postIpAMIp

Allocate an IP address

func NewPostIPAMIP

func NewPostIPAMIP(ctx *middleware.Context, handler PostIPAMIPHandler) *PostIPAMIP

NewPostIPAMIP creates a new http.Handler for the post IP a m IP operation

func (*PostIPAMIP) ServeHTTP

func (o *PostIPAMIP) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostIPAMIPDisabled

type PostIPAMIPDisabled struct {
}

PostIPAMIPDisabled Allocation for address family disabled

swagger:response postIpAMIpDisabled

func NewPostIPAMIPDisabled

func NewPostIPAMIPDisabled() *PostIPAMIPDisabled

NewPostIPAMIPDisabled creates PostIPAMIPDisabled with default headers values

func (*PostIPAMIPDisabled) WriteResponse

func (o *PostIPAMIPDisabled) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMIPExists

type PostIPAMIPExists struct {
}

PostIPAMIPExists IP already allocated

swagger:response postIpAMIpExists

func NewPostIPAMIPExists

func NewPostIPAMIPExists() *PostIPAMIPExists

NewPostIPAMIPExists creates PostIPAMIPExists with default headers values

func (*PostIPAMIPExists) WriteResponse

func (o *PostIPAMIPExists) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMIPFailure

type PostIPAMIPFailure struct {

	/*
	  In: Body
	*/
	Payload models.Error `json:"body,omitempty"`
}

PostIPAMIPFailure IP allocation failure. Details in message.

swagger:response postIpAMIpFailure

func NewPostIPAMIPFailure

func NewPostIPAMIPFailure() *PostIPAMIPFailure

NewPostIPAMIPFailure creates PostIPAMIPFailure with default headers values

func (*PostIPAMIPFailure) SetPayload

func (o *PostIPAMIPFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the post Ip a m Ip failure response

func (*PostIPAMIPFailure) WithPayload

func (o *PostIPAMIPFailure) WithPayload(payload models.Error) *PostIPAMIPFailure

WithPayload adds the payload to the post Ip a m Ip failure response

func (*PostIPAMIPFailure) WriteResponse

func (o *PostIPAMIPFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMIPHandler

type PostIPAMIPHandler interface {
	Handle(PostIPAMIPParams) middleware.Responder
}

PostIPAMIPHandler interface for that can handle valid post IP a m IP params

type PostIPAMIPHandlerFunc

type PostIPAMIPHandlerFunc func(PostIPAMIPParams) middleware.Responder

PostIPAMIPHandlerFunc turns a function with the right signature into a post IP a m IP handler

func (PostIPAMIPHandlerFunc) Handle

Handle executing the request and returning a response

type PostIPAMIPInvalid

type PostIPAMIPInvalid struct {
}

PostIPAMIPInvalid Invalid IP address

swagger:response postIpAMIpInvalid

func NewPostIPAMIPInvalid

func NewPostIPAMIPInvalid() *PostIPAMIPInvalid

NewPostIPAMIPInvalid creates PostIPAMIPInvalid with default headers values

func (*PostIPAMIPInvalid) WriteResponse

func (o *PostIPAMIPInvalid) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMIPOK

type PostIPAMIPOK struct {
}

PostIPAMIPOK Success

swagger:response postIpAMIpOK

func NewPostIPAMIPOK

func NewPostIPAMIPOK() *PostIPAMIPOK

NewPostIPAMIPOK creates PostIPAMIPOK with default headers values

func (*PostIPAMIPOK) WriteResponse

func (o *PostIPAMIPOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostIPAMIPParams

type PostIPAMIPParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*IP address
	  Required: true
	  In: path
	*/
	IP string
	/*
	  In: query
	*/
	Owner *string
}

PostIPAMIPParams contains all the bound params for the post IP a m IP operation typically these are obtained from a http.Request

swagger:parameters PostIPAMIP

func NewPostIPAMIPParams

func NewPostIPAMIPParams() PostIPAMIPParams

NewPostIPAMIPParams creates a new PostIPAMIPParams object no default values defined in spec.

func (*PostIPAMIPParams) BindRequest

func (o *PostIPAMIPParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostIPAMIPParams() beforehand.

type PostIPAMIPURL

type PostIPAMIPURL struct {
	IP string

	Owner *string
	// contains filtered or unexported fields
}

PostIPAMIPURL generates an URL for the post IP a m IP operation

func (*PostIPAMIPURL) Build

func (o *PostIPAMIPURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostIPAMIPURL) BuildFull

func (o *PostIPAMIPURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostIPAMIPURL) Must

func (o *PostIPAMIPURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostIPAMIPURL) SetBasePath

func (o *PostIPAMIPURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostIPAMIPURL) String

func (o *PostIPAMIPURL) String() string

String returns the string representation of the path with query string

func (*PostIPAMIPURL) StringFull

func (o *PostIPAMIPURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostIPAMIPURL) WithBasePath

func (o *PostIPAMIPURL) WithBasePath(bp string) *PostIPAMIPURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostIPAMParams

type PostIPAMParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Family *string
	/*
	  In: query
	*/
	Owner *string
}

PostIPAMParams contains all the bound params for the post IP a m operation typically these are obtained from a http.Request

swagger:parameters PostIPAM

func NewPostIPAMParams

func NewPostIPAMParams() PostIPAMParams

NewPostIPAMParams creates a new PostIPAMParams object no default values defined in spec.

func (*PostIPAMParams) BindRequest

func (o *PostIPAMParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostIPAMParams() beforehand.

type PostIPAMURL

type PostIPAMURL struct {
	Family *string
	Owner  *string
	// contains filtered or unexported fields
}

PostIPAMURL generates an URL for the post IP a m operation

func (*PostIPAMURL) Build

func (o *PostIPAMURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostIPAMURL) BuildFull

func (o *PostIPAMURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostIPAMURL) Must

func (o *PostIPAMURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostIPAMURL) SetBasePath

func (o *PostIPAMURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostIPAMURL) String

func (o *PostIPAMURL) String() string

String returns the string representation of the path with query string

func (*PostIPAMURL) StringFull

func (o *PostIPAMURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostIPAMURL) WithBasePath

func (o *PostIPAMURL) WithBasePath(bp string) *PostIPAMURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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