cilium: github.com/cilium/cilium/api/v1/client/service Index | Files

package service

import "github.com/cilium/cilium/api/v1/client/service"

Index

Package Files

delete_service_id_parameters.go delete_service_id_responses.go get_service_id_parameters.go get_service_id_responses.go get_service_parameters.go get_service_responses.go put_service_id_parameters.go put_service_id_responses.go service_client.go

type Client Uses

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

Client for service API

func New Uses

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

New creates a new service API client.

func (*Client) DeleteServiceID Uses

func (a *Client) DeleteServiceID(params *DeleteServiceIDParams) (*DeleteServiceIDOK, error)

DeleteServiceID deletes a service

func (*Client) GetService Uses

func (a *Client) GetService(params *GetServiceParams) (*GetServiceOK, error)

GetService retrieves list of all services

func (*Client) GetServiceID Uses

func (a *Client) GetServiceID(params *GetServiceIDParams) (*GetServiceIDOK, error)

GetServiceID retrieves configuration of a service

func (*Client) PutServiceID Uses

func (a *Client) PutServiceID(params *PutServiceIDParams) (*PutServiceIDOK, *PutServiceIDCreated, error)

PutServiceID creates or update service

func (*Client) SetTransport Uses

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

SetTransport changes the transport on the client

type DeleteServiceIDFailure Uses

type DeleteServiceIDFailure struct {
    Payload models.Error
}

DeleteServiceIDFailure handles this case with default header values.

Service deletion failed

func NewDeleteServiceIDFailure Uses

func NewDeleteServiceIDFailure() *DeleteServiceIDFailure

NewDeleteServiceIDFailure creates a DeleteServiceIDFailure with default headers values

func (*DeleteServiceIDFailure) Error Uses

func (o *DeleteServiceIDFailure) Error() string

func (*DeleteServiceIDFailure) GetPayload Uses

func (o *DeleteServiceIDFailure) GetPayload() models.Error

type DeleteServiceIDNotFound Uses

type DeleteServiceIDNotFound struct {
}

DeleteServiceIDNotFound handles this case with default header values.

Service not found

func NewDeleteServiceIDNotFound Uses

func NewDeleteServiceIDNotFound() *DeleteServiceIDNotFound

NewDeleteServiceIDNotFound creates a DeleteServiceIDNotFound with default headers values

func (*DeleteServiceIDNotFound) Error Uses

func (o *DeleteServiceIDNotFound) Error() string

type DeleteServiceIDOK Uses

type DeleteServiceIDOK struct {
}

DeleteServiceIDOK handles this case with default header values.

Success

func NewDeleteServiceIDOK Uses

func NewDeleteServiceIDOK() *DeleteServiceIDOK

NewDeleteServiceIDOK creates a DeleteServiceIDOK with default headers values

func (*DeleteServiceIDOK) Error Uses

func (o *DeleteServiceIDOK) Error() string

type DeleteServiceIDParams Uses

type DeleteServiceIDParams struct {

    /*ID
      ID of service

    */
    ID  int64

    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

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

func NewDeleteServiceIDParams Uses

func NewDeleteServiceIDParams() *DeleteServiceIDParams

NewDeleteServiceIDParams creates a new DeleteServiceIDParams object with the default values initialized.

func NewDeleteServiceIDParamsWithContext Uses

func NewDeleteServiceIDParamsWithContext(ctx context.Context) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithContext creates a new DeleteServiceIDParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteServiceIDParamsWithHTTPClient Uses

func NewDeleteServiceIDParamsWithHTTPClient(client *http.Client) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithHTTPClient creates a new DeleteServiceIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteServiceIDParamsWithTimeout Uses

func NewDeleteServiceIDParamsWithTimeout(timeout time.Duration) *DeleteServiceIDParams

NewDeleteServiceIDParamsWithTimeout creates a new DeleteServiceIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteServiceIDParams) SetContext Uses

func (o *DeleteServiceIDParams) SetContext(ctx context.Context)

SetContext adds the context to the delete service ID params

func (*DeleteServiceIDParams) SetHTTPClient Uses

func (o *DeleteServiceIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete service ID params

func (*DeleteServiceIDParams) SetID Uses

func (o *DeleteServiceIDParams) SetID(id int64)

SetID adds the id to the delete service ID params

func (*DeleteServiceIDParams) SetTimeout Uses

func (o *DeleteServiceIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete service ID params

func (*DeleteServiceIDParams) WithContext Uses

func (o *DeleteServiceIDParams) WithContext(ctx context.Context) *DeleteServiceIDParams

WithContext adds the context to the delete service ID params

func (*DeleteServiceIDParams) WithHTTPClient Uses

func (o *DeleteServiceIDParams) WithHTTPClient(client *http.Client) *DeleteServiceIDParams

WithHTTPClient adds the HTTPClient to the delete service ID params

func (*DeleteServiceIDParams) WithID Uses

func (o *DeleteServiceIDParams) WithID(id int64) *DeleteServiceIDParams

WithID adds the id to the delete service ID params

func (*DeleteServiceIDParams) WithTimeout Uses

func (o *DeleteServiceIDParams) WithTimeout(timeout time.Duration) *DeleteServiceIDParams

WithTimeout adds the timeout to the delete service ID params

func (*DeleteServiceIDParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type DeleteServiceIDReader Uses

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

DeleteServiceIDReader is a Reader for the DeleteServiceID structure.

func (*DeleteServiceIDReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type GetServiceIDNotFound Uses

type GetServiceIDNotFound struct {
}

GetServiceIDNotFound handles this case with default header values.

Service not found

func NewGetServiceIDNotFound Uses

func NewGetServiceIDNotFound() *GetServiceIDNotFound

NewGetServiceIDNotFound creates a GetServiceIDNotFound with default headers values

func (*GetServiceIDNotFound) Error Uses

func (o *GetServiceIDNotFound) Error() string

type GetServiceIDOK Uses

type GetServiceIDOK struct {
    Payload *models.Service
}

GetServiceIDOK handles this case with default header values.

Success

func NewGetServiceIDOK Uses

func NewGetServiceIDOK() *GetServiceIDOK

NewGetServiceIDOK creates a GetServiceIDOK with default headers values

func (*GetServiceIDOK) Error Uses

func (o *GetServiceIDOK) Error() string

func (*GetServiceIDOK) GetPayload Uses

func (o *GetServiceIDOK) GetPayload() *models.Service

type GetServiceIDParams Uses

type GetServiceIDParams struct {

    /*ID
      ID of service

    */
    ID  int64

    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

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

func NewGetServiceIDParams Uses

func NewGetServiceIDParams() *GetServiceIDParams

NewGetServiceIDParams creates a new GetServiceIDParams object with the default values initialized.

func NewGetServiceIDParamsWithContext Uses

func NewGetServiceIDParamsWithContext(ctx context.Context) *GetServiceIDParams

NewGetServiceIDParamsWithContext creates a new GetServiceIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetServiceIDParamsWithHTTPClient Uses

func NewGetServiceIDParamsWithHTTPClient(client *http.Client) *GetServiceIDParams

NewGetServiceIDParamsWithHTTPClient creates a new GetServiceIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetServiceIDParamsWithTimeout Uses

func NewGetServiceIDParamsWithTimeout(timeout time.Duration) *GetServiceIDParams

NewGetServiceIDParamsWithTimeout creates a new GetServiceIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetServiceIDParams) SetContext Uses

func (o *GetServiceIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get service ID params

func (*GetServiceIDParams) SetHTTPClient Uses

func (o *GetServiceIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get service ID params

func (*GetServiceIDParams) SetID Uses

func (o *GetServiceIDParams) SetID(id int64)

SetID adds the id to the get service ID params

func (*GetServiceIDParams) SetTimeout Uses

func (o *GetServiceIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get service ID params

func (*GetServiceIDParams) WithContext Uses

func (o *GetServiceIDParams) WithContext(ctx context.Context) *GetServiceIDParams

WithContext adds the context to the get service ID params

func (*GetServiceIDParams) WithHTTPClient Uses

func (o *GetServiceIDParams) WithHTTPClient(client *http.Client) *GetServiceIDParams

WithHTTPClient adds the HTTPClient to the get service ID params

func (*GetServiceIDParams) WithID Uses

func (o *GetServiceIDParams) WithID(id int64) *GetServiceIDParams

WithID adds the id to the get service ID params

func (*GetServiceIDParams) WithTimeout Uses

func (o *GetServiceIDParams) WithTimeout(timeout time.Duration) *GetServiceIDParams

WithTimeout adds the timeout to the get service ID params

func (*GetServiceIDParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type GetServiceIDReader Uses

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

GetServiceIDReader is a Reader for the GetServiceID structure.

func (*GetServiceIDReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type GetServiceOK Uses

type GetServiceOK struct {
    Payload []*models.Service
}

GetServiceOK handles this case with default header values.

Success

func NewGetServiceOK Uses

func NewGetServiceOK() *GetServiceOK

NewGetServiceOK creates a GetServiceOK with default headers values

func (*GetServiceOK) Error Uses

func (o *GetServiceOK) Error() string

func (*GetServiceOK) GetPayload Uses

func (o *GetServiceOK) GetPayload() []*models.Service

type GetServiceParams Uses

type GetServiceParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

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

func NewGetServiceParams Uses

func NewGetServiceParams() *GetServiceParams

NewGetServiceParams creates a new GetServiceParams object with the default values initialized.

func NewGetServiceParamsWithContext Uses

func NewGetServiceParamsWithContext(ctx context.Context) *GetServiceParams

NewGetServiceParamsWithContext creates a new GetServiceParams object with the default values initialized, and the ability to set a context for a request

func NewGetServiceParamsWithHTTPClient Uses

func NewGetServiceParamsWithHTTPClient(client *http.Client) *GetServiceParams

NewGetServiceParamsWithHTTPClient creates a new GetServiceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetServiceParamsWithTimeout Uses

func NewGetServiceParamsWithTimeout(timeout time.Duration) *GetServiceParams

NewGetServiceParamsWithTimeout creates a new GetServiceParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetServiceParams) SetContext Uses

func (o *GetServiceParams) SetContext(ctx context.Context)

SetContext adds the context to the get service params

func (*GetServiceParams) SetHTTPClient Uses

func (o *GetServiceParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) SetTimeout Uses

func (o *GetServiceParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get service params

func (*GetServiceParams) WithContext Uses

func (o *GetServiceParams) WithContext(ctx context.Context) *GetServiceParams

WithContext adds the context to the get service params

func (*GetServiceParams) WithHTTPClient Uses

func (o *GetServiceParams) WithHTTPClient(client *http.Client) *GetServiceParams

WithHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) WithTimeout Uses

func (o *GetServiceParams) WithTimeout(timeout time.Duration) *GetServiceParams

WithTimeout adds the timeout to the get service params

func (*GetServiceParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type GetServiceReader Uses

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

GetServiceReader is a Reader for the GetService structure.

func (*GetServiceReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type PutServiceIDCreated Uses

type PutServiceIDCreated struct {
}

PutServiceIDCreated handles this case with default header values.

Created

func NewPutServiceIDCreated Uses

func NewPutServiceIDCreated() *PutServiceIDCreated

NewPutServiceIDCreated creates a PutServiceIDCreated with default headers values

func (*PutServiceIDCreated) Error Uses

func (o *PutServiceIDCreated) Error() string

type PutServiceIDFailure Uses

type PutServiceIDFailure struct {
    Payload models.Error
}

PutServiceIDFailure handles this case with default header values.

Error while creating service

func NewPutServiceIDFailure Uses

func NewPutServiceIDFailure() *PutServiceIDFailure

NewPutServiceIDFailure creates a PutServiceIDFailure with default headers values

func (*PutServiceIDFailure) Error Uses

func (o *PutServiceIDFailure) Error() string

func (*PutServiceIDFailure) GetPayload Uses

func (o *PutServiceIDFailure) GetPayload() models.Error

type PutServiceIDInvalidBackend Uses

type PutServiceIDInvalidBackend struct {
    Payload models.Error
}

PutServiceIDInvalidBackend handles this case with default header values.

Invalid backend in service configuration

func NewPutServiceIDInvalidBackend Uses

func NewPutServiceIDInvalidBackend() *PutServiceIDInvalidBackend

NewPutServiceIDInvalidBackend creates a PutServiceIDInvalidBackend with default headers values

func (*PutServiceIDInvalidBackend) Error Uses

func (o *PutServiceIDInvalidBackend) Error() string

func (*PutServiceIDInvalidBackend) GetPayload Uses

func (o *PutServiceIDInvalidBackend) GetPayload() models.Error

type PutServiceIDInvalidFrontend Uses

type PutServiceIDInvalidFrontend struct {
    Payload models.Error
}

PutServiceIDInvalidFrontend handles this case with default header values.

Invalid frontend in service configuration

func NewPutServiceIDInvalidFrontend Uses

func NewPutServiceIDInvalidFrontend() *PutServiceIDInvalidFrontend

NewPutServiceIDInvalidFrontend creates a PutServiceIDInvalidFrontend with default headers values

func (*PutServiceIDInvalidFrontend) Error Uses

func (o *PutServiceIDInvalidFrontend) Error() string

func (*PutServiceIDInvalidFrontend) GetPayload Uses

func (o *PutServiceIDInvalidFrontend) GetPayload() models.Error

type PutServiceIDOK Uses

type PutServiceIDOK struct {
}

PutServiceIDOK handles this case with default header values.

Updated

func NewPutServiceIDOK Uses

func NewPutServiceIDOK() *PutServiceIDOK

NewPutServiceIDOK creates a PutServiceIDOK with default headers values

func (*PutServiceIDOK) Error Uses

func (o *PutServiceIDOK) Error() string

type PutServiceIDParams Uses

type PutServiceIDParams struct {

    /*Config
      Service configuration

    */
    Config *models.ServiceSpec
    /*ID
      ID of service

    */
    ID  int64

    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

PutServiceIDParams contains all the parameters to send to the API endpoint for the put service ID operation typically these are written to a http.Request

func NewPutServiceIDParams Uses

func NewPutServiceIDParams() *PutServiceIDParams

NewPutServiceIDParams creates a new PutServiceIDParams object with the default values initialized.

func NewPutServiceIDParamsWithContext Uses

func NewPutServiceIDParamsWithContext(ctx context.Context) *PutServiceIDParams

NewPutServiceIDParamsWithContext creates a new PutServiceIDParams object with the default values initialized, and the ability to set a context for a request

func NewPutServiceIDParamsWithHTTPClient Uses

func NewPutServiceIDParamsWithHTTPClient(client *http.Client) *PutServiceIDParams

NewPutServiceIDParamsWithHTTPClient creates a new PutServiceIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutServiceIDParamsWithTimeout Uses

func NewPutServiceIDParamsWithTimeout(timeout time.Duration) *PutServiceIDParams

NewPutServiceIDParamsWithTimeout creates a new PutServiceIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutServiceIDParams) SetConfig Uses

func (o *PutServiceIDParams) SetConfig(config *models.ServiceSpec)

SetConfig adds the config to the put service ID params

func (*PutServiceIDParams) SetContext Uses

func (o *PutServiceIDParams) SetContext(ctx context.Context)

SetContext adds the context to the put service ID params

func (*PutServiceIDParams) SetHTTPClient Uses

func (o *PutServiceIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put service ID params

func (*PutServiceIDParams) SetID Uses

func (o *PutServiceIDParams) SetID(id int64)

SetID adds the id to the put service ID params

func (*PutServiceIDParams) SetTimeout Uses

func (o *PutServiceIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put service ID params

func (*PutServiceIDParams) WithConfig Uses

func (o *PutServiceIDParams) WithConfig(config *models.ServiceSpec) *PutServiceIDParams

WithConfig adds the config to the put service ID params

func (*PutServiceIDParams) WithContext Uses

func (o *PutServiceIDParams) WithContext(ctx context.Context) *PutServiceIDParams

WithContext adds the context to the put service ID params

func (*PutServiceIDParams) WithHTTPClient Uses

func (o *PutServiceIDParams) WithHTTPClient(client *http.Client) *PutServiceIDParams

WithHTTPClient adds the HTTPClient to the put service ID params

func (*PutServiceIDParams) WithID Uses

func (o *PutServiceIDParams) WithID(id int64) *PutServiceIDParams

WithID adds the id to the put service ID params

func (*PutServiceIDParams) WithTimeout Uses

func (o *PutServiceIDParams) WithTimeout(timeout time.Duration) *PutServiceIDParams

WithTimeout adds the timeout to the put service ID params

func (*PutServiceIDParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type PutServiceIDReader Uses

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

PutServiceIDReader is a Reader for the PutServiceID structure.

func (*PutServiceIDReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

Package service imports 11 packages (graph) and is imported by 13 packages. Updated 2020-01-13. Refresh now. Tools for package owners.