cilium: github.com/cilium/cilium/api/v1/server/restapi/ipam Index | Files

package ipam

import "github.com/cilium/cilium/api/v1/server/restapi/ipam"

Index

Package Files

delete_ipam_ip.go delete_ipam_ip_parameters.go delete_ipam_ip_responses.go delete_ipam_ip_urlbuilder.go post_ipam.go post_ipam_ip.go post_ipam_ip_parameters.go post_ipam_ip_responses.go post_ipam_ip_urlbuilder.go post_ipam_parameters.go post_ipam_responses.go post_ipam_urlbuilder.go

Constants

const DeleteIpamIPDisabledCode int = 501

DeleteIpamIPDisabledCode is the HTTP code returned for type DeleteIpamIPDisabled

const DeleteIpamIPFailureCode int = 500

DeleteIpamIPFailureCode is the HTTP code returned for type DeleteIpamIPFailure

const DeleteIpamIPInvalidCode int = 400

DeleteIpamIPInvalidCode is the HTTP code returned for type DeleteIpamIPInvalid

const DeleteIpamIPNotFoundCode int = 404

DeleteIpamIPNotFoundCode is the HTTP code returned for type DeleteIpamIPNotFound

const DeleteIpamIPOKCode int = 200

DeleteIpamIPOKCode is the HTTP code returned for type DeleteIpamIPOK

const PostIpamCreatedCode int = 201

PostIpamCreatedCode is the HTTP code returned for type PostIpamCreated

const PostIpamFailureCode int = 502

PostIpamFailureCode is the HTTP code returned for type PostIpamFailure

const PostIpamIPDisabledCode int = 501

PostIpamIPDisabledCode is the HTTP code returned for type PostIpamIPDisabled

const PostIpamIPExistsCode int = 409

PostIpamIPExistsCode is the HTTP code returned for type PostIpamIPExists

const PostIpamIPFailureCode int = 500

PostIpamIPFailureCode is the HTTP code returned for type PostIpamIPFailure

const PostIpamIPInvalidCode int = 400

PostIpamIPInvalidCode is the HTTP code returned for type PostIpamIPInvalid

const PostIpamIPOKCode int = 200

PostIpamIPOKCode is the HTTP code returned for type PostIpamIPOK

type DeleteIpamIP Uses

type DeleteIpamIP struct {
    Context *middleware.Context
    Handler DeleteIpamIPHandler
}

DeleteIpamIP swagger:route DELETE /ipam/{ip} ipam deleteIpamIp

Release an allocated IP address

func NewDeleteIpamIP Uses

func NewDeleteIpamIP(ctx *middleware.Context, handler DeleteIpamIPHandler) *DeleteIpamIP

NewDeleteIpamIP creates a new http.Handler for the delete ipam IP operation

func (*DeleteIpamIP) ServeHTTP Uses

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

type DeleteIpamIPDisabled Uses

type DeleteIpamIPDisabled struct {
}

DeleteIpamIPDisabled Allocation for address family disabled

swagger:response deleteIpamIpDisabled

func NewDeleteIpamIPDisabled Uses

func NewDeleteIpamIPDisabled() *DeleteIpamIPDisabled

NewDeleteIpamIPDisabled creates DeleteIpamIPDisabled with default headers values

func (*DeleteIpamIPDisabled) WriteResponse Uses

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

WriteResponse to the client

type DeleteIpamIPFailure Uses

type DeleteIpamIPFailure struct {

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

DeleteIpamIPFailure Address release failure

swagger:response deleteIpamIpFailure

func NewDeleteIpamIPFailure Uses

func NewDeleteIpamIPFailure() *DeleteIpamIPFailure

NewDeleteIpamIPFailure creates DeleteIpamIPFailure with default headers values

func (*DeleteIpamIPFailure) SetPayload Uses

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

SetPayload sets the payload to the delete ipam Ip failure response

func (*DeleteIpamIPFailure) WithPayload Uses

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

WithPayload adds the payload to the delete ipam Ip failure response

func (*DeleteIpamIPFailure) WriteResponse Uses

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

WriteResponse to the client

type DeleteIpamIPHandler Uses

type DeleteIpamIPHandler interface {
    Handle(DeleteIpamIPParams) middleware.Responder
}

DeleteIpamIPHandler interface for that can handle valid delete ipam IP params

type DeleteIpamIPHandlerFunc Uses

type DeleteIpamIPHandlerFunc func(DeleteIpamIPParams) middleware.Responder

DeleteIpamIPHandlerFunc turns a function with the right signature into a delete ipam IP handler

func (DeleteIpamIPHandlerFunc) Handle Uses

func (fn DeleteIpamIPHandlerFunc) Handle(params DeleteIpamIPParams) middleware.Responder

Handle executing the request and returning a response

type DeleteIpamIPInvalid Uses

type DeleteIpamIPInvalid struct {
}

DeleteIpamIPInvalid Invalid IP address

swagger:response deleteIpamIpInvalid

func NewDeleteIpamIPInvalid Uses

func NewDeleteIpamIPInvalid() *DeleteIpamIPInvalid

NewDeleteIpamIPInvalid creates DeleteIpamIPInvalid with default headers values

func (*DeleteIpamIPInvalid) WriteResponse Uses

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

WriteResponse to the client

type DeleteIpamIPNotFound Uses

type DeleteIpamIPNotFound struct {
}

DeleteIpamIPNotFound IP address not found

swagger:response deleteIpamIpNotFound

func NewDeleteIpamIPNotFound Uses

func NewDeleteIpamIPNotFound() *DeleteIpamIPNotFound

NewDeleteIpamIPNotFound creates DeleteIpamIPNotFound with default headers values

func (*DeleteIpamIPNotFound) WriteResponse Uses

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

WriteResponse to the client

type DeleteIpamIPOK Uses

type DeleteIpamIPOK struct {
}

DeleteIpamIPOK Success

swagger:response deleteIpamIpOK

func NewDeleteIpamIPOK Uses

func NewDeleteIpamIPOK() *DeleteIpamIPOK

NewDeleteIpamIPOK creates DeleteIpamIPOK with default headers values

func (*DeleteIpamIPOK) WriteResponse Uses

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

WriteResponse to the client

type DeleteIpamIPParams Uses

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 ipam IP operation typically these are obtained from a http.Request

swagger:parameters DeleteIpamIP

func NewDeleteIpamIPParams Uses

func NewDeleteIpamIPParams() DeleteIpamIPParams

NewDeleteIpamIPParams creates a new DeleteIpamIPParams object no default values defined in spec.

func (*DeleteIpamIPParams) BindRequest Uses

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 Uses

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

DeleteIpamIPURL generates an URL for the delete ipam IP operation

func (*DeleteIpamIPURL) Build Uses

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

Build a url path and query string

func (*DeleteIpamIPURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *DeleteIpamIPURL) String() string

String returns the string representation of the path with query string

func (*DeleteIpamIPURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*DeleteIpamIPURL) WithBasePath Uses

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 Uses

type PostIpam struct {
    Context *middleware.Context
    Handler PostIpamHandler
}

PostIpam swagger:route POST /ipam ipam postIpam

Allocate an IP address

func NewPostIpam Uses

func NewPostIpam(ctx *middleware.Context, handler PostIpamHandler) *PostIpam

NewPostIpam creates a new http.Handler for the post ipam operation

func (*PostIpam) ServeHTTP Uses

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

type PostIpamCreated Uses

type PostIpamCreated struct {

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

PostIpamCreated Success

swagger:response postIpamCreated

func NewPostIpamCreated Uses

func NewPostIpamCreated() *PostIpamCreated

NewPostIpamCreated creates PostIpamCreated with default headers values

func (*PostIpamCreated) SetPayload Uses

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

SetPayload sets the payload to the post ipam created response

func (*PostIpamCreated) WithPayload Uses

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

WithPayload adds the payload to the post ipam created response

func (*PostIpamCreated) WriteResponse Uses

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

WriteResponse to the client

type PostIpamFailure Uses

type PostIpamFailure struct {

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

PostIpamFailure Allocation failure

swagger:response postIpamFailure

func NewPostIpamFailure Uses

func NewPostIpamFailure() *PostIpamFailure

NewPostIpamFailure creates PostIpamFailure with default headers values

func (*PostIpamFailure) SetPayload Uses

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

SetPayload sets the payload to the post ipam failure response

func (*PostIpamFailure) WithPayload Uses

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

WithPayload adds the payload to the post ipam failure response

func (*PostIpamFailure) WriteResponse Uses

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

WriteResponse to the client

type PostIpamHandler Uses

type PostIpamHandler interface {
    Handle(PostIpamParams) middleware.Responder
}

PostIpamHandler interface for that can handle valid post ipam params

type PostIpamHandlerFunc Uses

type PostIpamHandlerFunc func(PostIpamParams) middleware.Responder

PostIpamHandlerFunc turns a function with the right signature into a post ipam handler

func (PostIpamHandlerFunc) Handle Uses

func (fn PostIpamHandlerFunc) Handle(params PostIpamParams) middleware.Responder

Handle executing the request and returning a response

type PostIpamIP Uses

type PostIpamIP struct {
    Context *middleware.Context
    Handler PostIpamIPHandler
}

PostIpamIP swagger:route POST /ipam/{ip} ipam postIpamIp

Allocate an IP address

func NewPostIpamIP Uses

func NewPostIpamIP(ctx *middleware.Context, handler PostIpamIPHandler) *PostIpamIP

NewPostIpamIP creates a new http.Handler for the post ipam IP operation

func (*PostIpamIP) ServeHTTP Uses

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

type PostIpamIPDisabled Uses

type PostIpamIPDisabled struct {
}

PostIpamIPDisabled Allocation for address family disabled

swagger:response postIpamIpDisabled

func NewPostIpamIPDisabled Uses

func NewPostIpamIPDisabled() *PostIpamIPDisabled

NewPostIpamIPDisabled creates PostIpamIPDisabled with default headers values

func (*PostIpamIPDisabled) WriteResponse Uses

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

WriteResponse to the client

type PostIpamIPExists Uses

type PostIpamIPExists struct {
}

PostIpamIPExists IP already allocated

swagger:response postIpamIpExists

func NewPostIpamIPExists Uses

func NewPostIpamIPExists() *PostIpamIPExists

NewPostIpamIPExists creates PostIpamIPExists with default headers values

func (*PostIpamIPExists) WriteResponse Uses

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

WriteResponse to the client

type PostIpamIPFailure Uses

type PostIpamIPFailure struct {

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

PostIpamIPFailure IP allocation failure. Details in message.

swagger:response postIpamIpFailure

func NewPostIpamIPFailure Uses

func NewPostIpamIPFailure() *PostIpamIPFailure

NewPostIpamIPFailure creates PostIpamIPFailure with default headers values

func (*PostIpamIPFailure) SetPayload Uses

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

SetPayload sets the payload to the post ipam Ip failure response

func (*PostIpamIPFailure) WithPayload Uses

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

WithPayload adds the payload to the post ipam Ip failure response

func (*PostIpamIPFailure) WriteResponse Uses

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

WriteResponse to the client

type PostIpamIPHandler Uses

type PostIpamIPHandler interface {
    Handle(PostIpamIPParams) middleware.Responder
}

PostIpamIPHandler interface for that can handle valid post ipam IP params

type PostIpamIPHandlerFunc Uses

type PostIpamIPHandlerFunc func(PostIpamIPParams) middleware.Responder

PostIpamIPHandlerFunc turns a function with the right signature into a post ipam IP handler

func (PostIpamIPHandlerFunc) Handle Uses

func (fn PostIpamIPHandlerFunc) Handle(params PostIpamIPParams) middleware.Responder

Handle executing the request and returning a response

type PostIpamIPInvalid Uses

type PostIpamIPInvalid struct {
}

PostIpamIPInvalid Invalid IP address

swagger:response postIpamIpInvalid

func NewPostIpamIPInvalid Uses

func NewPostIpamIPInvalid() *PostIpamIPInvalid

NewPostIpamIPInvalid creates PostIpamIPInvalid with default headers values

func (*PostIpamIPInvalid) WriteResponse Uses

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

WriteResponse to the client

type PostIpamIPOK Uses

type PostIpamIPOK struct {
}

PostIpamIPOK Success

swagger:response postIpamIpOK

func NewPostIpamIPOK Uses

func NewPostIpamIPOK() *PostIpamIPOK

NewPostIpamIPOK creates PostIpamIPOK with default headers values

func (*PostIpamIPOK) WriteResponse Uses

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

WriteResponse to the client

type PostIpamIPParams Uses

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 ipam IP operation typically these are obtained from a http.Request

swagger:parameters PostIpamIP

func NewPostIpamIPParams Uses

func NewPostIpamIPParams() PostIpamIPParams

NewPostIpamIPParams creates a new PostIpamIPParams object no default values defined in spec.

func (*PostIpamIPParams) BindRequest Uses

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 Uses

type PostIpamIPURL struct {
    IP  string

    Owner *string
    // contains filtered or unexported fields
}

PostIpamIPURL generates an URL for the post ipam IP operation

func (*PostIpamIPURL) Build Uses

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

Build a url path and query string

func (*PostIpamIPURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *PostIpamIPURL) String() string

String returns the string representation of the path with query string

func (*PostIpamIPURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*PostIpamIPURL) WithBasePath Uses

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 Uses

type PostIpamParams struct {

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

    /*
      In: header
    */
    Expiration *bool
    /*
      In: query
    */
    Family *string
    /*
      In: query
    */
    Owner *string
}

PostIpamParams contains all the bound params for the post ipam operation typically these are obtained from a http.Request

swagger:parameters PostIpam

func NewPostIpamParams Uses

func NewPostIpamParams() PostIpamParams

NewPostIpamParams creates a new PostIpamParams object no default values defined in spec.

func (*PostIpamParams) BindRequest Uses

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 Uses

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

PostIpamURL generates an URL for the post ipam operation

func (*PostIpamURL) Build Uses

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

Build a url path and query string

func (*PostIpamURL) BuildFull Uses

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 Uses

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 Uses

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 Uses

func (o *PostIpamURL) String() string

String returns the string representation of the path with query string

func (*PostIpamURL) StringFull Uses

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

StringFull returns the string representation of a complete url

func (*PostIpamURL) WithBasePath Uses

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

Package ipam imports 12 packages (graph) and is imported by 20 packages. Updated 2020-02-25. Refresh now. Tools for package owners.